---
title: Add the portable Virtual Agent chat widget to a third-party website
description: To use the portable chat widget for Virtual Agent on third-party web pages, add the necessary code to your web page.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/conversational-interfaces/virtual-agent/add-portable-va-client-website.html
release: australia
product: Virtual Agent
classification: virtual-agent
topic_type: task
last_updated: "2026-09-08"
reading_time_minutes: 7
keywords: [Add, portable, Virtual Agent, chat widget, third-party]
breadcrumb: [Adding Virtual Agent to your web page, Configure, Virtual Agent, Conversational Interfaces]
---
# Add the portable Virtual Agent chat widget to a third-party website
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 chat widget](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/configure-portable-va-web-client.md) before completing this topic's steps.
For more information, review the [How to embed Virtual Agent in an external site](https://www.servicenow.com/community/virtual-agent-nlu-articles/how-to-embed-virtual-agent-in-an-external-site-updated-for-tokyo/ta-p/2308092) article on the ServiceNow Community site.
**Note:** Interactive view and the ability to move and drag the chat window are currently unavailable in embedded enhanced chat.
Role required: virtual\_agent\_admin or admin
## About this task
Both enhanced and standard chat code is included in this topic. Review the beginning of each step to confirm you're implementing the applicable chat experience's steps.
## Procedure
1. Enhanced chat only: Verify that your enhanced chat assistant is linked to a portal in **Conversational Interfaces** > **Assistant Designer** > **\[Assistant name\]**.
You can link to either a placeholder portal or an applicable portal. The portal suffix, for example, `esc`, is required for the following step.
2. Enhanced chat only: 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 verify that browser results are consistent among multiple browsers.
- **JSON configuration schema**
```
instance: - required. Origin of your ServiceNow instance, e.g.
'https://yourco.service-now.com'.
portal: - required. ServiceNow portal suffix (e.g. 'esc', 'sp', or a
custom portal's suffix). Sent as the embed URL's `portal_suffix` param.
manageNowLogin: - default false. When true, listens for the iframe's
SESSION_CREATED (unauthenticated) and SESSION_LOGGED_OUT postMessages and
redirects the *host page* to the instance's SSO login when either fires.
showSupportAndSettingsMenu: - default false. Shows the chat's built-in
support/settings menu.
context: