Add a custom control to a Virtual Agent topic or topic block
Add a custom control to a Virtual Agent topic or topic block. During the conversation, you can gather inputs from the user or display outputs to the user.
Before you begin
Do the following before you start this task:
- Create and publish the custom input or response control.
- Create a calling topic or topic block in which the custom control will be embedded.
Role required: virtual_agent_admin or admin
Procedure
Navigate to All > Conversational Interfaces > Virtual Agent > Designer.
On the home page, select the topic where you will add the custom control.
In the Flow tab, drag the Custom Control icon from the Utilities section of the palette to the appropriate position in the topic flow.
Note: If you selected Available on the palette in the custom control Properties page, the Custom Control displays as its own icon in the Utilities section of the palette.
Select the custom control node.
On the form, fill in the fields.
| Property | Description |
|---|---|
| Custom control | The name of a custom control asset that has been published in Virtual Agent Designer. |
| Node name | The name of the custom control you selected. |
| Input mapping | The variables to be used as input to the selected custom control. For example, the following image has example variables: Image omitted: map-cc-input-values-topic-block.png The contents of this area change according to the custom control you selected. Options may include string input, referenced records, scripts, and so forth.Input mapping variables on this custom control include transaction date and time, customer name, and product issue. |
| Output mapping | The variables to be output by the selected custom control. For example, the following image has example variables that are enabled: Image omitted: cc-output-mapping-topic.png The contents of this area change according to the custom control you selected.Output mapping variables for this custom control include issue and username. |
| Advanced | |
| Hide this node | |
| Conditionally use this node if | A no-code condition statement or low-code script that specifies a condition for presenting this node in the conversation. The condition must evaluate to true. |
Select Save.
To see how your custom control works in the topic, select Test in the header bar.
Your topic runs in a chat test window.
If no further changes are needed, select Publish in the Virtual Agent Designer header bar.
Result
The topic is active. You can deploy it to your Virtual Agent clients.