Normally, Treble expects your server’s response to a webhook to be less than 10 seconds. If you need more time, you can stop the Treble conversation and wait for your server’s response with the [REQUEST_TRIGGER]
option. Learn how to configure it in this article.
[REQUEST_TRIGGER]
option. With the [REQUEST_TRIGGER]
option, Treble will wait for your server to call the POST /session/{session_external_id}/update
endpoint to continue the conversation.
[REQUEST_TRIGGER]
.[REQUEST_TRIGGER]
, Treble will stop the conversation and wait for your server’s response.
session_id
of the Treble session that comes as part of the webhook request body.
For example:
session_id
and use it to call the POST /session/{session_external_id}/update
endpoint.
POST /session/{session_external_id}/update
endpoint, you can also include in the request body the user_session_keys
, that is, session variables that can be used to continue the conversation.