Use cases and best practices
Which use case you decide to follow depends on whether you save the messages in your system or not.
Saving messages in your system
If you decide to save the messages in your system, you can use the following flows:
- Property starts conversation flow.
- Guest starts conversation flow.
Property starts conversation
If the property wants to start the conversation and you have the reservation id, follow these high-level steps:
- Retrieve the empty conversation by reservation id.
In the response you can find the conversation id. - Enable property to send message(s) to the guest.
- (Optional) Add an attachment to the message.
- Periodically retrieve messages from the queue to enable property to see whether the guest has replied.
- (Recommended) Tag a message as read by property to inform the guest.
- Enable property to reply to new messages if needed.
If the property wants to start the conversation and you do not have the reservation id, follow these high-level steps:
- Retrieve a list of all property conversations, which are in order of most recent activity.
- Retrieve the empty conversation by conversation id.
- Periodically retrieve messages from the queue to enable property to see whether the guest has replied.
- (Recommended) Tag a message as read by property to inform the guest.
- Enable property to reply to new messages if needed.
Guest starts conversation
If the guest started the conversation, follow these high-level steps:
- Periodically retrieve messages from the queue to enable property to see whether the guest has sent a message.
- (Recommended) Tag a message as read by property to inform the guest.
- Enable property to reply to the guest's message(s).
- (Optional) Add an attachment to the message.
- Enable property to reply to new messages if needed.
Not saving messages in your system
If you decide not to save the messages in your system, you can use the following flows:
- Property starts conversation flow.
- Guest starts conversation flow.
Property starts conversation
If the property wants to start the conversation, follow these high-level steps:
- Retrieve a list of all property conversations, which are in order of most recent activity.
- Retrieve the empty conversation by conversation id.
- Enable property to send message(s) to the guest.
- (Optional) Add an attachment to the message.
- Periodically retrieve conversation again to see whether guest has replied.
- (Recommended) Tag a message as read by property to inform the guest.
- Enable property to reply to new messages if needed.
Guest starts conversation
If the guest started the conversation, follow these high-level steps:
- Retrieve a list of all property conversations, which are in order of most recent activity.
- Enable property to send message(s) to the guest using conversation id.
- (Optional) Add an attachment to the message.
- Periodically retrieve conversation again to see whether guest has replied.
- (Recommended) Tag a message as read by property to inform the guest.
- Enable property to reply to new messages if needed.