The Model

Name your team's roles, systems and data once, so the assistant and your AI app use the same names in every diagram.

The Model is your team's list of roles, systems and data, with a line on what each one is. The assistant and your AI app draw with these names. They warn when a diagram uses another name, so a lane called "Manager" in one diagram doesn't become "Line manager" in the next.

Everyone in the org shares one Model.

Open it with Model in the rail, under Home, or from Model in the command menu (⌘ K, or Ctrl K on Windows and Linux). An element's properties open it too, at the entry the element matches.

The Model page with its roles, systems and data listed on the left, each with how many diagrams use it, a note that 1 name in your diagrams isn't in the Model, and the Finance role open on the right with its description, Also called Accounts, and the two diagrams it's used in.

Start the Model

A new Model is empty. Build with Penny drafts it from your diagrams, business context and learnings, for you to review and save. See Build with Penny.

To add one entry, select Add entry, type the name, pick its type and select Add.

Names your diagrams use that aren't in the Model wait under Not in the Model yet, each with Add. For an outside pool, pick Add as a role or Add as a system. Review all starts the same review as Build with Penny.

What's in an entry

FieldWhat it's for
NameWhat your team calls it, up to 80 characters. Renaming keeps the old name under Also called, so diagrams that use it still match.
TypeRole for a team or job, such as Accounts payable. System for an app or service, such as the ERP. Data for a record or document, such as Invoice.
DescriptionWhat it is and who owns it, up to 300 characters. The assistant and your AI app read it with every request.
Also calledUp to 10 other names people use for it, such as AP for Accounts payable. Diagrams that use them match too.
Key fieldsFor data, its main fields, such as amount, status and due date. Up to 30.

Under the fields, Used in lists your diagrams that use the entry, and which element in each. Select a diagram to open it. Diagrams are private, so teammates' diagrams show only as a count. In the list on the left, the number next to each entry counts both.

To remove an entry, select Delete entry in its More menu. Undo shows for a few seconds. Elements that matched it show as not in the Model again.

Which elements match

An element matches an entry with the same name, or one of its other names. Capitals, spaces, underscores and plurals don't matter, so a table called purchase_orders matches Purchase order.

DiagramElementMatches
ProcessLaneA role
ProcessOutside poolA role or a system
ProcessData objectData
ProcessData storeA system
SequenceActorA role
SequenceAny other participantA system
ERTableData

Flowcharts have no roles, systems or tables, so the Model doesn't check them.

Select one of those elements, and its properties show a Model field with the entry it matches and that entry's description.

The Support group lane selected on the canvas, and its properties beside it: the Model field reads Not in the Model, with The Model calls it Support team. Use that name under it.
  • Use that name shows when no entry has the element's name but one is close, such as "The Model calls it Support team." It renames the element. A table keeps its name, since it's code, and offers Link to it instead.
  • Pick another entry from the field's menu to link the element to it, whatever the element is called.
  • Add to the Model adds the element's name as a new entry. For an outside pool, pick Add as a role or Add as a system.
  • Leave it out is for an element that isn't part of the business, such as a helper table. It gets no Model warnings, and the field reads Left out of the Model.
  • Match by name undoes a link or a leave-out.
  • Open the Model opens the entry.

Where the warnings show

When a diagram uses a name the Model doesn't have, the app flags it in three places:

  • Problems. The panel lists it under Not in the Model, with the closest entry: "Lane "Sales" isn't in the Model. Did you mean Sales team?" Select the row to select the element. These rows aren't counted as problems. See Modeling checks.
  • The assistant. It gets the same warnings after each change, and uses the Model's name when it means the same thing. It offers new names on an Add to the Model? card. See Draw with your team's names.
  • Your AI app. write_diagram and edit_diagram return the warnings. Your AI app asks you before it adds a name with update_model.

The app checks a type of element only once the Model has an entry of that type. A Model with only roles doesn't flag your tables.

Who can change it

Anyone in the org can add entries, and add names, fields or a description to an entry.

Only Owners, Admins and Editors can rename an entry, change its type, remove a name from Also called or delete it. Everyone else sees the existing names read-only, and can still add one.

The app keeps each change with who made it and when, in the History tab, which Owners and Admins can open.

The Model refuses text that looks like a password, API key or private key. It refuses email addresses, phone numbers and card numbers too. Name roles, not people.

Which AI providers get it

The Model goes with your business context, so it follows the same Send to setting. See Choose where it goes. When the selected model's provider isn't allowed, the assistant gets neither, and no Model warnings.

The assistant reads up to about 4,000 characters of the Model with each request. With a large Model, keep descriptions to a sentence, so every entry fits. The context ring under the message box shows the Model as its own part.

Use it from your AI app

When you connect your AI app, read_context returns the Model, and the names in your diagrams that it doesn't have yet.

Your AI app adds names, other names or fields with update_model, one entry or several at once, only after you agree in the chat. It sets a description only when the entry has none, unless you asked it to change it. Renaming and deleting entries happen in Penna.

To start from what another chat knows, see Bring your context. For ways to put the Model to work, see Tips.

On this page