Huge delay on first message
# 🤝help
a
Hello, I noticed that there is huge delay on the first message, good 15 sec. Which is pretty long I would say and its not even showing that its doing something. Am I doing something wrong?
n
I'm experiencing the same issue
e
Hey @adamant-morning-73102 and @narrow-elephant-97500, is it only in the start node, and in the emulator, or in production too?
a
Hi, sadly both. I would say that production is slightly worse
e
That should not be happening!
Which channel are you guys using? @narrow-elephant-97500 and @adamant-morning-73102
a
Hi, sorry, what do you mean by channel?
b
Bumping this
r
I think channel just means website, FB Messenger, Telegram, WhatsApp....
a
Oh I was trying that in the dev env and on the production when i deployed it on a website
c
Correct!
e
Hey @brief-ice-39505, @adamant-morning-73102, @rich-oxygen-43707. Can you please provide me with some info of when this is happening? It happens on dev or production? In which integration (whatsapp, telegram, etc) In which nodes - only the first or is it slow for other ones too
a
Hi, Both I tried only Web integration, for now The first one, the first message/response is the slowest
b
Hi there, currently on first message via embedded webchat the response can take up to 10s to reply, is it worth sending a screengrab of console of the request?
cc @early-train-33247 @crooked-van-25152
1. production webchat 3. for the first node only
r
I haven't experienced the issue. I'm only in the thread because I answered a question about channels.
n
@adamant-morning-73102 website embedded
s
@early-train-33247 Unfortunately, I experienced the same issue at the beginning with a similar delay in bot responses in the webchat integration, but it was slightly faster in simulation.
e
Oh okay! Thank you
Okay so this delay is happening for the first message in the production Webchat. @plain-lifeguard-16679, got any clues? I will create an issue for this
p
Add an issue for this, we are aware that the first message takes a bit longer for a reply but 10-15 seconds seems longer than usual. We can look into this, ill tag @colossal-egg-20510 for visibility on this thread
c
This should be happening only on the first message after publishing your bot. Also, this is global to your bot, it's not for every user of your bot. Once published the bot needs to initialise to send his messages so it takes a little bit of time. Also, if the bot didn't receive a message for a few minutes it goes to sleep mode and needs to be initialized once again. All of those limitations are known and we can address them with a little bit of effort.
e
Alright Mike, thanks for the info! Will add a issue for this!
254 Views