@startuml
participant C
participant A
participant B

C -> A: call
activate A
C <-- A: result
deactivate A
note right: Do something

C -> B: call(result)
activate B
C <-- B: result
deactivate B
note right: Do something\ndifferent
@enduml

Download sequence.puml

sequence.puml rendered as SVG sequence.puml rendered as SVG
Rendered diagram

PlantUML draws diagrams from plain text. Paste the source into the online server, or render it locally with plantuml -tsvg sequence.puml.