Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Lex Web UI mounting delay #794

Open
DiljithNair opened this issue Dec 12, 2024 · 2 comments
Open

AWS Lex Web UI mounting delay #794

DiljithNair opened this issue Dec 12, 2024 · 2 comments
Assignees
Labels

Comments

@DiljithNair
Copy link

During the development of our QnABot, we observed that the Lex Web UI requires a variable amount of time to initialize, ranging from a minimum of approximately 4 seconds to a maximum of 10 seconds, before it begins posting the initial message. This latency results in a noticeable delay before users are presented with functional content on the screen, which has led to concerns regarding the user experience.

Upon thorough examination of the QnA Bot's codebase, we have identified that the mounting process is preceded by a Promise.all call, as detailed below.

image

  1. To get Bot metadata from "api-stage".
  2. To Authenticate using "cognito-idp".

Are there opportunities for streamlining these steps, or could we implement any configuration modifications to enhance the speed of the same?

@fhoueto-amz
Copy link
Member

fhoueto-amz commented Dec 17, 2024

Hi @DiljithNair
Is this issue related to the embedded Lex_Web_UI in QnaBot (accessible from the content designer)?
image.
We did not see that delay.
Can you confirm the version of QnABot you are using and the steps to reproduce if different than the attached screenshot?
Also the embedded Lex_Web_UI is mainly for testing. Our recommendation is to use the https://github.com/aws-samples/aws-lex-web-ui for your customers either as standalone or embedded into your web page.

@DiljithNair
Copy link
Author

We are using the same as recommended.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants