Reputation: 19
Food Order bot I have a branching dialog if a user asks for cheese on their burger, the bot will ask what type of cheese, but then return to the first question in the bot and continue to repeat the process.
https://i.sstatic.net/tJYyi.jpg
Upvotes: 1
Views: 1816
Reputation: 1
Turns out as complexity increases AMAZON.AlphaNumeric doesn't work well. I used AMAZON.Movie instead also custom regex slots types would work.
Upvotes: 0
Reputation: 2026
In the ElicitSlot
dialogAction
response from the Lambda function, you are currently only returning the "CheeseSlot" value. If you do not return the values for the other slots, Lex treats them as null
and as you noticed, it is expected for the entire flow to start again since the slots are marked as "Required".
So, in the response from the Lambda function, return all slots that have been filled while resetting the "CheeseSlot" value.
Upvotes: 3