The diagram in the chat

See the diagram in your AI app's chat, change it from there, and export it, without opening Penna.

In chats that can show interactive content from a connector (MCP Apps), the AI's changes come with a diagram card in the conversation. claude.ai, Claude Desktop, ChatGPT and VS Code are among the apps that show it.

Other apps, Gemini included, don't show the card. They give you the AI's text and a link to open the diagram in Penna, and nothing else changes.

To see a diagram without changing it, ask the AI to show it to you.

What the card shows

  • the diagram's name, and what the change did, such as "Added Check budget"
  • the diagram, which you can pan and zoom. The elements the AI added or changed are ringed for a moment. A diagram too big for the card opens at a readable size, the way its kind is read. See Wide diagrams.
  • Changes: what the AI added, changed and removed. Point at a row to find its element, or select the row to keep it marked.
  • Problems: the same modeling checks you see in the app, with their elements marked on the diagram
  • what the AI's answer is about, when it points at part of the diagram, such as what deleting a customer touches. Those elements stay in ink and the rest fades, as Trace does in the app. Show all brings back the rest.
  • Show latest version, which redraws the card if the diagram has changed since, in the app or by the AI
  • Full screen, where the chat allows it, and Open in Penna

Change the diagram from the card

  1. Click an element to select it. The AI is told what you selected, so "make this a user task" works the way it does in the app's assistant.
  2. The card shows the same selection bar as the app for that kind of diagram, along the top of the diagram.
  3. Pick a tool on the bar, or open More (⋯, or the . key) for everything else.

You can select these elements:

KindElements
BPMN processstep, event, gateway, arrow, lane, pool, message line, data, note, group
Sequence diagramparticipant, box, message, note, fragment, divider, ref, delay
ER diagramtable, column, enum, group, note, relationship
Flowchartshape, arrow, frame

For a process step, the bar has the element's type, Rename, its lane, group or box, Colour, Note and Ask assistant. The choices are the same as in the app, in the same order. In a narrow chat, what doesn't fit on the bar moves to More. × closes the bar.

Ask assistant opens a box over the selection. What you type goes into the chat as your message, about that element. The card offers it where the chat lets it send a message.

Rename, a new type, lane or colour, a note, a timer's time, a message line's envelope and the other settings in More change the selection right away. They follow the same rules as the canvas, with the same words in history.

Delete is the last row of More. It acts at once, with the canvas's rules. Deleting a step joins the steps before and after it. A deleted lane's steps move to the nearest lane, and one lane always stays.

Undo in the card's header takes back the change that card shows, the AI's or your own. It puts the diagram back to the version before it.

How card changes are saved

Each change you make on the card is saved to the diagram's version history as From the chat. It shows up live in any tab of Penna you have open, and the AI hears about it before its next change.

If the diagram has changed since the card was drawn, the card refuses the change. It asks you to show the latest version first, so it never changes something you haven't seen.

The card changes what's already there, one element at a time. Adding elements, comments and the app's clipboard stay in the app or with the AI.

The card reads and edits through the same connection as the AI, so it reaches only diagrams your account can open. Some chats ask you to allow each of the card's actions the first time.

Export from the card

Export in the card's header downloads the diagram, where the chat allows downloads. It lists the same files as the app's Export menu.

KindFiles
BPMN processa BPMN 2.0 file (.bpmn) that opens in Penna and other BPMN tools, or its Flowmark (.flowmark)
Sequence diagramits sequence code (.seq), Mermaid or PlantUML
ER diagramits schema code (.dbml), SQL for PostgreSQL, MySQL, SQL Server or SQLite, or Mermaid
FlowchartMermaid

Every kind also exports as an SVG or PNG image. Under Image:

  • PNG resolution sets the PNG's size, from 1x to 4x. It starts at 2x.
  • Image theme picks Light, Dark or Match chat, which follows your chat's theme. It starts at Light, as in the app, and lasts while the card is open.

A chat may refuse a large file, so the card keeps a PNG to about 32 million pixels. A diagram too large for the size you picked comes out smaller, and the card says so. For a bigger image, export from the app or choose SVG.

Some files can't hold the diagram's colours, such as Mermaid or SQL. The card says so once the file is saved, such as "SQL has no colours; 3 were left out."

On this page