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


---

# Adding Virtual Agent to your web page

# Use the portable chat widget to add Virtual Agent to your web page {#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 Use the portable chat widget to add Virtual Agent to your web page

The portable chat widget enables ServiceNow customers to easily embed the Virtual Agent chat on third-party web pages, Service Portal, or UI Builder portals.
This new ServiceNow component simplifies configuration and supports a streamlined single sign-on (SSO) authentication flow while maintaining existing system parameters and context variables functionality.
Show full answer Show less  

## Key Features

* **Easy Configuration:** The portable chat widget simplifies embedding Virtual Agent chat across various web platforms.
* **Single Sign-On (SSO) Support:** Supports simpler SSO authentication when both the ServiceNow instance and the hosting site use the same external SSO provider.
* **Integration Compatibility:** Works with Service Portal Agent Chat and respects system parameters and context variables as before.
* **Security Settings:** Requires configuration of security-related system properties (com.glide.cs.embed.cspframeancestors and com.glide.cs.embed.xframeoptions) to ensure proper iframe embedding and protection against clickjacking.

## Prerequisites and Requirements

* The widget uses an iframe and requires the hosting website to share the same parent domain with the ServiceNow instance (e.g., subdomains of the same domain).
* If embedding on a subdomain not shared with the instance, a custom instance URL must be used to avoid loading failures due to browser security.
* Activation of the ServiceNow custom URL plugin (com.snc.customurl) and addition of a purchased, registered custom URL to the instance are required.
* When using SSO, the hosting site and ServiceNow instance must use the same external SSO provider, and allowed redirect URLs must be specified in the system property com.glide.cs.webclientloginredirecturls.

## Important Notes

* Do not use /$sn-va-web-client-app.do? or /snvawebclientappembed.do as standalone page configurations; instead, follow Virtual Agent URL parameter guidelines for embedding.
* The Content Management System (CMS) application does not support Virtual Agent.

## Practical Benefits for ServiceNow Customers

By using the portable chat widget, customers can seamlessly add Virtual Agent chat capabilities to their websites or portals with minimal configuration. The enhanced SSO support ensures a smoother user authentication experience consistent with their existing SSO setup. Proper domain alignment and security configurations help maintain compliance with browser security policies, ensuring reliable and secure chat widget deployment.  
The portable chat widget can run on third-party web pages, in the service portal, or in UI Builder portals.
The portable chat widget is a new Seismic component that makes it easy to add Virtual Agent chat to your page. It simplifies configuration and provides the following features:

* Easily configurable
* Simpler single sign-on (SSO) authentication flow
* Connect to Service Portal Agent Chat
* System parameters and context variables work the same as before  
  Note:  
  Do not use /$sn-va-web-client-app.do? or /sn_va_web_client_app_embed.do as a standalone page configuration. Instead, refer to the information in [Virtual Agent URL parameters](https://servicenow-prod.fluidtopics.net/F9ctSy6W~D4ZjwuHEBzXSw "Virtual Agent provides various system parameters that admins can add to an instance URL to control how page content is rendered.") for how to embed the Virtual Agent chat widget successfully.
{#use-portable-va-web-client__ul_pl5_ndk_ktb}

## Prerequisites for using the portable Virtual Agent chat widget {#use-portable-va-web-client__section_q4m_3qp_r5b}

The portable chat widget uses an inline frame element (iframe). The third-party website must be under the same parent domain as your ServiceNow® instance. For example, site1.company.com and site2.company.com share the same parent domain. If you're embedding the chat widget on any subdomain that is
not shared with your ServiceNow instance, the URL must be a custom instance URL. Due to increased browser security, the chat widget may fail to load if you don't use a custom URL.  
Before you begin, do the following:

1. [Activate the custom URL plugin
   (com.snc.customurl) in your instance.](https://www.servicenow.com/docs/access?context=activate-custom-url-plugin&version=brazil&pubname=brazil-platform-security&ft:locale=en-US)
2. [Add the custom URL (that you previously
   purchased and registered) to your instance.](https://www.servicenow.com/docs/access?context=configure-custom-url&version=brazil&pubname=brazil-platform-security&ft:locale=en-US)
{#use-portable-va-web-client__ol_mtc_4kp_ktb}  
Note:  
To learn more about using custom URLs, see [Associating custom URLs to your
instance](https://www.servicenow.com/docs/access?context=custom-url&version=brazil&pubname=brazil-platform-security&ft:locale=en-US).

## Using SSO authentication with the portable Virtual Agent chat widget {#use-portable-va-web-client__section_bbj_tsp_r5b}

After you embed the Virtual Agent client, you can optionally trigger SSO authentication from the chat widget, but only when your instance is set up to use an external SSO provider. Your hosting site must also use the same SSO
provider as your instance. For details on setting SSO providers, see [External single sign-on (SSO)](https://www.servicenow.com/docs/access?context=c_MultipleProviderSingleSignOn&version=brazil&pubname=brazil-platform-security&ft:locale=en-US).

To trigger SSO authentication, create a JavaScript script that defines conditions for running authentication and redirects users to a chat widget page that you specify. You also specify the allowed URLs that can be passed in
this script, by identifying them in the com.glide.cs.web_client_login_redirect_urls system property. Specify the full redirect URLs or the host part of the URL, such as
<kbd class="ph userinput">https://example.com</kbd>.  
This procedure requires that you set values for the following two system properties:

* com.glide.cs.embed.csp_frame_ancestors
* com.glide.cs.embed.xframe_options (IE 11 only)

{#use-portable-va-web-client__ul_awd_xsp_r5b}These properties determine the security policy for the embedded chat widget, namely how browsers render and secure HTML content for Virtual Agent and Live Agent chat, in an iframe, before you embed the web chat client. The HTTP header directives that you specify tell the browser whether a page can be embedded on certain domains to mitigate clickjacking attempts. Setting both properties ensures that there are security directives for major browsers and also older browsers, such as Internet Explorer.  
Note:  
If you're using the Content Management System (CMS) application to create custom interfaces for the ServiceNow AI Platform and ServiceNow® applications, be aware that it does not support Virtual Agent.
**Related tasks**   

* [Configure the portable Virtual Agent chat widget](https://servicenow-prod.fluidtopics.net/TiXW1eGGb4zlXTx30n7Q4A "Configure the portable Virtual Agent chat widget to run Virtual Agent on third-party web pages.")
* [Add the portable Virtual Agent chat widget to a third-party website](https://servicenow-prod.fluidtopics.net/d93d6i43X6rF4a2K6HIQew "To use the portable chat widget for Virtual Agent on third-party web pages, add the necessary code to your web page.")

