1 Answer
- Newest
- Most votes
- Most comments
0
Here is the doc I am referencing: https://docs.aws.amazon.com/lexv2/latest/dg/paths-setting-values.html
To set the value of the session attribute named MemberNumber to ABC123:
[MemberNumber] = "ABC123"
answered 10 months ago
Relevant content
- asked 2 years ago
- asked 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
I'm not sure what programming language you are using or this is in a JSON, but if this is in a JSON object and the slot name is MemberNumber, it should be in the following format
Thanks for the info - for clarification I'm working within a new Lex bot and drilling down into one intent and the fulfillment section, under Advanced Options. I'm able to reference the slot in a success message where I can say "I got a member number of {MemberNumber}" which works fine and would play the slot value itself, however right below that in the editor where you can set the slot values or session attributes I'm setting [MyAttribute] = {MemberNumber} and the slot value does not get properly substituted, instead I simply get the literal text value of {MemberNumber} instead of what I entered for the slot itself.
Have you tried using {intent.slot} notion instead of just {slot} ?