Virtual Agent - Hide the widget based on user's country

Harsha M V
Tera Contributor

Hi All,

How do we hide the Virtual Agent portal widget for certain users based on user's country?

Please provide your inputs.

 

Thank You,

1 ACCEPTED SOLUTION

Muralidharan BS
Mega Sage
Mega Sage

HI Harsha,

If you are using VA portal widget and com.glide.service-portal.user-criteria plugin enabled then you can add user criteria to the widgets or widget instance or even the page. 

just add the can view and cannot view to the related list and you should be good to add user criteria there. 

more about adding user criteria - https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/build/service-portal/task/widget-user-criteria.html

Thanks

 

View solution in original post

4 REPLIES 4

Muralidharan BS
Mega Sage
Mega Sage

HI Harsha,

If you are using VA portal widget and com.glide.service-portal.user-criteria plugin enabled then you can add user criteria to the widgets or widget instance or even the page. 

just add the can view and cannot view to the related list and you should be good to add user criteria there. 

more about adding user criteria - https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/build/service-portal/task/widget-user-criteria.html

Thanks

 

peter_repan
Tera Guru

Hi Murali,

If I don't use legacy service portal widget for a chat, but Agent Chat Configuration, is there a way to define the "country-based" condition? 

I know in "agent chat" configuration we are limited to roles and portal.

I'm thinking about having a custom server-side script in Header widget determining user's country and conditional-based CSS style to hide/show the Virtual Agent icon. 

Do you think this can work?

Hi Peter,

Did you figure out a way to hide the VA chat bubble based on logged in user's country info when using Agent Chat Configuration?

We have a similar requirement to hide VA in the Service Portal for users from specific countries.

Thanks,
Sushant

 

AndreiB
Tera Contributor

HI @Harsha M V,
Have you managed to find a solution to your challenge? 
My thought was to define a role and use the role for Agent Chat Configuration, then use a scheduled script to assign/remove the role to users based on a list of countries.