Add the Portable Virtual Agent chat widget to a third-party website
-
- UpdatedNov 14, 2024
- 2 minutes to read
- Vancouver
- Virtual Agent
The Vancouver release is no longer supported. As such, the product documentation and release notes are provided for informational purposes only, and will not be updated.
To use the Portable chat widget for Virtual Agent on third-party web pages, add the necessary code to your web page.
Before you begin
Configure the Portable Virtual Agent web client prior to completing this topic's steps.
For additional information, review the How to embed Virtual Agent in an external site article on the ServiceNow Community site.
Role required: virtual_agent_admin or admin
Procedure
Import and instantiate this script reference to the page header to create a ServiceNow chat instance on your external page header:
Note: In the script reference example, site1.example.com refers to the URL for your ServiceNow instance.
Tip: If your organization uses a custom domain name, input the custom domain name as the instance property, rather than the ServiceNow domain name, to ensure that browser results are consistent among multiple browsers.
- Example with configuration
- JSON configuration schema