https://discord.gg/botpress logo
Welcome Message in Webchat Loads Too Slow
# 🤝help
h
I have a welcome message being triggered by a Conversation Started node for my webchat. However, when the webchat is first opened, it takes about 10 seconds minimum for the welcome message to appear before the user starts typing. If the user does type a message and it is sent before the welcome message, the welcome message is sent in response to the user and the user's query is not responded to, creating a bad user experience. Attached is the setup of the webchat flow but I cannot determine why this welcome message, which is just non AI-rewritten text, is so slow. Any ways to speed to up at the moment besides removing the welcome message all together? https://cdn.discordapp.com/attachments/1428770715410235603/1428770715661766788/image.png?ex=68f3b5eb&is=68f2646b&hm=836dea1cdd61342db8bd327d2c3b73ab82b28fdf0a5414f9d9b6599b63259cea&
It should speed up the experience slightly!
Using rawinput card you can write question, waiting input, save input all in one card
h
Unfortunately I get the same speed after combining. I also took the below suggestion of using Raw Input and Wait for User Input but the bot no longer responds and says it finished processing: https://cdn.discordapp.com/attachments/1428770715410235603/1428811521382813880/image.png?ex=68f3dbec&is=68f28a6c&hm=773e9fbf303298040dc7ed603e3db6a7e06f34583ff5d3802d362506aaebb686&
does the above card setup look correct? with this setup it no longer responds with answers
l
How are you configuring your trigger @high-dinner-77515 all details would be great!
h
l
Why are you using the trigger? Do you plan on using any specific webhooks with it or are you just trying to start the conversation
h
Just trying to start the conversation. I added it so that the hello message would appear when the user opens the webchat
l
Yeah just delete the trigger node
the messages should now pop up right away
when I ask a question, the bot sends hello message instead of a response
l
You need to add the welcome message in that same "Hello" Text Card or you can another one above it with that message!
h
I already have the message in the Text card above the wait for user input card. Are you saying create another node before the onConversationStart node?
l
I think there might be some confusion, can you show me an example of your emulator first so we can better understand whats going wrong?
h
After clicking, test your bot, this is the message I get after it sends the automated "Hi" message. It sends my text hello message as expected. However, when I publish my bot and go to the integrated webchat, the bot never sends the hello message. Upon opening the webchat, the hello message should be sent before User Input, not the other way around. https://cdn.discordapp.com/attachments/1428770715410235603/1428831597565710506/image.png?ex=68f3ee9f&is=68f29d1f&hm=efd400ff2371b27a0e5f16566c739fc7343aee6467aa124e783ad745b33bffaa&
l
so just to be clear you want the message to appear before the user says HI correct?
h
Webchat Flow should be: Open Webchat -> bot sends hello/welcome message -> user inputs text
yes that is correct
l
I just tested it on my end, the conversation started trigger was the correct thing to do!
can you show me your webchat after using that trigger again ~ sorry for the confusion @high-dinner-77515
h
@loud-crowd-60573 Thanks for checking! Here is what I have with conversation trigger: the welcome message appears. But the issue is that this message arrives after about 6-7 seconds https://cdn.discordapp.com/attachments/1428770715410235603/1428834927578714254/image.png?ex=68f3f1b9&is=68f2a039&hm=5266d1a7b09dce12086915f543076c26e76cb13917f133b5fd74eecbf35de17c&
By then the user can ask a question but the bot will prioritize sending the welcome message in response and not actually answer the user's question.
w
Using raw input, you don't need to use the text card with a question and the wait for input card.
l
I tired @white-nest-40686 suggestion @high-dinner-77515
w
Try opening a chat in an anonymous session, then close the browser and open a second anonymous chat. Does the message have a delay the second time?
l
always live makes it appear much faster!
h
ok I changed to raw input only, but still slow hello message. Where can I set always live? Is it in bot settings in the studio? https://cdn.discordapp.com/attachments/1428770715410235603/1428837138195284180/image.png?ex=68f3f3c8&is=68f2a248&hm=89b75cef9f48da04add6f7f75578490a604535a89a5c14f51ad21619e56c3375&
w
Exactly, the bot saves energy and resources, and after some time, it goes into sleep mode
On dashboard
w
In the workspace home, you have a box for each bot. In the upper right corner, there is a flash icon. See @loud-crowd-60573 picture https://discord.com/channels/1108396290624213082/1428770715410235603/1428836783914750125
h
Thank you, I put it on for my bot. Tried a new incognito session and the response did take about 6 seconds still. Only faster after clicking refresh button to start a new conversation. Does this Always On only apply after the user has had the first interaction with the bot?
l
It appears faster after the first interactions because of the cache! However enabling always on will make it generally faster then publishing and starting fresh!
h
I see. This does not seem to send the message faster than 6 seconds unfortunately. Not sure if my raw text message is too long? I can shorten it and see. If there is another card suggestion I can use, please let me know. Also does the always on setting affect spend for the bot?
3 Views