in the unified modelling language, a sequence diagram shows the interaction between different systems. it is one of the four diagram types uml defines. usually, it shows how objects exchange messages.