Process nodes are used to connect a Dialog Task to a Process App that has been created within the XO Platform.
In this article you will learn about working with the Process Node within a Dialog Task. Please see the Process Assistant documentation to learn more about working with this component of the XO Platform.
Process nodes can only be added as part of a Bot Action node. Therefore, before you can add a Process node, you need to add a Bot Action node. Read more about Bot Action Nodes.
Keeping this in mind, the setup of a Process node in a Dialog Task involves the following steps:
Add the Node
To add a Process node, please follow the steps below:
- Select the Virtual Assistant that you want to work with.
- Open the Dialog Task to which you want to add the node.
- Add or expand a Bot Action node.
- Add the Process node. The node configuration panel will open automatically, with the Component Properties tab selected.
- Under the General Settings section, enter a Name and Display Name for the Process node. Node names cannot have spaces.
- Select a Type. You can choose one of the following:
Configure the Node
Note: Any changes in this tab will affect all instances of this process. Proceed with caution.
The Component Properties tab lets you modify configurations of this process across all instances in all dialogs. as follows:
- Trigger: The node will trigger the Process App.
- Send Bot Response to Process App: The node sends the Bot Response to the Process App, which can then use it to complete other configured tasks.
- Get Process Tasks: The node retrieves process tasks from within the Process App, then includes these tasks within the current Dialog Task.
Since they are contained within Bot Action nodes, Process nodes cannot be connected on their own to any other nodes outside the Bot Action node to which they belong. Connections can only be made with nodes contained within the same Bot Action node.
From the node’s Connection Properties tab, you can configure the following:
- Process Node Connections: The node within the Bot Action to execute next, after the Process node runs.
- Bot Action Connections, where you can update the node to trigger after the Bot Action group is executed. Updates made here will apply to all nodes within the same Bot Action.
For both connection types you can write conditional statements based on the values of any Entity or Context Objects in the dialog task, or you can use Intents for transitions.
Note: The conditions configured here are applicable only for this instance and will not affect this node when being used in any other dialog.
To set up node connection conditions, please follow the steps outlined in Adding IF-Else Conditions to Node Connections