The CreatorCon Call for Content is officially open! Get started here.

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!

Reddy34
Tera Contributor

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!"

21 REPLIES 21

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

LinkedIn

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.

 

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

LinkedIn

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? 

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

LinkedIn