Skip to content

Smart Mind Map

Action v0.9.1

Intelligently analyzes text content and generates interactive mind maps for better visualization and understanding.


Overview

The Smart Mind Map plugin transforms text content into beautiful, interactive mind maps. It uses AI to analyze the structure of your content and creates a hierarchical visualization that makes complex information easier to understand.

Features

  • LLM Analysis: Uses configurable models to extract key concepts and hierarchy
  • Rich Controls: Zoom, reset view, expand level selector (All/⅔) and fullscreen
  • Theme Aware: Auto-detects OpenWebUI light/dark theme with manual toggle
  • One-Click Export: Download high-res PNG, copy SVG, or copy Markdown source
  • Multi-language: Adapts output language to the user context

Installation

  1. Download the plugin file: smart_mind_map.py
  2. Upload to OpenWebUI: Admin PanelSettingsFunctions (Actions)
  3. Enable the plugin, and optionally allow iframe same-origin access so theme auto-detection works

Usage

  1. Enable Smart Mind Map in chat settings, then provide at least ~100 characters of text
  2. Click the Mind Map action button on a message to trigger generation
  3. Interact with the visualization:
  4. Zoom & Reset: Scroll or use the + / - / ↻ controls
  5. Expand Levels: Switch between All / 2 / 3 levels
  6. Theme & Fullscreen: Toggle light/dark or enter fullscreen
  7. Export with one click: PNG, Copy SVG, or Copy Markdown

Configuration

Option Type Default Description
SHOW_STATUS boolean true Show status updates in chat during processing
MODEL_ID string "" Built-in LLM ID for analysis (empty uses current chat model)
MIN_TEXT_LENGTH integer 100 Minimum characters required before analysis runs
CLEAR_PREVIOUS_HTML boolean false Clear previous plugin HTML instead of merging
MESSAGE_COUNT integer 1 Number of recent messages to include (1–5)

Example Output

The plugin generates an interactive HTML mind map embedded in the chat:

📊 Mind Map Generated
├── Main Topic
│   ├── Subtopic 1
│   │   ├── Detail A
│   │   └── Detail B
│   ├── Subtopic 2
│   └── Subtopic 3
└── Related Concepts

Requirements

Prerequisites

  • OpenWebUI v0.3.0 or later
  • No additional Python packages required
  • For theme auto-detection/PNG export accuracy, allow iframe same-origin access in User Settings → Interface → Artifacts

Troubleshooting

Mind map is not displaying?
  • Ensure the input text is at least MIN_TEXT_LENGTH characters
  • Confirm a valid MODEL_ID is available (or leave empty to use current model)
  • Refresh and re-run after enabling the plugin
Theme looks wrong or PNG export is blank?
  • Enable iframe same-origin access so the plugin can read the parent theme
  • Wait for the mind map to fully render before exporting

Source Code

View on GitHub