Diagrams with AI
Updated on October 22, 2026

With AI Mode on, you can ask Imagine for a flowchart based on a topic. The AI writes the Mermaid code for you, and the result lands on the canvas as shapes and connectors you can edit like any other element.
Turning on AI Mode
The AI Mode switch is in the user menu, in the top-right corner of the app, and it's on by default. When it's on, the Import Mermaid button in the toolbar turns purple.
Generating a diagram from a topic
- Open a presentation and click Import Mermaid in the toolbar.
- Click Generate with AI.
- Type the topic in the Topic or diagram title… field, for example "Krebs cycle" or "patient admission process".
- Click Generate. The AI writes the code and puts it in the dialog's text area.
- Review the code if you like and click Import.
The diagram appears in the center of the current view. Each node is a shape with its text, and each arrow is a connector attached to its nodes.
What you can ask for
The AI generates flowcharts. It works best with concrete topics: processes, decisions, stages of a cycle or hierarchies. The more specific you are, the more useful the result.
Treat the result as a starting point. Move nodes around, change text, add markers to the connectors and combine it with your own drawings.
Your plan's AI usage
Each generation counts toward your plan's AI usage, which is shared across the Academic apps. See plans and limits.
FAQ
I don't see the Generate with AI button. Why? It only appears when AI Mode is on. Turn it on from the user menu.
What happens if the AI can't generate the diagram? The dialog shows an error message. Rephrase the topic and try again, or write the Mermaid code yourself.
Can I edit the generated diagram? Yes. Once imported, every node and connector is a regular canvas element.
What language does the AI write the diagram text in? The app's language.
Next steps
- Importing Mermaid: paste your own Mermaid code.
- Shapes and connectors: edit the nodes and arrows.
- Plans and limits: how much AI usage your plan includes.