Comments (8)
Hi @preethy-1
This does not give us enough information to help. Can you please use the bug template to submit your issue - see https://github.com/aws-solutions/qnabot-on-aws/blob/main/.github/ISSUE_TEMPLATE/bug_report.md or use the new issue button in the github webpage
from qnabot-on-aws.
Updated the bug.
from qnabot-on-aws.
@preethy-1 I'm attaching an export from a qnabot with three questions that demonstrate chaining to a QID that has a response card with image that works properly. Key notes are that the response card must have a title to work properly. Hope this example helps. Could you export your questions that have the chaining problem and I can take a quick look at them?
test_chain_to_response_card_qna.json
from qnabot-on-aws.
@bobpskier Thanks for your response. I am attaching the export that is what I am looking for.
test_chain_to_response_card_qna.json
from qnabot-on-aws.
@preethy-1 The attached qna.json works correctly with chaining based on your sample. I added a second qid with the utterance "AnythingElse" that the "test response card" will chain to and added markdown to it's answer to facilitate output. The markdown was required in "AnythingElse" as the question performing the chaining also contained markdown with a hyperlink. To support markdown throughout the response chain, each qid must have markdown defined as an alternate answer. Otherwise just the plain text output will be used.
Also you should be using the full standalone version of aws-samples lex-web-ui as the internal version embedded in QnABot is not processing the response correctly. Not sure why but the embedded version always lags behind. To pickup the up-to-date version make sure to install and use https://github.com/aws-samples/aws-lex-web-ui and point this at your qnabot Lex bot. For production, the embedded test client should not be used.
I automate deployment using terraform to install both a QnABot and a LexWebUi together as a pair each time I need a new QnABot. One could also use CDK to wrap the installation of both. Destruction then of all the resources is simply a terraform destroy. Makes my life so much simpler.
Anyway the output using your qna.json will look like:
![image](https://private-user-images.githubusercontent.com/11319101/332481905-00b94ef3-51fd-46ac-b183-215e0a6a3a5c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDU2NjAsIm5iZiI6MTcyMzI0NTM2MCwicGF0aCI6Ii8xMTMxOTEwMS8zMzI0ODE5MDUtMDBiOTRlZjMtNTFmZC00NmFjLWIxODMtMjE1ZTBhNmEzYTVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDIzMTYwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBjNzBmZDFmZDNkZjE3MjEzNzM3MDlmMTFiOWEzZTZlYmMxYWJkZDk3ZTQ4YjdlZmQ1MmFhN2I1MGVkY2ViMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fDphI0aMqGxrviUwZMQLxj_JUb4CEftsKw4xS7YTPFo)
test_response_card_working_qna.json
from qnabot-on-aws.
@bobpskier Thanks for your detailed response. But in my case, "AnythingElse" intent in chaining rule has buttons. I've attached the screenshots above.
from qnabot-on-aws.
@preethy-1 Attached is a qna json file with a response card in AnythingElse that has an image and buttons. It works correctly for me. See screenshot below. Note that only one response card will be used. If the qid which chains to AnythingElse has a response card, it will be replaced with the response card from AnythingElse once chaining completes. Multiple response cards are not merged together. In the case where the AnythingElse does not have a response card, the original response card from the first qid will be used.
![image](https://private-user-images.githubusercontent.com/11319101/333205664-9458735f-8b24-4674-a43f-7b727d3e8977.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDU2NjAsIm5iZiI6MTcyMzI0NTM2MCwicGF0aCI6Ii8xMTMxOTEwMS8zMzMyMDU2NjQtOTQ1ODczNWYtOGIyNC00Njc0LWE0M2YtN2I3MjdkM2U4OTc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDIzMTYwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiMzc0MGJkYzgyMTFjMDkyMmJjNWM1NWJhNThkYTg0ODg3ODkxYWNlMDMwNzA4YzlkYjM4ZDBiYjE0ZWY2N2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ByuYeke2KzniBDjW-LKElHNPOwcqe134TGS-Jv0FHb4)
test_response_card_working_with_image_and_buttons.qna.json
from qnabot-on-aws.
@preethy-1
This is the expected behavior - see https://code.amazon.com/packages/Aws-ai-qna-bot/blobs/mainline/--/source/lambda/es-proxy-layer/lib/fulfillment-event/mergeNext.js
When chaining, qna skips the response card and buttons of the first answer.
from qnabot-on-aws.
Related Issues (20)
- Lambda layer changes not reflecting HOT 4
- Amazon Polly voice name for Austrian German is incorrect HOT 4
- Score matching HOT 2
- Answer data that contains only double-byte full-width characters cannot be imported. HOT 2
- Shell and other commands not working in Ubuntu linux HOT 3
- Issue: QnABot logs Never Expire. Request: Add configurable log retention period for all CloudWatch log groups used by QnABot HOT 2
- 6.0.0 has updated PassRole resource constraint definition that breaks upgrades or new installs if stack name is greater than 26 characrters HOT 5
- Kendra Web Cwaler is executed, but the KendraCrawlerSNSTopic that launches the ClowlerLambda is not triggered HOT 2
- ELICIT_RESPONSE_DEFAULT_MSG can't be changed HOT 3
- Add support for Titan Models for Bedrock Knowledge Bases HOT 1
- Logout functionality not working correctly in qnabot-on-aws solution HOT 2
- Custom resource deployment fails in v6.0.0 HOT 8
- Dropdown menu with details and summary element in response HOT 1
- Is this QNA solution supported in Gov cloud and Can we use claude model HOT 1
- QnA Bot not logging every interaction in Kibana HOT 3
- Which S3 bucket is used for storing data in QnABot Content Designer? HOT 2
- Gov cloud availability HOT 2
- Clarification on Data Flow and LLM Roles in CloudFormation Architecture
- Large Dataset not Rendering in Designer UI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qnabot-on-aws.