Set session attributes for previous question and answer#853
Set session attributes for previous question and answer#853atjohns merged 1 commit intoaws-samples:developmentfrom
Conversation
…s Lex session attributes
|
Hi @atjohns - wondering if you've had a chance to review this PR. I've made this change to 0.23.0 source and compiled and tested with plain text/markdown/card responses from Lex and haven't been able to identify any functional issues. I've found a lot of value in this specifically around usage with QnABot for Lambda hooks and parsing responses based on the previous user question and/or answer, as well as with OpenSearch Dashboard reporting that comes with QnABot. I've also found value in it when adding client side logic that interacts with Lex-Web-UI via the iFrame API. |
|
Hey @sneff91 yes I am pulling this in now for release in the next version. I just did not have the bandwidth to properly test before the last release. Thanks again for contributing! |
Issue #, if available:
Description of changes:
Modified postTextMessage action to assign previous question and answer as Lex session attributes so that they can be easily referenced by the parent page via iFrame loader event based API (onUpdateLexState) as well as on the destination side. QnABot deployments can then reference these attributes on utterances like "thumbs up"/"thumbs down" to like feedback ratings to the appropriate question-answer pair.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.