# Start a diagram from a template or AI

> Begin from a flowchart, org chart, mind map or approval flow template, paste Mermaid, or describe a process and let AI draw and lay it out.

Source: https://plexiidesk.com/help/diagrams-templates-and-ai
Section: Office > Diagrams
Plans: All plans
Updated: 2026-10-21

You do not have to start a diagram from an empty canvas. PlexiiDiagrams has four templates to build on, can turn pasted Mermaid text into a diagram, and can ask AI to draw a whole diagram from a description and lay it out for you.

## Before you start

- Templates, Mermaid and AI are on every plan.
- AI needs a working AI source: the on-device model downloaded, or a cloud source chosen. See [AI credits and where your AI runs](https://plexiidesk.com/help/ai-credits).
- Open a diagram, or start a new one. See [PlexiiDiagrams overview](https://plexiidesk.com/help/diagrams-overview).

## Add to the page or replace it

Templates, Mermaid and AI each ask where the result goes:

- **Add to this page** places it beside what is already there.
- **Replace this page** clears the page you are on and puts the result in its place. Other pages are not touched.

Either way, you can take it back with undo: `⌘` `Z` on a Mac or `Ctrl` `Z` on Windows.

## Start from a template

1. Click **Templates** in the toolbar, or choose **Insert** > **Template…**.
2. Choose **Add to this page** or **Replace this page**. **Replace this page** is chosen when the window opens.
3. Click a template.

| Template | What you get |
| --- | --- |
| **Flowchart** | Start, steps, a decision and an end. |
| **Org chart** | A reporting tree. |
| **Mind map** | A central idea with branches. |
| **Approval flow** | Swimlanes by role. |

The view zooms to show the result. Every shape in a template is an ordinary shape: rename, move, restyle and add to it as you need. See [Draw a flowchart](https://plexiidesk.com/help/diagrams-draw-a-flowchart).

## Paste Mermaid

If you have a diagram written in Mermaid, such as from documentation or an AI chat:

1. Choose **Insert** > **Mermaid…**, or **File** > **Import** > **Mermaid…**. The **Import Mermaid** window opens with an example in it.
2. Replace the example with your Mermaid text. It can be a flowchart, an ER diagram or a class diagram.
3. Choose **Add to this page** or **Replace this page**, and click **Import**.

Shapes, labels, line styles and subgraphs come across, and the result is laid out automatically. If any part could not be read, the window lists it and stays open. The rest is already on the page.

## Generate a diagram with AI

1. Click **AI** in the toolbar, or choose **Insert** > **AI diagram…**. The **Generate a diagram with AI** window opens.
2. Describe the process, decision flow, system or structure. For example: "Customer onboarding from signup to first value, with an approval step."
3. Choose **Replace this page** or **Add to this page**.
4. Click **Generate**, or press `⌘` `Enter` on a Mac or `Ctrl` `Enter` on Windows.

The AI returns the steps and how they connect, and PlexiiDiagrams lays them out from the top down and fits them in view. Edit the result like any diagram.

### See which AI answered

Under **Generate**, the window shows **Answered by:** and the engine that produced the last result, such as the on-device model or a cloud source. Open the window again to see it after a diagram is made.

> **Tip:**
> Say what matters in your description: who is involved, where decisions are made, and where the process ends.

## Create a new diagram with AI from the Documents page

To get an AI diagram as a new file, without opening one first:

1. Open the Documents page. See [The Documents page](https://plexiidesk.com/help/office-documents-page).
2. Under the AI box at the top, click **Map**.
3. Describe the diagram. You can also say who it is for in **Who is it for? (optional)**.
4. Click **Create with AI**.

A new diagram opens, with a title AI gives it.

## Build from a table instead

To make an org chart, flow, cards or mind map from the rows of a Plexii table, use **Data**. See [Build diagrams from Plexii data](https://plexiidesk.com/help/diagrams-data-and-binding).

## Common questions

**I picked a template and lost my diagram.** **Replace this page** clears the page you were on. Press `⌘` `Z` on a Mac or `Ctrl` `Z` on Windows, or open **File** > **Version history**. See [Version history](https://plexiidesk.com/help/office-version-history).

**The AI window shows an error.** It shows the real reason, such as no AI source being set up. Check your AI settings. See [AI settings](https://plexiidesk.com/help/settings-ai) and [AI credits and where your AI runs](https://plexiidesk.com/help/ai-credits).

**Can AI add to the diagram I have?** Yes. Choose **Add to this page** before you click **Generate**. It adds a new set of shapes beside yours; it does not change the shapes already there.

**Mermaid says No diagram found in that Mermaid text.** Check that the text starts with a diagram type, such as `flowchart TD`, `erDiagram` or `classDiagram`.

**Can I make my own templates?** Keep a diagram you want to reuse, and choose **File** > **Make a copy** each time you need a fresh one.

## Related tasks

- [PlexiiDiagrams overview](https://plexiidesk.com/help/diagrams-overview)
- [Draw a flowchart](https://plexiidesk.com/help/diagrams-draw-a-flowchart)
- [Build diagrams from Plexii data](https://plexiidesk.com/help/diagrams-data-and-binding)
- [Import and export diagrams](https://plexiidesk.com/help/diagrams-visio-import-and-export)
- [The Documents page](https://plexiidesk.com/help/office-documents-page)
- [AI credits and where your AI runs](https://plexiidesk.com/help/ai-credits)
