aws-lex-web-ui icon indicating copy to clipboard operation
aws-lex-web-ui copied to clipboard

How to pass buttons in initial utterence from AWS Lex web UI

Open PranaliYangandul912 opened this issue 2 years ago • 2 comments

We can only pass initial utterence as a text after iframe gets loaded , is there a way to pass button as a initial utterence Thanks

PranaliYangandul912 avatar Aug 26 '22 07:08 PranaliYangandul912

@PranaliYangandul912 I'm not quite sure I understand your question. The lex-web-ui will send a recognizeText or a recognizeUtterance request to the lex bot via lex v2 api. The initial utterance configuration is used to send an initial recognizeText request.

If you want to display one or more buttons to the user in the lex-web-ui on startup, the response to the initial utterance via recognizeText could include a ResponseCard that includes buttons to display.

Can you clarify the user interaction you are looking for?

bobpskier avatar Aug 26 '22 13:08 bobpskier

in config file we have this parameter initialText after iframe loads this initialText getting pushed , so can we push buttons along this initialText from UI initially when iframe loads? we dont want this buttons to be pushed from lambda or lex we want to push this buttons along with initial text from UI With the help of buttons , user can get clarity for what this chatbot is built

PranaliYangandul912 avatar Aug 26 '22 14:08 PranaliYangandul912