botframeworkdirect-line-botframeworkweb-chat

Welcome/Greeting message delay in webchat MS botframework


I was recently investigating an issue related to a delay in rendering a welcome/greeting message for the first time when webchat is launched. The very first activities network request (before showing the welcome/greeting message) is usually 2-6s long(mostly it's either 2.5s or 5-6s). We are trying to implement this using BotFramework webchat version: 4.10.1 with react (minimizable version).

What I'm trying to accomplish is to load welcome/greeting message faster than the current time and upon checking the performance profile I found that activities network request(directline.botframework.com/v3/directline.../activites) is taking either ~2.5s or ~5.5s and after that, there is some more buffer time in between before the welcome message gets rendered.

I tried to record the performance profile of both cases(2.5s/5-6s)

2.5s https://i.imgur.com/InEyHxl.gif

5s https://i.imgur.com/yl3l6Z8.gif

Trying to find more information on how to improve/fix this behavior and gain more insights on this. I would be really glad if anyone can share your thoughts on this issue. Please let me know if I need to provide more information.


Solution

  • This is probably a bug that should be solved in a more recent version of webchat

    bugreport in github