Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
Conversational procedure
In pragmatics, a degreeting refers to the conversational procedure by which two participants of a conversation agree to discontinue the conversation. It is so named because a degreeting concludes a conversation in a similar way that a greeting engages one.
The following conversation is an example of degreeting: