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:

  • Buttons.
  • Media buttons.
  • Carousel buttons.
  • Quick Reply buttons.

Action icons

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.

Configure an action

To configure an action:

  1. Click the button or Quick Reply you want to add the action to.
  2. Click Actions.
  3. Click + Action to add an action.
  4. Configure your action.
  5. Click Save.

You can add as many actions as you need. Actions are performed in the order they are listed.

Remove an action

To remove an action:

  1. Click the button or quick reply you want to remove the action from.
  2. Click Actions.
  3. Click the delete icon next to the action you want to remove.
  4. Click Save.

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.

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.

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 for 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.

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.

Run script

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

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

Comments

0 comments

Article is closed for comments.