POST
Content-Type
header to application/json
x-bp-secret
header to the secret token you set in the Botpress Hub200 OK
success response.Webhook Event
.
Start
node.Discover Events
button to see the events that were received. You can choose an event and save it as an example to trigger the conversation for testing.event.payload
variable.event.payload.body
: The body of the request - it is usually a JSON objectevent.payload.query
: A JSON object containing the URL params of the request
https://your-webhook.url/?param1=hello¶m2=world
the query object will look like this: { param1: 'hello', param2: 'world' }
event.payload.query.param1
event.payload.method
: The HTTP method of the request - usually POST
event.payload.path
: The path of the request - usually /
event.payload.path === '/new-comment'
), in which case the conversation will only start if the request is made to this url - https://your-webhook.url/new-comment
event.payload.body.category === 'Business'
condition could transition to a different flow that handles business articles.event.payload
property received via Webhook will be replaced as soon as the bot or the user sends a new message. So you should save important information in workflow variables if you want to use it later in the conversation./user
or any other path to the WebhookURL to record events specific to this URL.type
equal to text
and a user.id
equal to user-id
, you can use the following filter:event.payload.body.type === 'text' && event.payload.body.user.id === 'user-id'