- 最新
- 最多得票
- 最多評論
I got it working by using sessionAttributes.
For those who are having my same problem
This only works if you can control the sessionAttributes (using a lambda)
Simply encode the responseCard data and store it as a key/value pair in sessionAttributes (You can only store a string/string pair inside of the attributes, so encoding it as a JSON string works). You will need to decode this on the client side and then display it yourself.
Note: If you want the responseCard buttons to work and reply with audioOutput you need to use postContent() with the contentType set to "text/plain; charset=utf-8"
https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html#API_runtime_PostContent_RequestSyntax
https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-session-attribs
相關內容
- 已提問 1 年前
- 已提問 7 個月前
- AWS 官方已更新 10 個月前
- AWS 官方已更新 2 年前