How to expand the virtual agent chat window by default after loading the service portal form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-19-2023 09:47 AM
The requirement is to open the virtual agent chat window automatically after loading the service portal form by default.
Chat window is currently opening when we click the virtual agent chat icon.
I have cloned and using the below OOB virtual agent chat widget for this
"Virtual Agent Service Portal Widget"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-19-2023 10:08 AM
Hi there,
Maybe this helps you:
- 2021-02-24 - Article - Toggling Virtual Agent chat client (using Agent Chat configuration!), manually, automatically, using...
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-19-2023 10:23 AM
Hi Mark,
Thanks for the reply. I already went through the article. In this article the functions in the codes you have mentioned in the article are different than the functions used in the OOB widget to display the chat window. For example toggleWindow function is used in "Virtual Agent Service Portal Widget" widget and the codes inside the functions are also not similar.
Could you please open the "Virtual Agent Service Portal Widget" widget and help me to understand where I can make changes so that the chat window will appear by default after loading the page and it will toggle when user click on the chat icon.
Thanks,
Mihir

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-19-2023 11:11 AM
What's the reason you are not using Agent Chat configuration, though instead the legacy method? Anything specific you need to keep from that, or can you switch to Agent Chat configuration. And with that, also use newer functions ServiceNow introduced over the past releases.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-25-2023 04:16 PM
Hi Mark,
Where can we find details on how to use Agent Chat configuration to achieve the requirement (open the agent chat window by default)?