Request a demo
All articles Practical guide

A practical guide to diagrams in your slides

InsightSlides draws diagrams as Mermaid code, so they stay editable. How to ask for a good one, how to edit it, and the choice between image and native shapes when you export to PowerPoint.

November 18, 2026 · 5 min read

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.
TypeUse it for
FlowchartA process with steps and decisions
Sequence diagramWho talks to whom, in order
Gantt chartA timeline with milestones
Pie chartShares of a whole, three to six slices
Class diagramThe structure of a system
State diagramHow 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.
A flowchart on a slide in the workbench: order received, dispatch queue, route planned, pickup confirmed, delivered, with an exception decision looping back.
A flowchart on a slide of a made-up deck. The code behind it is a few lines and can be edited in the elements list.

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.
Check native exports. Converting a diagram to shapes is harder than placing an image, and complex diagrams may need touching up. Open the file and check each diagram slide before you share it; if in doubt, use the image export.

Which export for which diagram

Your diagramsExport
Only flowcharts, and someone will edit them in PowerPointPowerPoint with editable diagrams
Any sequence, pie, Gantt, timeline, class or state diagramPowerPoint with diagrams as images
The deck is for reading, not editingPDF

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:

  1. Cut the labels to a few words each: Return requested, Label sent, Parcel received.
  2. Merge steps the audience does not need to see separately, until five to eight remain.
  3. 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.

When the model call fails, the diagram step falls back to a simple four-box starter flowchart rather than leaving the slide empty. If you see one, retry with a clearer description or edit the starter.

Make your next deck with us

Bring the brief for a presentation you have to give. We generate it together and refine it in the workbench.

Request a demo