Sequence Diagram Template
A sequence diagram shows how parts of a system exchange messages over time. Participants sit across the top, a dashed lifeline runs down from each, and arrows show the messages in order. This template shows a login: the user clicks log in, the web app calls the API, the API looks up the user in the database and the replies come back.
When to use a sequence diagram
Use it to design or explain an interaction: an API call, a payment, a login, a background job. It shows the order of calls and who waits for whom, which makes it useful for finding unnecessary round trips, missing error handling or unclear responsibilities.
Notation used
Solid arrows are requests or calls; dashed arrows are replies. Messages are numbered in the order they happen. To show alternatives, such as a failed login, draw a box around the messages and label it alt with the condition.
How it works
Open the template
Open the template in the editor from this page. The board loads with every shape, label and arrow ready to edit.
Set the participants
Rename the boxes at the top to the people, services or components involved, and copy one to add more.
Write the messages
Edit the arrow labels in order, using solid arrows for calls and dashed arrows for replies.
Add error paths
Below the main flow, add the messages for what happens when something fails.
Frequently asked questions
Is this proper UML?
It follows the main UML conventions: participants, lifelines, solid requests and dashed replies. For informal design discussions that is usually all you need.
How do I add a message?
Copy an existing arrow, move it to the right height and edit its label. Stretch the lifelines if you need more room.
Can I work on it with other people?
Yes. Start a live collaboration session from the editor and send the room link. Everyone with the link can edit the same board at the same time.
How do I save or share the finished board?
Export it as a PNG or SVG image, or save it as an .excalidraw file that you can open again later and keep editing.
Related
- System Architecture TemplateA free system architecture diagram template: clients, load balancer, API, database, cache, storage, queue and worker, with labelled connections.
- ER Diagram TemplateA free entity relationship diagram template with customer, order, order item and product tables, keys and crow's foot relationships. Edit it online.
- User Flow TemplateA free user flow template showing the screens and decisions in a sign-up journey, including the error path and a legend. Edit it online.
- Basic Flowchart TemplateA free basic flowchart template with start and end, process steps, a yes/no decision, a loop and a shape legend. Edit and extend it online.
- Flowchart MakerMake flowcharts in your browser: shapes, arrows that stay attached, keyboard shortcuts for new steps, Mermaid import and PNG or SVG export. Free, no account.