Message response webhooks are triggered when a user responds to a message. Learn how to configure them in this article.
Create a flow
Add message blocks
Activate webhook and add endpoint
Specify the variable to capture the response
client_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. However, you can send back to Treble any information you need to continue the conversation. This 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 conditions block is an “If” type block and evaluates if the server_user_valid
variable is equal to yes
. If so, it continues along the authenticated user path. If not, it continues along another path.[REQUEST_TRIGGER]
option. For more information, you can read the article: Stop Treble conversation and wait for response from your server.