BrightDesk Apps

How to paste a ChatGPT diagram into Confluence

To paste a ChatGPT diagram into Confluence, insert the Text Diagram (Mermaid) element and paste the Mermaid text into the editor. The app removes surrounding ```mermaid fences automatically and shows a live preview before you save.

Steps at a glance

  1. Ask the chat for a Mermaid diagram and copy its code block.
  2. Edit your Confluence page and insert Text Diagram (Mermaid) from the insert menu.
  3. Paste. Fences and all are fine.
  4. Check the preview, fix anything it flags, and choose Save.
Want to see it first? The live demo strips the fences and draws this exact example.

What to ask the chat for

Ask for "a Mermaid flowchart of …" (or sequence diagram, Gantt chart, mind map). Mermaid is a plain-text format, so the answer comes back as a code block you can copy. A reply like the one below pastes straight in:

```mermaid
flowchart TD
  Req[New request] --> T{Urgent?}
  T -- Yes --> Now[Fix this sprint]
  T -- No --> Back[Add to backlog]
  Now --> Rev[Code review]
  Rev --> Ship((Released))
```

What should you copy from ChatGPT?

ChatGPT diagram text must use Mermaid syntax for BrightDesk Text Diagrams to draw the diagram. Copy the Mermaid text from the response, including the surrounding ```mermaid fences if present. The app removes those fences automatically when you paste. You can also paste Mermaid text copied from Claude or a README. Supported diagram types include flowcharts, sequence, class, state, entity relationship, Gantt, mind maps, timelines, and pie charts. The live preview lets you check the pasted text as a drawing.

Where do you paste Mermaid text in Confluence?

Mermaid text goes into the full-screen editor opened by the Text Diagram (Mermaid) element. In Confluence Cloud, open the insert menu and select that element. Paste the copied text on the text side of the editor. A live preview appears on the other side and redraws as you type. Change the text if the drawing needs an adjustment, then choose Save to put the diagram on the page. To change the saved diagram later, edit the element again.

What happens if pasted Mermaid text has a mistake?

Pasted Mermaid text with a mistake produces the first lines of an error message instead of a broken picture. Read the message, check the text, and make a correction in the editor. The live preview redraws as you type, so you can check the drawing while you work. Once the preview shows the diagram you want, choose Save to put the drawing on your Confluence page.

Can you paste the same Mermaid text into Jira?

Mermaid text copied from ChatGPT can also be pasted into Jira Cloud. Open the Diagram panel on an issue and choose Add a diagram. Paste or type the text in the text box, then check the live preview underneath. Choose Save to store the diagram text on the issue itself as an issue property. You can download any diagram as SVG or PNG, with PNG files at twice the size and a white background.

Last updated 12 November 2026.