Why use webhooks

Ultimate Chat API leverages webhooks to enhance performance and makes the conversations more responsive. The Chat API responds with an empty 200 response to indicate that the request has been acknowledged and will be handled. The actual bot response will be sent as a separate webhook request.

The main reason to use this approach is that it allows the bot to be proactive in sending messages without needing a visitor message as an input. An example of this is sending a message after a timeout asking if the conversation can be closed. Another reason is that we can send consecutive bot messages as they happen without needing to group them together.