The Split Flow component defines the possible ramifications that a conversation may follow.
Adding a Split Flow Component
-
Click a Virtual Agent model [1] in the list and select Designer [2].
-
Under “General”, select the Split Flow component [3] and then drag it to a canvas on your right side [4].
-
Double-click the component. Then, the component settings panel [5] will appear.
-
Provide the required details of the component.
-
“Component name” [6]: The name of the Split Flow component. The name can only contain letters, numbers (except as a first character), and underscores, and can be as long as 30 characters.
-
“If variable” [7]: Enter a variable for validations so that the flow can be split into different branches. It must be a variable defined in an Ask or Execute Action component. Spaces are not allowed.
Under the “If variable” field, you can define a list of ramifications (that is, validations or exits) with each containing its name (for example, > and =), type (Number or String), and a variable value for validation comparison. If the type is “Number”, you must enter a valid number. If the type is “String”, make sure the string value matches the value set in the Ask or Execute Action component. To compare the intent captured in the Ask component, the type should be “String” and the value should exactly match the intent name.
Note: Click Add exit or the trash can icon
to add or remove an exit option. You must define at least one exit option. Besides, you can define a default path when none of the conditions defined is matched. On the Split Flow component node, you can see that the Default exit is displayed with other exit options.
-
-
Click Save [8].
-
After the component is created, you can connect it with another component. For each validation defined, there must be an outgoing arrow connecting it to at least one component node. Keep in mind that if the component is not directly or indirectly connected to a Flow Trigger component, it will be ignored when the flow runs.
Note: A red exclamation mark will appear on the component node if any required field is invalid. Hold the pointer over it to see further details.
Deleting a Split Flow Component
- On your canvas, click the Split Flow component you want to delete, and then press the backspace key (Windows) or the delete key (Mac) on your keyboard. Alternatively, you can double-click the component and select Delete in the side panel that appears.
- Click Delete component in the dialog that appears to confirm the deletion.