aws-samples / aws-lex-web-ui

Sample Amazon Lex chat bot web interface
Other
744 stars 471 forks source link

Initialtext response cards #732

Open longhornrumble opened 2 months ago

longhornrumble commented 2 months ago

Hey guys,

I think I found this Q&A in the forum at some point, but I can't find it now, so I'll ask.

Can response cards be paired with the InitalText? If so, mind sharing how?

I have an initial utterance set up now that triggers an intent with response cards. I'm able to hide the initial utterance, and the bot performs brilliantly. The only problem doing it this way is it's destroying my analytics. Every time the chat window loads when someone hits the page, that initial utterance counts towards a conversation, which it's not. It's skewing the analytics and making it a real bear to search through the logs for meaningful conversations when the logs are filled with the single intent that popped every time the page loads with visitor traffic.

Not good.

If I can move the response cards to the inital text, the conversation can start when someone is actually engaged after they click on a card.

Thanks!

atjohns commented 2 months ago

This does not work OOB, however its very achievable if you are running your own fork with some modifications to the code.

I can help guide you if you'd like, its never been built into the solution because we just haven't had the demand and it requires duplicating the logic around parsing response cards.

longhornrumble commented 2 months ago

@atjohns That would be very kind of you, Austin. What's the best way for us to contact each other offline and schedule some time?

crazedout commented 1 month ago

I'm also interested in the solution, if it is possible. For now I'm relying on filters in Kibana to "unscew" the data as much as possible.

atjohns commented 1 month ago

I can try to implement it later this week and share the code here, schedule is a big crazy this week so it just depends on my own ability to sit down and try it.