sequenceDiagram Alice->Bob: Hello Bob, how are you? loop Outer loop Note left of Alice: Bob thinks about end
sequenceDiagram Alice->Bob: Hello Bob, how are you? loop Cheers Bob->Alice: Fine! end






sequenceDiagram participant Alice participant Bob Alice->John: Hello John, how are you? loop Healthcheck John->John: Fight against hypochondria end Note right of John: Rational thoughts
prevail... John-->Alice: Great! John->Bob: How about you? Bob-->John: Jolly good!





sequenceDiagram participant Alice participant Bob participant John the Long Alice->Bob: Hello Bob, how are you? loop Outer loop Note left of Alice: Bob thinks about
things
to think about Bob->Bob: I am good thanks! loop Inner loop Bob-->John the Long: How about you John? Note right of John the Long: Bob thinks a long
long time, so long
that the text does
not fit. end end Bob-->Alice: Checking with John... Alice->John the Long: Yes... John, how are you? John the Long-->Alice: Better then you!

sequenceDiagram Alice->Bob: Hello Bob, how are you? Note left of Bob: Bob thinks about
things
to think about Bob-->John the Long: How about you John? Bob-->Alice: I am good thanks! Note right of John the Long: Bob thinks Bob-->Alice: Checking with John... Alice->John the Long: Yes... John, how are you? John the Long-->Alice: Better then you!