Enable the virtual agent pop-up bubble to invite user to chat with the following message “Hi [User First Name], chat with me if you need help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2021 08:36 AM
Hi All,
Kindly guide me how to "Enable the virtual agent pop-up bubble to invite user to chat with the following message “Hi [User First Name], chat with me if you need help!"
- Labels:
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2021 09:47 AM
Yes I understand, so replace the message I mentioned, because that's the one you are seeing now.
If my answer helped you in any way, please then mark it as helpful.
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
08-17-2021 09:59 AM
Mark,
I have tried, mentioned in red color in that code but its not working.
Can you please give me in details where i need to modify and what i need to modify.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2021 10:13 AM
Can you share your current widget xml? Then I can test it easier. Or I can only theoretically respond.
Like I think you need to expand the Server Script, add for example:
data.your_message = gs.getMessage("Hi {0}, chat with me if you need help", [gs.getUser().getFirstName()]);
In the Body HTML, replace the line I mentioned with:
<div class="myBubble" ng-if="!$ctrl.isWindowVisible">{{::data.your_message}}</div>
If my answer helped you in any way, please then mark it as helpful.
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
08-17-2021 10:48 AM
Mark,
Now its showing as a static message , but if the user able to close the message if they don't want that message.
May i know , how to achieve that?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2021 10:53 AM
Don't understand that last comment. Please explain a bit more detailed.
Please also appreciate the effort I'm putting in by marking some of my answers as helpful.
If my answer helped you in any way, please then mark it as helpful.
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