- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2020 11:00 PM
We have virtual agent chat in out home page of portal and we want it open/pop up automatically when page loading finishes. It there any way through programming or configuration setting to make it happen?
What exactly should be the code changes? I f somebody has done it earlier please paste it over here too.
Solved! Go to Solution.
- Labels:
-
Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2020 08:05 AM
- Clone the out-of-the-box widget
- Apply the cloned widget to your Service Portal page or header/footer
- Update the Client controller and CSS script like below


If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
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
12-29-2020 07:49 AM
Hi Marks,
It really helped to achieve the desired result. But eve after closing the VA, the area reserved for the VA is unresponsive( any thing that is under the virtual agent iframe area is unclickable).
Any help to overcome this issue.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2021 02:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2021 06:21 AM
Hi Mark.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2021 07:59 AM
Maybe this helps:
Toggling Virtual Agent chat client (using Agent Chat configuration!), manually, automatically, using...
Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video list
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
03-17-2022 03:17 AM
Hi Mark,
Thanks for this solution, I just have one question; why did you set the hasUnreadMessages variable to true (line 10)? I found that setting this to true forced the system into thinking there were unread messages and therefore displayed the small red notification icon, I therefore instead set this to false which removed this icon.
Thanks
Rich

I checked it , there is no such code in the client controller.Below is the code we have in client controller
function detfn($window){
//console.log("username", $window.NOW.user_display_name);
var details=$window.NOW.user_name;
var uuisuserid=$window.NOW.session_id;
var displaynm = $window.NOW.user_display_name;
var uemail = $window.NOW.user_email;
var uavatar = $window.NOW.user_avatar;
var uid = $window.NOW.user_id;
uID(uid);
userAvatar(uavatar);
userEmail(uemail);
userDisplayName(displaynm);
userlang(g_lang);
//console.log("windoes.now is this", $window.NOW.session_id)
userDetailsfn(details);
sessionidfn(uuisuserid);
c.uuemail = $window.NOW.user_email;
//console.log("this is user details", details);
}