Extremely slow bots - 10s to send simple short tex...
# 🤝help
s
Why bots are extremely slow because when I press a button, and the next is a text card, it takes about 7-10s to receive simple text placed just right after the Single Choice card. I'm not even talking about a function. Please let me know what I should do to make the bot responsive. Now it's unusable.
p
Is this only the first message onces its been inactive for a while? The first message is always slower when waking up the bot, theres an always alive feature for that. If it's every message then theres something else going on
I've read your message a second time and from what I see you are replying so this is not the first message. Our biggest latency are calls to openAI, does your bot use a lot of AI task, KBs or AI transitions?
s
It's all the time. I thought it was only the studio issue but in production it's even worse. It's just sending a text card - no AI nothing else
I try to keep it efficient as much as possible. No AI, KB. Just short message like "OK, give me a moment" takes about 7-10s
p
This is definetly not normal. But this seems to be an issue with your bot, I've just tested a simple bot in production and I get a response within ~1 sec
s
So, what should I do with it. It's the same you checked last time.
@plain-lifeguard-16679 I just checked other bots and none of them start in a production - no webchat response. Whenever I check them in studio they are also slow. I don't know what is going on. All of this started after the last update. https://cdn.discordapp.com/attachments/1246108471019966675/1246124151727722586/image.png?ex=665b3f0d&is=6659ed8d&hm=6d90de983c6acc67f969a31cb4e766da1c969ad2d4d1af99c1bc8744f2bf4fd7&
p
@freezing-elephant-85019
I copied all the configuration from the integration
And I get error about v1
@plain-lifeguard-16679 , @freezing-elephant-85019 - after reverting back to my previous configuration bot started to work again. Nevertheless, it's much slower than it was before. With v1 configuration bot didn't want to display properly - excluding my CSS file that I configured. Below are lines that I had to revert back to my previous ones - v0 and I had to remove allowedOrigins:
Copy code
<script src="https://cdn.botpress.cloud/webchat/v1/inject.js"></script>
<script>
...
      "hostUrl": "https://cdn.botpress.cloud/webchat/v1",
      "frontendVersion": "v1",
      "allowedOrigins": []
      "stylesheet":"https://webchat-styler-css.botpress.app/prod/code/4d2a339b-94d2-4387-aeac-dbd56b4c5c5a/v69214/style.css"
...
</script>
I use iFrames to show the bot
6 Views