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

Enable Intent Trigger every start of a session

Open dangollayan opened this issue 2 months ago • 4 comments

As of now we have these two: WebAppConfBotInitialText: Initial text sent by the bot every session started WebAppConfBotInitialUtterance: Initial utterance sent to the bot every session started (forces an intent to trigger)

Currently, the WebAppConfBotInitialText parameter is utilized to send an initial message from the bot at the start of each session. However, there's a need for this initial text to trigger an intent without requiring a separate initial utterance to be sent by the user.

Use Case: Our use case requires prompting the user for their name at the beginning of each session. By setting the initial text as an intent, we can ensure that this prompt consistently appears at the start of every conversation, without relying on a user-sent initial utterance.

Is there a way to do this?

dangollayan avatar Apr 25 '24 05:04 dangollayan

Sorry please help me understand why the same value cannot be used for both parameters to accomplish this?

atjohns avatar Apr 25 '24 12:04 atjohns

Hi @atjohns, sorry for the late reply, our purpose is we want to force an utterance every start of conversation without forcing a prompt from the user side

dangollayan avatar Apr 29 '24 06:04 dangollayan

No problem, I don't understand how WebAppConfBotInitialUtterance isn't fails to accomplish this for you then. What is it not doing that you need done?

atjohns avatar Apr 29 '24 11:04 atjohns

@dangollayan Yes, it is. And you want to hide the first message as it functions as an initialUtterance by a human disguised as an initialText by a bot.

https://github.com/aws-samples/aws-lex-web-ui/issues/197

israelias avatar May 09 '24 12:05 israelias