How to make a sequence diagram
In Lucidchart, creating a sequence diagram from scratch is surprisingly simple. Just follow these steps:
1. Get started with Lucidchart
 If you haven't registered with Lucidchart, you can sign up for free. Log in and select a template or open a new document. With Lucidchart's import features, you also have the option to import existing diagrams from Visio and other diagramming platforms to collaborate and work off of documents you've already started.
From there, the workflow typically breaks into three phases: Identify what to model (participants and messages), build the diagram (manually or from markup), and then format and share it with collaborators.
 2. Identify and add components
Identify the components of your system that should be diagrammed. The first necessary set of components is the objects. The objects, sometimes called actors, are the principal players that perform tasks and send messages. For example, in a login sequence, two of the objects would be the potential visitor or user and the login page a visitor uses to interact with the platform theyâre attempting to log into.Â
The other set of components you must identify are the messages the objects will send. What information is passed from one object to another? In the user authentication process we describe, the messages show how a user enters information into the browser to gain access to the webpage and how the web browser will then cross-check credentials to the designated application.
A quick way to validate your participant list is to ask: Who initiates the interaction, which systems or interfaces receive it, and what downstream services must respond before the scenario completes?
3. Add or import shapes
Lucidchart has an entire UML shape library with all the standard shapes needed to create professional sequence diagrams. Click on Shapes in the upper-left corner of the editor and select "UML" to add UML shapes to your toolbar.
If you still need more shapes, you can search icons using the image search feature, or you can import your own stencils and icons. When it comes to symbols and shapes for UML sequence diagrams, there are no limitations in Lucidchart.
4. Create your sequence diagramÂ
Lucidchart provides a variety of ways to create your sequence diagrams.
Automate the process by using sequence markup: If you prefer to generate diagrams from text rather than drawing everything by hand, Lucidchart supports a markup-driven approach. Lucidchart speeds up the process of creating sequence diagrams with our sequence markup feature. This feature allows users to create beautiful sequence diagrams faster and with less hassle. By automating the process, you can generate a sequence diagram simply by typing your markup order directly into the editor.
Just navigate to the UML Sequence shape library, and click Use Markup. A text pad will open, where you can type out the order of your sequence and its rules. When you're ready, click Build, and click back out into the editor to see your new automatically generated sequence diagram.
Manually build a sequence diagram: Once the UML shape library is enabled, it's easy to add your shapes to the canvas with a simple drag-and-drop action. Add rectangles to the top of the canvas, one for each object, and label each rectangle with the name of the object. If the object is both external and internal to the system, you may choose to use an actor symbol instead of a rectangle. You can find this symbol in the use case diagram section of the toolbox.
Represent the flow of time in a sequence by clicking and dragging lines from the object shapes. Dotted lines will instantly appear, symbolizing lifelines. How long you make these lifelines depends on how many messages you must present in the sequence.
Use a template: Lucidchart has a variety of sequence diagram templates to get you started that you can customize to your specific needs.Â
5. Add text and concepts to your sequence diagram
To create a message, drag out an activation box from the shape library. The activation box is a long, thin rectangle. Drag it onto the dotted lifeline and adjust the size as necessary.
Once you have an activation box in place, click on the box and drag a message arrow out from it. You can label the message by clicking and typing. To change the arrow's direction, click on the message arrow and then the information icon, and choose Reverse direction.
If an action is destroyed in the sequence, use a delete symbol (X) at the end of the lifeline to show that it has been destroyed.
Make sure that all messages correspond to the correct activation box, and remember that the diagram is finished when the last message is drawn.
6. Format your sequence diagram
Lucidchart makes final formatting easy. Check that the logic is sound and that all the processes line up correctly. Although the lifelines don't show a specific timeframe, messages should always be listed in sequential order vertically.
Once you've personally reviewed the document, select and format the desired areas on the diagram. Click Themes in the right sidebar to select a pre-made style format or select your specific shapes and lines of choice to update their fonts, colors, and line settings. You can save time if you set your default styles before you get started with your own custom choice of fonts, line styles, and sizes.
7. Publish, implement, and share
Once your diagram is accurate and formatted, the final step is getting it in front of the people who need itâdevelopers, reviewers, and business stakeholders. Share and publish your finished sequence diagram from Lucidchart to explain your systems clearly to others. Collaborative settings allow you to maintain full control over your diagram. Publish and embed your chart in your company wiki, send it to other current Lucidchart users or non-users with easy share features, and download your final sequence diagram in any file format, even Visio. You can even share your diagram as a link or on your social media channels.
With our extensive list of Lucidchart integrations, you can publish your sequence diagrams on platforms like Google Workspace and add your diagram to any spreadsheet, document, or presentation. You can just as easily add your sequence diagram to Microsoft Office tools like Word, Excel, or PowerPoint quickly, thanks to our free Microsoft add-ons. No matter the operating system you're on, collaborating no longer has to be expensive or come with limitations.
Sequence diagrams are one of the most popular options in UML. Lucidchart makes creating these diagrams simple with the shapes, interface, and collaborative setting you need. Sign up free and create your UML diagrams today!
Â
Ready to create your own UML diagram? Try Lucidchart. It's fast, easy, and free to get started.
Â