- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
Contenus pertinents
- demandé il y a 3 mois
- demandé il y a 6 mois
- demandé il y a un an
- demandé il y a 4 jours
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 10 mois
- AWS OFFICIELA mis à jour il y a un an