A diagram often explains a process better than five bullets. InsightSlides writes diagrams as Mermaid, a small text language for diagrams. That choice has a practical benefit: a diagram is a few lines of code you can read and change, not a picture you have to redraw.
Where diagrams come from
- During generation. When a slide's content suggests a diagram, a separate step writes its Mermaid code. Naming the process in your brief ("one process diagram of order to delivery") makes this more likely and more specific.
- From the workbench. Add a diagram from the toolbar, pick a type, describe it (or start from the type's example), and InsightSlides writes the code and shows a preview before you add it.
| Type | Use it for |
|---|---|
| Flowchart | A process with steps and decisions |
| Sequence diagram | Who talks to whom, in order |
| Gantt chart | A timeline with milestones |
| Pie chart | Shares of a whole, three to six slices |
| Class diagram | The structure of a system |
| State diagram | How something moves between states |
Asking for a good diagram
The diagram step is told to keep diagrams presentation-friendly: five to eight nodes, labels of up to about 25 characters, simple arrows, linear flows, a white background. Your description should work with that:
- List the steps. "Order received, dispatch queue, route planned, pickup confirmed, delivered; exceptions go back to planning" gets you exactly that.
- One idea per diagram. If you need two flows, use two slides.
- Short labels. Long labels shrink to unreadable sizes on a projector.

Editing the code
The diagram's code is listed with the slide's elements below the slide. A flowchart like the one above is just:
flowchart LR
A[Order received] --> B[Dispatch queue]
B --> C[Route planned]
C --> D[Pickup confirmed]
D --> E[Delivered]
D --> F{Exception?}
F --> C
Rename a step by changing the text in brackets, add a step with one more line, change LR to TD to make it run
top to bottom. Save the change and the slide shows the new diagram.
Common problems and fixes
- Too many boxes. If a generated diagram is crowded, delete nodes in the code until each one earns its place, or split the idea across two slides.
- Wrong direction. Timelines and pipelines read best left to right (
LR); hierarchies and decision trees top to bottom (TD). - A generic diagram. "Key process, result, next step" means the description was too vague or the model call failed. Name the real steps and ask again.
- Numbers in a pie chart. The generator does not know your figures. Put the real values into the code yourself, and check them against your source.
A useful habit: when you present the same process every month, keep the diagram code in your brief or notes. Next month, paste it into the new deck and change only what changed.
Exporting: image or native shapes
- PowerPoint (PPTX) places each diagram as an image. It looks the same on every machine; to change it, edit the Mermaid code in InsightSlides and export again.
- PowerPoint Native converts the diagram into PowerPoint shapes, so someone without access to InsightSlides can move boxes and change labels in PowerPoint. Native conversion is built for flowcharts; for decks with sequence, pie, Gantt or other diagrams, use the image export.
- PDF includes the diagrams as they appear.
Which export for which diagram
| Your diagrams | Export |
|---|---|
| Only flowcharts, and someone will edit them in PowerPoint | PowerPoint with editable diagrams |
| Any sequence, pie, Gantt, timeline, class or state diagram | PowerPoint with diagrams as images |
| The deck is for reading, not editing |
Image and PDF exports render the Mermaid code on the server with the Mermaid command-line renderer, so what you get is what Mermaid draws from the saved code. If a diagram looks wrong in the export, fix the code in the workbench and export again, rather than patching the exported file.
A worked example: tightening a generated flowchart
Suppose, as an illustration, the generator returns a ten-node flowchart for a made-up returns process, with labels such as "Customer initiates return request via portal". Three edits make it presentable:
- Cut the labels to a few words each:
Return requested,Label sent,Parcel received. - Merge steps the audience does not need to see separately, until five to eight remain.
- Keep one decision, written as a question in braces, for the case the audience actually asks about, such as
{Damaged?}.
The result is still a flowchart, so it also converts cleanly to native PowerPoint shapes.
Frequently asked questions
Can I paste Mermaid code I already have?
Yes. The diagram's code is an element of the slide; replace it with your own and save.
Does drawing a diagram from a description need a model?
Yes. Writing Mermaid from a description is a model call, so it needs the OpenAI key to be configured. Editing existing code and starting from a type's example do not.
Do diagrams follow the template's colours?
The generator is asked for diagrams on a white background with restrained colours, so they sit on any template. Colours written into the Mermaid code itself are kept.
Why do native shapes come out in different colours?
The native export picks each box's colour itself: diamonds are coloured as decisions, and other boxes by words in their labels, such as "start", "done" or "check". Colours set in the Mermaid code are not carried into native shapes. If colour carries meaning on a slide, check it in PowerPoint after export, or use the image export, which draws what Mermaid draws.