You can send custom events from your website to Webchat. This is useful if you want your bot to transition to a certain Node or Workflow when something happens on your website.
You will need:
Visual learner? Check out our YouTube guide on sending custom events.
First, setup an event to send Webchat from your website’s source code:
customPayload
can be any JSON object.
Next, add a custom trigger Node in Studio:
{{ event.payload }}
. This will capture the most recent event you send.The trigger Node won’t work until you’ve succesfully tested it.
Now, you can test your trigger Node:
Done! Now you can send custom events to Webchat.
You can send custom events from your website to Webchat. This is useful if you want your bot to transition to a certain Node or Workflow when something happens on your website.
You will need:
Visual learner? Check out our YouTube guide on sending custom events.
First, setup an event to send Webchat from your website’s source code:
customPayload
can be any JSON object.
Next, add a custom trigger Node in Studio:
{{ event.payload }}
. This will capture the most recent event you send.The trigger Node won’t work until you’ve succesfully tested it.
Now, you can test your trigger Node:
Done! Now you can send custom events to Webchat.