Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2020-06-25 15:47:00

Mairlo Luz
Member
Registered: 2020-04-06
Posts: 42

How to End Chat using a bot

Hi,

After I close a chat using a bot trigger, user still has to end chat using the X button.

1593099993_lhc_end_chat_button.png

Is there a way (maybe a javascript command) so I can do it automatically?

Offline

#2 2020-06-25 19:28:18

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: How to End Chat using a bot

Hi,

Yes. Use response type "Update current chat" and there choose action Close chat smile

Offline

#3 2020-06-25 19:36:52

Mairlo Luz
Member
Registered: 2020-04-06
Posts: 42

Re: How to End Chat using a bot

Unfortunately I already used. Then it shows the message I posted above.
I have to click on the gear and then on the X so it really closes the chat.

Offline

#4 2020-06-25 19:40:52

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: How to End Chat using a bot

This command itself closes chat session so visitor can't write anymore to the chat. But in order to close widget itself it's another thing to add smile. But in general I don't think it would be good idea as you want still allow for them to print a chat as example smile

Offline

#5 2020-06-25 19:46:44

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: How to End Chat using a bot

Also you can translate english text on transifex so I merge them to official version smile

Offline

#6 2020-06-25 21:00:50

edersonbologna
Member
Registered: 2020-04-04
Posts: 33

Re: How to End Chat using a bot

I have that need too. It would be great to be able to end the session. If the user wants to print, they can do so before ending the session. Is there a way to end the session?

Offline

#7 2020-06-26 04:16:42

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: How to End Chat using a bot

Right.

I added it to my todo list smile

Offline

#8 2020-06-26 05:09:39

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: How to End Chat using a bot

Here is your changes.
https://github.com/LiveHelperChat/liveh … b83b98b446

Make sure you update LHC. There will be new checkbox within close chat action to choose.

Offline

#9 2020-06-26 18:12:12

Mairlo Luz
Member
Registered: 2020-04-06
Posts: 42

Re: How to End Chat using a bot

Thank you Remdex. It´s perfect!  wink

Offline

Board footer