Canvas Components
Mermaid Component
Explains the Mermaid canvas component for hosted Webchat. Useful for rendering flowcharts, sequence diagrams, and other text-defined diagrams in chat.
Render Mermaid diagrams within the webchat interface, such as flowcharts, sequence diagrams, and entity-relationship diagrams.
Example Usage
Diagram Types
Supports all diagram types provided by the Mermaid library:
sequenceDiagram- Sequence diagrams showing interactions between actorsflowchart/graph- Flowcharts and directed graphsclassDiagram- Class diagrams for object-oriented designerDiagram- Entity-relationship diagramsstateDiagram- State machine diagramsgantt- Gantt charts for project timelinespie- Pie chartsgitGraph- Git branching diagrams- And more
Configuration
Themes
The theme parameter accepts any built-in Mermaid theme:
default- Standard Mermaid themedark- Dark background themeforest- Green-toned themeneutral- Minimal greyscale themebase- Customizable base theme
For the full Mermaid syntax reference, see the Mermaid documentation.