Change a diagram
Ask the assistant to change, review or explain a sequence diagram, and see what it does with yours.
Once a sequence diagram has elements, you can ask the assistant to change it, review it or explain it.
Ask for a change
Point at what should change and say how:
- "Add a cache in front of the database."
- "After Create payment, retry up to 3 times if the provider times out."
- "Make Order paid an async message to the queue."
- "Put a note over API and Payments: idempotency key on every request."
For small changes it edits only what you asked about. The rest keeps its ids, so your comments stay on their elements. To have most of a diagram redone, say so.
To point at elements, select them before you send, or type @ and pick them. The list shows participants and boxes first, then messages, fragments, notes and the other elements in reading order.
Use a command
Type / at the start of the message box to pick a command. Each one fills in a request for you to read over and send.
| Command | What it asks for |
|---|---|
/review | Review the interaction: missing replies, failure paths worth showing, and anything that would confuse a reader, and fix what's plainly wrong |
/fix | Fix the issues the checks found |
/explain | Explain in plain words, for a new team member |
/errors | Add failure paths: timeouts, errors and retries, each in an alt or opt frame |
/draft | Draft an interaction you describe |
On a diagram that already has elements, the starting points above the message box are these:
- Review this diagram.
- A fix for the issues the checks found, when there are any.
- Explain it.
- Add failure paths, when the diagram has no fragments yet.
What it does with your diagram
- To draft or redo most of a diagram, it writes the whole diagram as sequence code and replaces the diagram with it.
- For smaller changes, it applies a batch of small edits to participants, messages, notes, dividers and fragments. If one edit in a batch fails, none apply.
- After every change it gets the checks back, and fixes errors and real problems before it finishes.
The change card shows each change as a diff of the sequence code. It ends with a short summary of what it drew or changed, what it assumed, and one or two things you might add next.
Your team's context
The business context, the Model and your learnings work as they do for a process. The assistant reads the learnings meant for every diagram and those for sequence diagrams. See How context works.
The app matches actors to the Model's roles, and other participants to its systems. When the assistant adds a participant whose name isn't in the Model, the app tells it so, with the nearest Model name when one is close. The assistant can then switch to your team's name.