Virtual Agent clear previous chat upon finishing the chat

Mark Roethof
Tera Patron
Tera Patron

Hi there,

When a chat is finished, a new chat automatically is started by the Virtual Agent. Both chats separated by dashes. Would it be possible to clear the previous chat upon finishing, so the new chat starts with a blank screen?

I know it is possible to clear the history upon starting a new session with the Virtual Agent (sysparm_skip_load_history=true). Though, this concerns a current session. I did already try a server-side refresh, but "An unrecoverable error" is the result (action.setReturnURL).

Any ideas?

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Opened an enhancement request for this.

Kind regards,
Mark

 

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

8 REPLIES 8

shaikha
Tera Guru

Hi @Mark Roethof 

I am facing the same issue could you please help me on this as client is very specific to clear history once chat is ending.

Is there a way to clear history based on time like once user has closed chat then after 6 hours will be disabling the history.

Please help me i am very need of the solution.

Thanks in advance,

shaikha.

Hi there,

No there's nothing for clearing the history within the current session.

Though reading your question, this is not about the current session? It's just about a new session? If so, like mentioned in the question above: add a URL parm: skip_load_history=true.

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

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Thanks @Mark Roethof ,

Requirement once the user exit the chat and the next time the user logs in anf start the chat then i dont want to show previous days chat to users how can we achieve this ?

skip_load_history: true will disabled all history once user goes to next page current session also lost.

help please.

There's no out-of-the-box configuration or something for this. Though you could think of adding a Business Rule to add a query with created_on=today or something similar.

Give it a try. Or if you've tried and it's not working, just open a new topic on the Community. Maybe I'll spot the question, and else there are a lot of helping Community members also jumping in.

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

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn