HTML bot response control

reference australia Updated Sep 10, 2026 3 min read va-html-output.md
Raw file servicenow.com

Use the HTML bot response control to display static HTML text in the Virtual Agent bot response.

Note: If you created conversations in earlier releases that use this bot response control to generate card layouts, consider updating your conversations to use the Card bot response control. The Card displays information from a record in your instance and contains a link to that related record.

Security considerations for HTML markup

For security reasons, an HTML sanitizer script runs automatically and checks all HTML markup used in the instance, including Virtual Agent conversations. The sanitizer script removes elements or attributes that might enable cross-site scripting attacks. You can edit the HTML sanitizer script to change the list of markup items to be preserved or removed. For details, see HTML sanitizer. For examples of adding markup items to the exclusion or inclusion lists, see Configure HTML sanitizer.

To disable the HTML sanitizer script only for Virtual Agent conversations, add the com.glide.cs.html.sanitizer.enabled system property and set the value to false. For details about creating a system property, see Add a system property.

HTML bot response control properties

Property

Description

Node name

Name that identifies this HTML bot response control node in the topic flow.

HTML message

HTML output to be displayed. Select the Script icon [Omitted image "icon-script.png"] Alt text: Script icon. to open the HTML editor and enter the HTML text.

Height (Pixel)

Maximum height of the area for displaying HTML output in third-party messaging applications.

Width (Pixel)

Maximum width of the bot bubble for displaying HTML output in third-party messaging applications.

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

Note: As shown in the examples, HTML output can vary in third-party messaging applications. Determine an appropriate Height and Width area by setting initial height and width values, previewing the HTML output in the messaging applications you intend to use, and then adjusting the height and width values.

Channel Support Constraints
Microsoft Teams Supported Since HTML is rendered as an image in Microsoft Teams, other controls are recommended. For example, use images or cards instead of HTML for Microsoft Teams.
Slack Supported None
SMS Twilio Not supported Not applicable
Google Chat Supported None

Example HTML bot response output

The HTML bot response shows a static HTML as a chat response. This example includes an image, headings, and paragraph text. The web UI presents this content as HTML. The Slack, Microsoft Teams, and Workplace user interfaces display the same content as a PNG image. URL links within the HTML are extracted and displayed below the image. The URL can be either an absolute or a relative link. If you use a relative link, it must be relative to the ServiceNow instance.

Note: Asset library controls may display and function differently in other channels.

HTML bot response properties

HTML bot response output

[Omitted image "va-html-properties.png"] Alt text: Basic properties include the node name, HTML message, height, and width.

[Omitted image "va-html-native.png"] Alt text: A chat window shows the company logo with a header, subheader, and body text.

**Parent Topic:**[Assistant Designer bot responses](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-bot-responses.md)
Keywords Virtual AgentdesignerHTMLbotresponsecontrol
Search documentation
Search document titles and file paths on the australia branch