Message response webhooks are triggered when a user responds to a message. Learn how to configure them in this article.
Creating a flow
Add message blocks
Activate webhook and add endpoint
Specify the variable to capture the response
customer_id
.Save changes
user_session_keys
is an array of objects that contains the key and value of the response. For this example, the key should be server_user_valid
and the value should be yes
if the user exists or no
if they don’t exist. However, you can send back to Treble any information you need to continue the conversation. Such response can contain more variables that can be used in the flow.
Example:
server_user_valid
variable is a session variable that is saved in the flow and is the response that is sent to the server. The condition block is an “If” type block and evaluates if the server_user_valid
variable is equal to yes
. If so, it continues on the authenticated user path. If not, it continues on another path.[REQUEST_TRIGGER]
option. For more information, you can read the article: Stop Treble conversation and wait for your server response.