Build a custom input or response control that topic authors can use in topics or
topic blocks. In Virtual Agent conversations, an input control gathers
information from end users, while a response control displays information to end
users.
Procedure
-
Navigate to .
-
On the home page, select Create.
-
On the form, fill in the fields.
Table 1. Properties form
| Field |
Description |
| Type |
List of assets that you can create in Virtual Agent Designer.
Choose the type of custom control:
- Custom Input
Control
- Custom Response
Control
|
| Name |
Unique name for the custom control that reflects its
purpose. |
| Description |
Brief explanation of the purpose and functionality of
the control. |
| Advanced properties (optional) |
| Make
inputs secure [Custom input controls only] |
| Enable |
Toggle switch that lets a custom input control pass
secure inputs, such as passwords. |
| Available on the palette |
| Enable |
Toggle switch that determines whether the custom
control appears as its own icon in the Utilities section
of the palette on the Flow tab.
This provides easy access to the control for other
authors. |
| Additional |
| Categories |
List of categories. Categories identify and group
related topics, topic blocks, or custom controls. If
applicable, choose a category for your control. |
-
Select Create.
The Flow tab opens and displays an initial flow that contains a custom control node.
-
Select the Start node and define the input parameters to the control.
Topic authors will provide these input parameters and values from the calling topic.
-
Select + Add.
-
On the form, fill in the fields.
Table 2. Add input dialog box
| Field |
Description |
| Name |
Name of the input variable that stores the input value. |
| Type |
Type of data being passed to the topic block. For example,
String, Boolean, and so on. The
fields change according to your choice. For more information, see Input data types in Virtual Agent topics. |
| Required |
Option to set the parameter as required. |
| Hint |
Tooltip that is visible when authoring a calling topic. See the following example: 
|
| Table |
ServiceNow table that is used to query for input. This
field is available only when Reference or
Array.Reference is selected from the
Type field. |
| Max Number of Rows |
Maximum number of rows that the topic block is allowed to define. This field is
available only when Array is selected from the
Type field. |
| Default Value |
Default value for the variable. This value can be used when previewing the
block. Duplicate default values are not allowed for array data types. |
-
Select Save.
-
Repeat these steps for additional parameters.
-
Select the End node and define the output parameters and values returned from the custom control.
Topic authors can use the output value in the calling topic.
-
Select + Add New.
-
Enter the name and value of the parameter.
-
Repeat these steps for additional parameters.
-
Select Save.
-
Select the custom control node and complete the property sheet as follows:
-
To create the control, select Save and then Publish.
Result
If you selected Available on the palette in the Properties
page, the Custom Control icon displays as its own icon in the Utilities section of
the palette. The control is listed on the Topics page, and you can use the Type menu
to show only custom controls.