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 Mark

So did you try to edit the widget then? You could just strip the mouse hovering part.

If you don't have that much knowledge of service portal widgets, then you might also use this, and just setting the time to 0 seconds.
Virtual Agent feature bubble (2), auto display after N seconds

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

Hi Mark,

I have modified OOB widget,

HTML:

<div class="conversation-button-container">
<div class="conversation-region fade"
ng-class="{'open': $ctrl.isWindowVisible}">
<div class="sn-connect sn-connect-floating">
<div class="sn-connect-floating-wrapper loaded">
<div class="conversation-container">
<iframe title="${Chat Support}" class = "chat-frame" scrolling="no" horizontalscrolling="no" verticalscrolling="no" frameborder="none" ng-src="{{$ctrl.vaSource}}">
</iframe>
</div>
</div>
</div>
</div>
<div class="myBubble" ng-if="!$ctrl.isWindowVisible">${How can we help you today?}</div>
<div ng-if="c.enableConversationBubble" class="conversation-bubble">
<font class="conversation_bubble_question">{{::data.conversationBubbleQuestion}}</font><br />
<font class="conversation_bubble_answer">{{c.conversationBubbleAnswer}}</font>
</div>
<button aria-label="${Start Support Conversation}"
class="help-button"
ng-attr-tabindex="0"
ng-class="{'state-open': $ctrl.isWindowVisible, 'state-unread': $ctrl.hasUnreadMessages}"
ng-click="$ctrl.toggleWindow()"
ng-style="{'background-color': $ctrl.options.button_color}"
ng-attr-tabindex="0">
<div class="hover-overlay"></div>
<span aria-hidden="true" ng-class="$ctrl.isWindowVisible ? 'help-icon icon-close icon-cross' : 'help-icon icon-open sn-va-widget-icon'"></span>
</button>
</d

 

Server script : 

var userFirstName = gs.getUser().getFirstName();
data.conversationBubbleQuestion = gs.getMessage('Hello, {0}. Chat with me if you need help!', userFirstName);

var instanceGR = $sp.getInstanceRecord();

options.va_url_params = options.va_url_params || "";
options.button_color = options.button_color || "red";
})();y

 

With out that highlighted code its working like below I am getting in the portal but in i need to display message like Hi "firstname" some text here.

 

 

find_real_file.png

That's just because of this line right?

<div class="myBubble" ng-if="!$ctrl.isWindowVisible">${How can we help you today?}</div>

So just update it.

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 i don't want to display that message :

How can we help you today

Instead of that i need to display message : Hi{user firstname},how can we help