Post Actions
The Post actions defined on a flow step will be executed after the flow step is completely executed.
DRUID provides bot authors with two types of actions, as follows:
- PostAction – External actions from integrations which are defined using the Connector Designer. You can use the actions to trigger certain actions defined in your external system integrated with the chatbot.
-
PostInternalAction – The system has a predefined set of system commands known as internal actions. You can use them to trigger specific system commands. For example, when provisioning an identified user, you want to assign the roles User and Admin. To do so, add the system command AddUserRoles and in the text field enter ["User","Admin"].
To view the PostActions section on a flow step, in the Flow Step editor, click on the PostActions section header.
Adding external actions on the flow step
To add an existing external action on a step using flow steps in diagram view, double-click on the flow step and in the PostActions section, search in integrations and select an existing external action.
To add a new external action on a flow step by defining it from scratch, click the AddNew button, define the connector action and add subsequent integration tasks.
To add an external action on a step using flow steps in list view, follow these steps:
- In the PostActions section of the step, click AddNew and select ostAction. The AddNewAction page appears.
- Click on the SelectConnector field. A pop-up appears listing all existing external actions. You can either scroll-down to the desired action or you can use the search functionality to search for the desired action.
- Select the desired action and click the Add button. The external action associated with your selection is listed in the PreActions section.
- Click the Save button at the bottom of the page to save the changes.
The actions are executed in the order of their listing in this section.
If you have more actions in this section and you want to change their execution order, you can do so by holding the cursor on the icon (the one with the arrows) and use the drag and drop functionality.
Add DRUID internal actions on flow steps
To add a DRUID predefined action (internal action) on a flow step using flow steps in diagram view, double-click on the flow step and in the PostActions section, search in integrations and select the desired predefined action. These actions are marked with the word "INTERNAL".
To add an internal action on a step using flow steps in list view, follow these steps:
- In the PostActions section, click AddNewand select PostInternalAction. The AddNewAction page appears.
- Click on the SelectConnector field. A pop-up appears which lists the predefined actions available in DRUID.
- Select the desired action and click the Add button. The selected action is listed in the PostActions section.
- Click the Save button at the bottom of the page to save the changes.
The actions are executed in the order of their listing in this section.
If you have more actions in this section and you want to change their execution order, you can do so by holding the cursor on the icon (the one with the arrows) and use the drag and drop functionality.
Deleting an action
To delete an action from the PostActions section, click the Delete icon displayed inline with the action.