I am new to watson conversation and trying to create a chatbot for online shopping. So far every thing worked fine for me apart from payment step.
On the payment when I am trying to enter cvv code for credit card it is redirecting me back to start of that branch.
In the dialog for watson response for that step used following code:
{
"output": {
"text": "Ramdom cvv output to test the step."
},
"context": {
"cvv": "<?input.text?>"
}
}
But the moment I enter any 3 digits (in watson Try it out) it redirects me to start of that branch. I have tried with and but no luck.
I tried with @OneWordChoices:Yes decision as well with following, but no luck.
{
"output": {
"text": "Are You sure to proceed for payment"
},
"context": {
"cvvpinIds": {
"cvvpin 1": "123",
"Cvvpin One": "123",
},
"checkoutStep": "cvvpin",
"selectedcard": "@cvvpin"
}
}
I want to enter 3 digit number for that step and validate input is 3 digit and numeric.
Appreciate any help. Cheers, Abhi