Use your own AI app

Create, read and change sequence diagrams from your own AI app through the Penna connector.

A connected AI app can work on sequence diagrams through the same tools:

  • Ask for one by name: "Create a sequence diagram called Checkout payment." create_diagram takes a kind, and sequence makes a sequence diagram. Without it, the AI creates a BPMN process.
  • list_diagrams says each diagram's kind, so the AI knows which are sequence diagrams.
  • get_diagram returns the sequence code with every element's id. write_diagram takes sequence code, and edit_diagram takes edits to participants, messages, notes, dividers and fragments.
  • lookup_guidance has sequence-code for the syntax, sequence-style for the drawing style, and reference interactions for common flows. The AI is told to look up the syntax before its first write. See Guidance topics.

The diagram card in the chat, live updates and the version history work as for a process. See Tools for every tool and edit.