Default input and output rich controls for a custom chat integration
Summarize
Summary of Default input and output rich controls for a custom chat integration
ServiceNow’s Zurich release provides a set of default input and output rich controls designed to be mapped within thesyscscustomadapterconfigtable for custom chat integrations. Proper mapping and outbound transformer implementation of these controls are essential to ensure that end users receive appropriate responses and a seamless chat experience. Missing transformers can result in unsatisfactory interactions with no response delivered.
Show less
Key Controls and Their Purpose
- ActionRichControl: Manages conversation events and action messages such as spinner controls, topic switching, and live agent transitions. A single outbound transformer can handle all messages under this control, with no inbound transformer needed. It also supports an
agentInfoparameter indicating messages sent from live agents. - DefaultPicker: Maps to File Picker, Topic Picker, and Boolean controls, allowing options with labels, values, descriptions, attachments, and an optional ordering parameter to define the display sequence of promoted topics.
- DefaultText: Supports input and output text, file uploads, and pictures, with attributes for required status, natural language understanding (NLU) enablement, item type, data masking, and labeling.
- DefaultDate: Handles date, time, and datetime inputs with support for required flags and NLU.
- DefaultOutputLink: Used for link responses, including label, header, and action URL properties.
- DefaultOutputImage: Represents image responses with a URL value.
- DefaultOutputCard: Displays card responses using a template name and JSON data payload.
- DefaultOutputHtml: Renders inline HTML content with configurable style, size, and HTML value.
- DefaultOutputTable: Shows tabular data with headers, labels, navigation controls, and row data arrays.
- DefaultGroupedPartsOutputControl: Supports multi-response grouped controls, such as links with descriptive labels and context information.
- DefaultMultiPartOutput: Provides multipart responses that can include embedded HTML content and navigation labels.
- DefaultCustomControl: Allows integration of user-defined custom controls with parameters for naming, input/output behavior, component definitions, and serialized control data.
Practical Implications for ServiceNow Customers
When configuring custom chat integrations, mapping these default rich controls correctly ensures that user interactions are handled appropriately, and responses are formatted as expected. Customers should implement outbound transformers for these controls to enable message delivery. Leveraging these predefined controls helps streamline development, maintain consistency across channels, and support a rich conversational experience within Virtual Agent Designer environments.
Input and output rich controls must be mapped to your custom chat integration in the Custom Adapter Configurations [sys_cs_custom_adapter_config] table. If a rich control is missing an outbound transformer implementation, a response is not served to the end user and that user may get an unsatisfactory chat experience.
The following default rich controls map to input and output rich controls. The uiType parameter refers to a topic control used to build conversations in Virtual Agent Designer.
| Rich control | Description |
|---|---|
| ActionRichControl | This component handles the different events and actions that occur in a
conversation. Some actions may not apply to all channels. For example,
StartSpinnerActionMsg is ignored in SMS. ServiceNow® Virtual Agent produces the following types of action messages through this framework. The custom chat interface only recognizes certain action message types.
ActionRichControl wraps these messages inside the actionMsg element. So, a single outbound transformer for ActionRichControl can handle all of these messages. There is no need for an inbound transformer for this component. |
| agentInfo parameter | If the rich control is sent from a live agent, then the
agentInfo attribute is added to the rich
control. Example: |
| DefaultPicker | Maps to File Picker, Topic Picker,
and Boolean
controls. Example:
The optional order parameter lets you specify the order in which promoted topics should display. For example: |
| DefaultText | Maps to Input Text, Output Text, and File Upload
controls. Example: |
| DefaultDate | Maps to Date and Time controls. |
| DefaultOutputLink | Maps to link response
controls. Example: |
| DefaultOutputImage | Maps to image response
controls. Example: |
| DefaultOutputCard | Maps to card response
controls. Example: |
| DefaultOutputHtml | Maps to HTML response
controls. Example: |
| DefaultOutputTable | Maps to table response
controls. Example: |
| DefaultGroupedPartsOutputControl | Maps to multi-response
controls. Example: |
| DefaultMultiPartOutput | Maps to multi-response
controls. Example: |
| DefaultCustomControl | Maps to custom
controls. Example: |