How to active skip_load_history for Agent Chat

Junyu
Tera Contributor

Dear all,

I want Virtual Agent to automatically expand and start a new conversation when the user enters the portal, I know it's  skip_load_history. I tried it in Agent Chat but it doesn't work:

find_real_file.png

find_real_file.png

I want to know the correct configuration (not in service portal configuration -> widget editor).

Thanks a lot.

1 ACCEPTED SOLUTION

Here you go:
- 2021-02-24 Toggling Virtual Agent chat client (using Agent Chat configuration!), manually, automatically, using...

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

View solution in original post

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Can you explain how you found to build the vaSource like this?

 

If I look at the out-of-the-box EC Polaris Agent Chat Configuration:

(function($sp) {
	var isVAActive = GlidePluginManager.isActive('com.glide.cs.chatbot');
	var isHRCoreActive = GlidePluginManager.isActive('com.sn_hr_core');
	var configObj = {
		live_agent_queue: $sp.getDisplayValue('sp_chat_queue'),
		branding_key: 'ec_branding',
		portal: $sp.getValue('url_suffix'),
		live_agent_only : !isVAActive
	};
	if (isHRCoreActive)
		configObj.liveagent_application = "hr";
	return configObj;
})($sp);

This for example already contains branding_key. Why do you have this now also in the vaSource?

About your question on skip_load_history, you could expand configObj. With:

skip_load_history: true

Also see:
https://community.servicenow.com/community?id=community_question&sys_id=406fcb54dbf52810fa192183ca96...

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 Roethof 

Thanks for your feedback, do you mean this way: 

find_real_file.png

I copied your template and added this statement, but it still doesn't seem to work:

find_real_file.png

 

Hi there,

The topic of your question is about skip load history. Skip load history, for which the effect will be visible when you toggle the Virtual Agent client. 

That's not what you are showing here. You are just showing the Virtual Agent client Icon. Have a misunderstood your question?

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 Roethof 

Oh yes, I got misunderstood.

What I want is open virtual agent chat bot automatically when after page loading, I have seen your answer through widget editor, I wonder how to implement this through Agent Chat configuration.

 

Thanks a lot.