Use your own AI app

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

A connected AI app can work on ER diagrams through the same tools as the assistant. This page lists what's specific to ER diagrams.

What it can do

  • Create one. Ask for it by name: "Create an ER diagram called Online store." create_diagram takes a kind, and erd makes an ER diagram. Without it, the AI creates a BPMN process.
  • Find one. list_diagrams says each diagram's kind, so the AI knows which diagrams are ER diagrams.
  • Read and write it. get_diagram returns the schema code with every element's id, and write_diagram takes schema code. edit_diagram takes edits to tables, columns, relationships, enums, groups and indexes. Tables can be named by id or name, and columns by id or as table.column.
  • Look things up. lookup_guidance has topics for ER diagrams: schema-code for the syntax, schema-style for the modeling style, and the reference schemas store-schema, saas-schema, booking-schema, billing-schema, content-schema and history-schema. The AI is told to look up the syntax before its first write.

The diagram card in the chat, live updates in the app and the version history work as they do for a process. See Tools for every tool and edit, with its parameters, and Guidance topics for every topic, word for word.

On this page