---
sourceDocument: Brazil Conversational Interfaces
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/conversational-interfaces

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Conversational Interfaces

ft:clusterId :

    - convint

bundleId :

    - convint

workflow :

    - Platform


---

# HTML bot response control

# HTML bot response control {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of HTML bot response control

The HTML bot response control in ServiceNow's Virtual Agent allows you to display static HTML text as part of a bot's response.
This feature enables you to present formatted content including images, headings, and paragraphs within chat conversations.
It is designed to support rich text display with customizable dimensions to fit various third-party messaging platforms.
Show full answer Show less  
Note that if you previously used HTML bot responses to create card layouts, it is recommended to switch to the Card bot response control, which dynamically displays information from instance records along with links to those records.

## Security considerations

ServiceNow automatically applies an HTML sanitizer script to all HTML markup, including that used in Virtual Agent conversations. This script removes potentially harmful elements or attributes to protect against cross-site scripting (XSS) attacks. You can customize the sanitizer script to adjust which HTML elements or attributes are allowed or removed by modifying the inclusion or exclusion lists.

If necessary, you can disable the sanitizer script specifically for Virtual Agent conversations by creating the system property `com.glide.cs.html.sanitizer.enabled` and setting it to `false`.

## Properties and configuration

* **Node name:** Identifies the HTML bot response control node within the conversation flow.
* **HTML message:** The actual HTML content displayed in the bot response. An HTML editor is available for composing this content.
* **Height (Pixel) and Width (Pixel):** Define the maximum dimensions of the HTML content display area, especially relevant for third-party messaging apps.
* **Hide this node:** Allows conditional display of the HTML response based on no-code conditions or low-code scripts, enabling dynamic conversation flows.

## Channel support and constraints

Rendering of HTML bot responses varies across messaging platforms:

* **Microsoft Teams:** Supports HTML output, but renders it as an image. For better compatibility, use images or card controls instead of HTML.
* **Slack:** Fully supports HTML output without constraints.
* **SMS Twilio:** Does not support HTML bot responses.
* **Google Chat:** Supports HTML output without constraints.

Because HTML is rendered differently across platforms, it is advised to preview your HTML content within target messaging applications and adjust the height and width properties accordingly to ensure optimal display.

## Practical usage notes

* The HTML bot response control is ideal for static content display such as formatted text and images.
* When URLs are included in the HTML, they are extracted and shown below the image in platforms that render HTML as images. URLs can be absolute or relative, but relative URLs must be relative to the ServiceNow instance.
* Due to differences in rendering, asset library controls and other HTML elements may not behave identically across channels.  
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](https://servicenow-prod.fluidtopics.net/4Eyi_WWYxjsTATHIb7dpvg "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."). The Card displays information from a record in your instance and contains a link to that related record.

## Security considerations for HTML markup {#va-html-output__section_dbl_f3h_tnb}

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](https://www.servicenow.com/docs/access?context=c_HTMLSanitizer&version=brazil&pubname=brazil-platform-security&ft:locale=en-US). For examples of adding markup items to the exclusion or inclusion lists, see [Configure HTML sanitizer](https://www.servicenow.com/docs/access?context=t_ConfigureHTMLSanitizer&version=brazil&pubname=brazil-platform-security&ft:locale=en-US).

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](https://www.servicenow.com/docs/access?context=t_AddAPropertyUsingSysPropsList&version=brazil&pubname=brazil-platform-administration&ft:locale=en-US).

## HTML bot response control properties {#va-html-output__section_ysk_l2r_sdb}

{#va-html-output__table_il2_n2r_sdb__entry__2}

| 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 ![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. |
[ ]

{#va-html-output__table_il2_n2r_sdb}

## Channel support {#va-html-output__section_gjj_kb4_tsb}

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.  
{#va-html-output__table_q5x_kb4_tsb__entry__3}

| 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 |
[Table 1. Channel support for the HTML bot response control]

{#va-html-output__table_q5x_kb4_tsb}

## Example HTML bot response output {#va-html-output__section_pgx_rsx_sdb}

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.  
{#va-html-output__table_f1f_v2p_xdb__entry__2}

| HTML bot response properties | HTML bot response output |
|-|-|
| Figure 1. HTML bot response control basic properties | Figure 2. Web UI HTML output |
[ ]

{#va-html-output__table_f1f_v2p_xdb}

