title Sequence Diagram Example
# Simple message exchange
Peter->Taylor: Hello Taylor, how are you?
Taylor->Peter: I'm doing great, thank you!
# Asynchronous message
Peter-->Taylor: Here's a document to review
note over Taylor: Reading document...
# Response after delay
Taylor->Peter: The document looks good
note over Peter,Taylor: Document approved
# Emphasized message
Peter=>Taylor: Let's finalize the project!
->
: Synchronous message-->
: Asynchronous message (dotted line)=>
: Thick arrow (emphasized message)<-
, <--
, <=
: Reply messages (reverse direction)note over [Participant]
: Note above a participantnote over [Participant1],[Participant2]
: Note spanning multiple participantsnote left of [Participant]
: Note to the left of a participantnote right of [Participant]
: Note to the right of a participant**bold text**
: Bold text__italic text__
: Italic text\n
: Line break