Reputation: 111
I want to capture the following input from the user and am using these entities:
Slots
I created a node with slots:
The setup is as follows:
Check for:
This all works perfectly and I get the name, email address and Phone number.
The Challenge But I want the user to be able to confirm that the details are correct. So I have an intent called #response_yes which is activated by things like "yes", "yep", etc.
And I have a fourth slot that checks for #response_yes.
If #response_yes is not found, then it displays the values already typed and asks if they are correct and waits for user input.
After the user has responded, then if the #reponse_yes intent is still not found, then:
Respond with, "Let's start again". Also, we need to clear the values already typed:
Here's where it goes wrong When I try the chatbot, the node collects the input correctly and displays the values correctly and asks if they are correct. I type "no", the #response_no intent is correctly divined and I would expect the prompt for the first slot to show again, but it doesn't.
No matter what I type at that point, the assistant bypasses the top three slots and drops to the fourth one again. It's as if I need to clear the entities, not the variables.
What am I doing wrong? How do I make the top slot work again?!
Upvotes: 0
Views: 633
Reputation: 111
Aaaaargh.
For anyone who's interested, I simply didn't reset the values to null.
I guess I assumed that leaving the value blank was the same as null. Not so. Once I did this, the system worked perfectly:
Upvotes: 0