Card bot response control
-
- UpdatedJul 29, 2024
- 7 minutes to read
- Vancouver
- Virtual Agent
Use the Card bot response control in a Virtual Agent topic to upload and display selected information from a record on your instance, along with rich content, such as a video or image.
A card can contain record information, an image, or a YouTube video content in a compact format. The compact format is designed for readability within the chat window.
The Card bot response can show the following types of content:
- Record: Displays content from a single record on your instance. This record can be referenced from variables in the flow or queried using a script that returns a single Glide record from a selected table. The record content includes the display field for the table at the top of the card, followed by any other fields specified by the properties of the bot response.
- Image: Displays a large or small image that you provide, along with a title and description. The property sheet provides a pre-configured template for the card layout. Specify the title, description, and the image source.
- YouTube video: Displays in an inline video player if supported on the channel. The image
is displayed along with a title, description, and hyperlink to relevant content.
In the Vancouver release, only YouTube videos are supported.
Tip: You can also use the Video bot response control to include YouTube videos in conversations. The Video bot response control includes a navigation button that pauses the conversation. If you want the user to watch the video before continuing with the conversation, use this navigation button. When users have finished watching the video, they can click this navigation button to continue with the conversation.
Card bot response control properties
Property | Description |
---|---|
Node name | Name that identifies this Card bot response control node in the topic flow. |
Card type | Type of card to be used. Choose one of the following options:
|
Type: Record | |
Record | Reference to a specific record. Data for the card comes from a record
referenced in a variable from another node in the flow. For example, the reference
could be a Choice List or Glide Action.
|
Table | Table that references a single Glide record that contains the data shown in the card. |
Filter this table by using | Enter the condition or script to filter data in the table and return the
record.
|
fields | Fields from the ServiceNow record to be displayed in the card. Specify each field by clicking Add Field. Note: If you're using Workplace, a maximum of four fields
is rendered on the card. If you have more than four fields, the remaining fields
are displayed on a subsequent card, with up to four fields per card. |
Type: Large image with text or Small image with text | |
Template | A visual representation that shows the image card layout. Each area of the template is numbered. |
Map data to fields on the card | Fields that correspond to the numbers shown on the template. These fields are
the following:
|
Type: YouTube Video card | |
Template | A visual representation of the layout of the video included in the card. |
Map data to fields on the card | Fields that correspond to the numbers shown on the template. These fields are
the
following:
|
Advanced | |
Hide this node | |
Conditionally show this node if | 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. |
Channel support
Example Glide record query
In this example, the script creates a GlideRecord object, populates this object using a query that should return a single result, then returns the object. The Table property defines the table used in this query.
Example Card bot response output for records
Response properties | Card output |
---|---|
![]() |
![]() |
Example Card bot response for a large image
The Card response layout for images may vary across channels.Response properties | Card output |
---|---|
![]() ![]() |
Example Card bot response for a small image
The Card response layout for images may vary across channels.
Response properties | Card output |
---|---|
![]() |
![]() |
Example Card bot response with video content
The way the Card bot response displays videos may vary across channels. For example, the display you see in Slack messages may be different from what you see on Microsoft Teams or Workplace from Facebook. Also, if an embedded player is supported on that channel, the player is included in the display. For more information about channels, see the documentation for the channel that you're using.
Response properties | Card output |
---|---|
![]() |
![]() ![]() |