Hello, you can use the legend keyword, but the legend is put on the bottom of the diagram (but you can have it right aligned)
@startuml
Alice -> Bob : Hello my dear friend
legend right
* this
* is a short
* legend
endlegend
@enduml

If this is not exactly what you expected, we should add more option to the legend position.