Actions execute after a Dialog is resolved. This is typically after the user respond to it, except in the case of the Hidden dialog, which does not require a user response before its actions are executed. One Dialog can contain many Actions, and Actions can implement the results of prior Actions into their outcomes. Actions can also be predicated on Conditions, to allow for more complex systems of conditional executions (for further details on this, see Adding Conditions) There are a number of different Actions available, and they are as follows:
Each of these actions performs a function behind the scenes upon completion of the consumer’s interaction with the Dialog the Action is attached to. These functions are detailed below.
Set: This Action sets the value of a Variable. For further details, see Working With Variables.
Evaluate & Set: This Action performs a calculation defined in the Value field and sets the value of a Variable to the result. For further details, see Working With Variables.
Update Profile: This Action updates a field in the consumer’s profile with the value specified in the Value field. This can be used to gather further account details for a consumer’s account from within a Conversation. To update the consumer’s profile with the information provided in their response to the current Dialog Piece, this will need to be Set as a Variable in a prior Action. For example, if the Dialog Piece provided a date picker for the consumer to specify their date of birth, this could then be Set as a Variable in the first action, and this Variable could then be entered in the Value field of an Update Profile Action to update the consumer’s profile with this date. For further details, see Working With Variables.
Jump To: This Action jumps the user to a different Dialog Piece in the Conversation. The Jump To action, when used in conjunction with Conditions (see Adding Conditions) is useful for dynamically routing a consumer through a Conversation, by presenting them with alternate Dialogs based on their responses.
Terminate This Conversation: This Action ends the Conversation once this Dialog is completed by the consumer. It is useful in situations where the Conversation requires multiple potential end points.
Raise Alert: This Action raises an Alert when this point in the Conversation is reached. For information on Alerts, see Raising Alerts.
Join Another Conversation: This Action Joins a new Conversation. It can be used to dictate which Conversation will occur next. For more information on Conversation Joining, see Joining Conversations.
Cancel Another Conversation: This Action cancels a scheduled Conversation, removing it from the current queue of Conversations.
Reenrol Into Program: This Action refreshes the Program, removing all of the consumer’s progress through the Program and taking them back to the initial Conversation. If nothing is specified in the Starts field, this will occur as soon as the Dialog is complete. If you require the reenrolment to take place after a delay, best practice would be to use the [now] keyword and add a time elapse amount in ISO datetime format. For example, if you want the Program to be reenrolled in five minutes time, you would complete the Starts field with the string “[now::0.0:1:0]”.
Unenrol From Program: This Action unenrols the consumer from the Program, removing it from the widget and delivering no further content from it once the current Dialog is complete. Whether or not the “Program was successfully completed” checkbox is ticked will be reflected in the consumer’s portal record.