@startuml ' Style the entity (see https://github.com/plantuml/plantuml-stdlib/blob/master/material/door.puml) hide <> stereotype hide <> stereotype actor Bob #red !include !include !include ' the following macro generates an entity of type participant and doesn't have {} at the end ' see https://github.com/plantuml/plantuml-stdlib/blob/master/material/door.puml for how the macro is defined MA_DOOR(Purple, 1, setup_public_key, participant, "Public key") MA_DOMAIN(Blue, 1, domain, participant, "domain") ' optionally use the $ma_door sprite inside a participant (or actor) participant "<$ma_door{scale=1}>\nDoor" as door Bob -> setup_public_key : open Bob -> door : open Bob -> domain : react @enduml