Events
Events are used to trigger a flow based on an event that happens in a certain conversation. Multiple types of events allow for widely varying use cases.
Last updated
Was this helpful?
Events are used to trigger a flow based on an event that happens in a certain conversation. Multiple types of events allow for widely varying use cases.
Last updated
Was this helpful?
Events are a versatile way to trigger a flow whenever either:
a variable changed
a silence was detected
Using a Variables Changed event will allow you to trigger a block whenever a variable value is changed. This can happen for example within a block, a , or even when an is detected. In other words, the bot will continue to the next block set to happen when this change of variable was detected.
To add an Variables Changed event to your bot:
Open the Events page under the Bot builder tab, on the left-hand side of the screen.
Click on Create event.
Fill in the event with the features that you would like. In this example, we want to trigger the block called Variable changed whenever the test_variable
changed.
Click on Create.
This results in the following flow:
And this flow will result in this type of conversation:
The changed variables are also stored in the user session, from your Debugger tab, where you can access them in the events.variablesChanged
array.
Silence Detected events allow you to steer the conversation to a new block when the user doesn't respond for a defined period of time. The duration of silence can range from 1 minute to a maximum of 1440 minutes (24 hours).
To add a Silence Detected event to your bot:
Open the Events page under the Bot builder tab, on the left-hand side of the screen.
Click on Create event.
Fill in the name, trigger and duration (in minutes) that you would like to wait before the next block. In this example, we trigger the block called Next block after 1 minute.
Click on Create.
Customers often use Variables Changed events to perfrom an API request through an .
Silence Detected events are not the same as Delays, which are a way to wait before the bot goes to the next block. Learn more about Delays .