Actions

Actions allow your chatbot to perform tasks behind the scenes when the user interacts with your chatbot, such as subscribing a user to stories, scheduling notifications, storing data, running scripts or sending custom analytics.

Actions can be added to any button-like Bot Message content type or Expected User Response, such as:

You can:

When a Bot Message or Quick Reply has an action attached, it displays an icon to indicate the type of action that has been configured. 

Action Description
Save data

Store the value of the button label or a value you define to the user's context data. You can use this data elsewhere in the chatbot as a variable.

See more information on the Save data configuration fields.

Remove data Remove the data stored for this variable from the user's context data.
Subscribe to stories Subscribe the user to stories.
Unsubscribe from stories Unsubscribe the user from stories.
Schedule an event notification

Schedule a notification for this user. For example, a reminder message for an appointment they have booked.

The date and time the notification is sent is determined by the notification settings, relative to when it is scheduled for the user.

Unschedule an event notification

Remove a scheduled event notification for this user. For example, if they have cancelled the appointment, they should not receive a reminder message.

Send a custom event to analytics

Send a custom event to your integrated analytics platform. You can define the name of the event, and optionally define the value that is sent.

See more information on the Send a custom event to analytics configuration fields.

Run script

Select a script to be run when the user presses this button or Quick Reply.

Save data

Define the name and value to save.

Field Description
Name The variable name used to access the data in the store. If this name is already in use, the existing value will be overwritten.
Override Value By default, this action stores the button label as the value. Select this setting to define the value to store.
Value The value you want to store.

Send a custom event for analytics

Define the name and value to send.

Field Description
Name The name of the event you want to send.
Override Value By default, this action sends the button label as the value. Select this setting to define the value to store.
Value The value you want to send.

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.