Configuring the portable Virtual Agent chat widget
Summarize
Summary of Configuring the portable Virtual Agent chat widget
The Portable Virtual Agent chat widget enables ServiceNow customers to easily embed the Virtual Agent chat feature on third-party web pages, Service Portal, or UI Builder portals. This new Seismic component simplifies configuration, supports a streamlined single sign-on (SSO) authentication process, and maintains compatibility with existing system parameters and context variables. It allows you to extend Virtual Agent capabilities beyond the ServiceNow platform to enhance user engagement on external sites.
Show less
Prerequisites
- The third-party website hosting the chat widget must share the same parent domain as your ServiceNow instance (e.g., site1.company.com and site2.company.com).
- If the chat widget is embedded on a subdomain that does not share the parent domain with your instance, a custom instance URL is required due to modern browser security restrictions.
- Before embedding, activate the
com.snc.customurlplugin and add your custom URL to the instance configuration.
SSO Authentication Setup
When your ServiceNow instance is configured with an external SSO provider, and the hosting site uses the same provider, you can enable SSO authentication for the chat widget. This requires:
- Creating a JavaScript script that triggers SSO authentication based on defined conditions and redirects users to a specified chat widget page.
- Configuring allowed redirect URLs in the
com.glide.cs.webclientloginredirecturlssystem property by specifying full URLs or hostnames. - Setting security-related system properties
com.glide.cs.embed.cspframeancestorsandcom.glide.cs.embed.xframeoptions(the latter for IE 11) to define browser security policies for embedding the chat widget in iframes and prevent clickjacking.
Configuration and Usage
- Add the Portable Virtual Agent chat widget code snippet to your third-party web pages to embed the chat interface via an iframe.
- Optionally, enable automatic SSO for guest users accessing the chat widget.
- This method supports both new Seismic components and legacy iframe embedding approaches.
Important Notes
- The Content Management System (CMS) application does not support Virtual Agent interfaces, so it cannot be used to create custom portals for this chat widget.
By following these steps, ServiceNow customers can extend Virtual Agent chat functionality to external websites securely and efficiently, enhancing user support and engagement across digital channels.
The Portable chat widget can run on third-party web pages, in the service portal, or in UI Builder portals.
- 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
Prerequisites for using the Portable Virtual Agent chat widget
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.
Using SSO authentication with the Portable Virtual Agent chat widget
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).
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 https://example.com.
- com.glide.cs.embed.csp_frame_ancestors
- com.glide.cs.embed.xframe_options (IE 11 only)