Sequence Diagram Online — Map Messages and Participants
Create a sequence diagram online with participants, messages, notes, and branches. Follow an API request example and generate editable Mermaid source.
Make the order of an interaction visible
Build a sequence diagram for an API call, login flow, or service interaction. Add participants in reading order, then describe the messages they exchange. This sequence diagram generator uses your structured steps; it does not infer a system from a natural-language prompt.
Follow one cached API request
Diagram source
sequenceDiagram
autonumber
participant Browser
participant API
participant Cache
Browser->>API: Request profile
API->>Cache: Read profile
Cache-->>API: Cached profile
API-->>Browser: Return profileHow to use this tool
- Add actors or participants and use display names when an internal ID would be hard to read.
- Add message steps with a sender, receiver, arrow, and concise action label.
- Add notes or control blocks where needed. Close each block with an end step and preview the complete interaction.
Choose a step that explains the behavior
| Step | When to use it |
|---|---|
| Message | Show a request or response between participants. Use labels such as Read profile rather than vague labels such as Data. |
| Note | Explain a condition or assumption next to a participant without inventing another message. |
| alt / else / end | Separate alternative outcomes, such as an accepted token and an expired token. |
| loop / end | Show repeated work. Describe the repetition condition in the block label. |
| activate / deactivate | Mark a participant’s active interval. Keep activation pairs balanced. |
Common questions
How much detail belongs in one diagram?
Start with one scenario and a small set of participants. Split unrelated flows into separate diagrams; a single readable request path is more useful than a complete but crowded system map.
Why is a branch rendered incorrectly?
Check the order of alt, else, and end steps. Each opened control block needs a matching end. Also check that message endpoints refer to participants that exist.
Can I start from an existing PlantUML diagram?
Use the PlantUML converter for supported sequence syntax, then inspect the conversion warnings. Visual styling and every advanced PlantUML construct are not preserved.