Have Virtual Agent pop up when service portal is visited?

User517509
Tera Expert

Hello - does anyone have advice or directions on how to get the Virtual Agent to be popped up and ready instead of having to click on it first in the service portal? Seems this should be OOB functionality. Thank you in advance.  

1 ACCEPTED SOLUTION

johndoh
Mega Sage

I prefer to use the footer that is part of my theme, so it is enabled across all of the portal. Also, this is how I handle my widget to get it to standout - Enable Virtual Agent Feature Bubble without SlideN... - ServiceNow Community.

 

View solution in original post

7 REPLIES 7

Riya Verma
Kilo Sage
Kilo Sage

Hi @User517509 ,

 

Hope you are doing great.

we need to modify the Service Portal widget that contains the Virtual Agent component. Follow these steps:

  1. Identify the widget responsible for rendering the Virtual Agent component in the Service Portal. This widget is mostly named like "sp-portal-chat" or "sp-virtual-agent".

  2. locate the JavaScript code that initializes the Virtual Agent component. It is mostly in client script side script

  3. Modify the initialization code. 

 

// Find the code that initializes the Virtual Agent
var virtualAgent = new GlideVirtualAgent();

// Add code to trigger the pop-up behavior
virtualAgent.popup(); // This line will trigger the Virtual Agent to pop up automatically

 

  • Save and publish the widget.
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

This looks like an AI hallucination, GlideVirtualAgent doesn't exist 💀

User517509
Tera Expert

Thank you very much! I will give it a try in my DEV environment!  

Paul Curwen
Giga Sage

It is now available OOTB without the need for modifying anything. Take a looks at Proactive Triggers, they are very easy to configure, this is a great overview video:

 

https://youtu.be/jej-N21Z9oQ

 

 

 

if Helpful please mark as Correct/ Helpful

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul
Join Eric Merkle and Victor Chen as they cover how to use proactive triggers to proactively notify your users. We are live every other Tuesday at 8:30 AM Pacific Time. Check out the Conversational Interfaces Academy page to register and for more information! https://bit.ly/virtualagentacademy ...