Start a diagram
Start a diagram of any kind, by describing it, from a template, from an empty canvas or from a file.
Penna draws four kinds of diagram. You can describe a new one, start from a template or an empty canvas, or bring in a file.
| Kind | Shows | Its code |
|---|---|---|
| BPMN process | Who does what, in what order, with decisions and waits. See BPMN basics. | Flowmark |
| Sequence diagram | The messages between people and systems in one interaction, in order. See Sequence basics. | Sequence code |
| ER diagram | The tables of a database, their columns, keys and relationships. See ER basics. | Schema code |
| Flowchart | The steps and decisions of a task, a guide or an algorithm, and where each path leads. See Flowchart basics. | Mermaid |
The quickest start is to describe the diagram on the home page. The assistant drafts it for you. See Describe a diagram.
Start from a template
Select Templates in the rail. The panel shows two templates for each kind:
| Kind | Templates |
|---|---|
| BPMN process | Purchase request, IT incident management |
| Sequence diagram | Sign in with Google, Checkout payment |
| ER diagram | Online store, Team workspace |
| Flowchart | Expense approval, Troubleshooting tree |
View all beside a kind, or View all templates at the bottom, shows every template. You can filter that list by kind. From a template… in the New diagram menu opens the same list.
Selecting a template creates a new diagram from it and opens it. The diagram you had open stays as it was.
Start from an empty canvas
- Select New diagram, the plus button at the top of the rail or in the Diagrams panel's header.
- Pick BPMN process, Sequence diagram, ER diagram or Flowchart.
You can also use New on the home page, or run New BPMN process, New sequence diagram, New ER diagram or New flowchart from the search menu.
You get an empty diagram with a card that offers three ways to begin:
- Describe it opens the assistant, so you can describe the diagram and have it drafted. See The assistant.
- The first element's button places that element, so you can build on it by hand.
- Use a template shows that kind's templates.
| Kind | New name | First element |
|---|---|---|
| BPMN process | Untitled process | Add start event |
| Sequence diagram | Untitled sequence | Add participant |
| ER diagram | Untitled schema | Add table |
| Flowchart | Untitled flowchart | Add start |
When AI is off for your org, the card has no Describe it.
You can also type the diagram in the code pane beside the canvas. To build it by hand, see Edit on the canvas.
Import a file
Open New diagram and pick the import for the kind:
| Menu item | Opens | Files |
|---|---|---|
| Import .bpmn file… | A process from another BPMN tool | .bpmn, .xml |
| Import Mermaid, PlantUML or sequence code file… | A sequence diagram from those tools or sequencediagram.org | .mmd, .mermaid, .puml, .plantuml, .pu, .seq, .txt |
| Import SQL, DBML or Mermaid file… | A database schema | .sql, .dbml, .mmd, .mermaid, .md, .txt |
| Import flowchart file… | A Mermaid flowchart or a PlantUML activity diagram | .mmd, .mermaid, .puml, .plantuml, .txt |
The file becomes a new diagram and opens. If the file has things the diagram can't show, a message names what the app left out.
For what a .bpmn import leaves out, see What an import leaves out. For the other kinds, see Sequence import and export, ER import and export and Flowchart import and export.
Syntax guides
Select Help at the bottom of the rail for a short guide to each kind's code: Flowmark, sequence code, schema code and Mermaid.
The question mark in the code pane's header opens the guide for the code you're writing, beside it.