Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

How to clear the old conversations in the Agent chat Window?

Ramya43
Kilo Contributor

How to clear the old conversations in the Agent chat window?

1 ACCEPTED SOLUTION

Yes so see what I posted. It concerns using:

skip_load_history: true

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

View solution in original post

6 REPLIES 6

Mark Roethof
Tera Patron

Hi there,

Are you using agent chat configuration or an embedded widget?

Anyway: sysparm_skip_load_history=true or skip_load_history: true is the key!

For Agent Chat Configuration, for example:

(function($sp) {

	return {
		live_agent_queue: $sp.getDisplayValue('sp_chat_queue'),
		
		branding_key: 'default_branding',
		skip_load_history: true,
		disable_audio_notifications: true
	};

})($sp);

When the widget embedded to a header or footer, for example:

<widget id="sn-va-sp-widget" options='{"va_url_params":"sysparm_skip_load_history=true&sysparm_disable_audio_notifications=true"}'></widget>

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

Hi Mark,

I am using Agent chat configuration. Please refer the below screen shot

find_real_file.png

Yes so see what I posted. It concerns using:

skip_load_history: true

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

Thank you Mark.