jsn / ServiceNow, simplified.
AustraliaREFERENCE GUIDE

Add a custom control to a Virtual Agent topic or topic block

On this page

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:

Role required: virtual_agent_admin or admin

Procedure

  1. Navigate to All > Conversational Interfaces > Assistant Designer.

  2. Select the Asset library tab.

  3. Open the topic where you will add the custom control.

  4. 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.

  5. Select the custom control node.

  6. On the form, fill in the fields.

<table id=“id_dst_y5v_1tb”><thead><tr><th>

Property

</th><th>

Description

</th></tr></thead><tbody><tr><td>

Custom control

</td><td>

The name of a custom control asset that has been published in the Assistant Designer Asset library.

</td></tr><tr><td>

Node name

</td><td>

The name of the custom control you selected.

</td></tr><tr><td>

Input mapping

</td><td>

The variables to be used as input to the selected custom control. For example, the following image has example variables:

[Omitted image “map-cc-input-values-topic-block.png”] Alt text: Input mapping variables on this custom control include transaction date and time, customer name, and product issue.

The contents of this area change according to the custom control you selected. Options may include string input, referenced records, scripts, and so forth.

</td></tr><tr><td>

Output mapping

</td><td>

The variables to be output by the selected custom control. For example, the following image has example variables that are enabled:

[Omitted image “cc-output-mapping-topic.png”] Alt text: Output mapping variables for this custom control include issue and username.

The contents of this area change according to the custom control you selected.

</td></tr><tr><td class=“sub-head” colspan=“2”>

Advanced

</td></tr><tr><td class=“sub-head” colspan=“2”>

Hide this node

</td></tr><tr><td>

Conditionally use this node if

</td><td>

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.

</td></tr></tbody> </table>7. Select Save.

  1. To see how your custom control works in the topic, select Test in the header bar.

    Your topic runs in a chat test window.

  2. If no further changes are needed, select Publish in the Assistant Designer Asset library header bar.

Result

The topic is active. You can deploy it to your Virtual Agent clients.

Keep exploring.

Find another answer, or bring this documentation into your own tools.