Actions

Actions allow your chatbot to perform tasks behind the scenes when the user interacts with your chatbot, such as setting or clearing variables, adding or removing tags, subscribing a user to broadcasts, scheduling notifications, storing data, running scripts, or sending custom analytics.

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

Entry-point level actions are triggered every time the user enters your chatbot from that entry point, before the first passage of the conversation is sent, and before any conversation-level, passage-level or message-level actions.

Conversation-level actions are triggered every time the flow enters that conversation, including if a conversation has been resumed, or if a passage has been configured to retain the previous conversation context. Conversation-level actions trigger before any passage-level or message-level actions.

Passage-level actions are triggered when the flow enters the passage, before the chatbot sends the first message of the passage.

Message-level actions are triggered when the user interacts with the button or quick reply with the configured action.

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 value to variable

Save a value to a variable for this user. This will overwrite any existing value the user has for that variable.

You can save a value based on the title of the button, passage, conversation, or entry point, or define your own value using placeholder chips or your own text.

Reset value of variable

Set the value of a variable back to its default value. If the variable does not have a default value configured, it is set to blank.

Reset values of all variables

Set the values of all variables back to their default value. Any variable that does not have a default value configured is set to blank.

Save user 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 user data Remove the data stored for this variable from the user's context data.
Subscribe to broadcasts Subscribe the user to broadcasts.
Unsubscribe from broadcasts Unsubscribe the user from broadcasts.
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.

Add tag

Add a tag to the user conversation to provide metadata and direct live chat requests in your integrated livechat platform. See Tags.

Tags that you have removed from your livechat platform are shown as expired. Expired tags cannot be added. See Expired tags.

Remove tag

Remove a tag from the user conversation.

Remove all tags

Remove all tags from the user conversation.

Save value to a variable

Define the value you want to save, and the variable you want to save it to.

Field Description
With Clear this checkbox to define your own value to use.
=

The value to store to the variable. The value defaults to the title of the button, passage, conversation or entry point that triggered the action. Clear the With checkbox to define your own value.

Type @ to use the value of a placeholder chip such as a constant, entity, or another variable.

to

The variable you want to store the value in. Any value currently stored in this variable is overwritten.

The maximum length that can be stored in a variable is 4096 characters.

Save data

Define the name and value to save.

Field Description
Name The 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.

The maximum length of data that can be stored to one data field is 4096 characters.

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.