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

You are not logged in.

Announcement

#1 2020-09-19 15:11:17

codimcc
Member
Registered: 2020-09-03
Posts: 24

Delay before bot answers

Hi Remdex!

I have a question regarding scripts customization.

My goal is to add typing actions to all bot messages by default, without inserting them into bot flow manually. Actually I have done it by adding custom code there https://github.com/LiveHelperChat/liveh … .php#L1050

1600527692_screenshot_14.jpg

and it works well if delay in the meta_mgs property equals to zero. But I want to have some delay before bot will start typing. In this case, when, for example, delay=2 I see bot's message immediately after user sends something then message dissapearing and displayed typing action, and then message comes back to chat again. Here is my question: could you advice the right place in the code, I suppose it should be somewhere in the react app https://github.com/LiveHelperChat/liveh … ineChat.js , where I can suppress immediate message printing until typing action won't be finished?

Offline

#2 2020-09-19 16:04:16

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

Re: Delay before bot answers

I don't think this kinda hacking I support. So sorry, but I really can't give advance for that point as I just don't know how i would do that smile

In general I don't understand what exactly typing should look like. Does if you build it from bot interface does it works correctly?

Offline

#3 2020-09-25 08:28:16

codimcc
Member
Registered: 2020-09-03
Posts: 24

Re: Delay before bot answers

remdex wrote:

I don't think this kinda hacking I support. So sorry, but I really can't give advance for that point as I just don't know how i would do that smile

In general I don't understand what exactly typing should look like. Does if you build it from bot interface does it works correctly?

Hi Remdex,
in the original setup it is just 'agent is typing...' message, in my custom version it looks like typing typing dots in the chat window before each message will be displayed.
And yes it does just it is too boring insert typing action before each message and makes a setup of the bot flow more complex

Offline

#4 2020-09-25 08:32:17

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

Re: Delay before bot answers

Well perhaps having field to enter time in text message response trigger would be a solution. But that i leave for you to implement big_smile

Offline

Board footer