An action is a single ability or a task that the bot performs when you give an instruction as a part of your conversation. For example, you can ask the bot to fetch your appointments for the day or ask it to schedule a meeting to your calendar.
What will happen if I deactivate an action?
If you deactivate an action and deploy it to production, then that respective action will not be available for the chat in production bot.
How many params can be defined to an action?
A maximum of 20 params can be defined to an action.
Can I change the prompting order of the params?
Yes. You can change the prompting order of the params in any of the following ways.
To change the prompting order of a param statically, in the action's details page, under the PARAMS section, just drag and drop an individual param at the desired position.
To change the prompting order of a param dynamically in runtime, in the Context handler function, configure the respective param details as a map value to the 'prompt' key. In addition to this, the Context handler function also helps to skip some params, do custom validations of the param values and ask for a confirmation before action execution in the runtime.
Is it possible to define input prompts that can be skipped by the user?
Yes. By selecting the Allow to skip toggle switch while defining a param, that specific param can be made as optional and it can be bypassed by the user without answering when prompted.
Is it possible to give a visual reply to the user in the form of an image or table?
Yes. It is possible to give a visual reply to the user in the form of an image, table, list, vcard, etc. Please read this document to learn how to implement it.
Is it possible to pass some data from my client app to server business logic?
Yes. Using the 'sessionData' argument, it is possible to pass the data from the client app to server business logic. Please read this document for more information about the 'session data' argument.
Is it possible to pass some data between different deluge functions of an action?
Yes. By setting any data as a map value to the 'cache' key, that will be available as an argument for all the functions of an action.
Is it possible to pass some data between different actions of a skill?
Yes. By setting any data as a map value to 'broadcast' key, that will be available as an argument for all subsequent actions until the current chat session is over.
Is it possible to customize the suggestions shown after an action completion?
Yes. Using Action Followups, you can customize the suggestions shown after an action completion. Please read this document for more information about Action Followups.
Is it possible to simulate client session values while testing an action?
Yes. Using the Override Session Data
option present in the test chat window on all deluge functions, you can
test your action with different sets of mock session data.