my question here is I was trying out OTP verification using FormAction, But here I am facing an issue that both the entity of number and OTP is in Numerical format, just the difference is in the length (Number - 10 and OTP - 4 ) but every time I enter OTP it goes to the NUMBER intent and not the OTP intent, is there any solution for this.
In DIalogflow we can achieve this by Followup Intents or even using Context, how do we do that in Rasa? Does RASA have something like Followup Intents?
In addition, you can also “help” Rasa to extract the OTP as an “otp” entity instead of “number” entity. If you know that the OTP will always have 10 digits, you can add a Regex for it to your training data.
## regex:OTP
- [0-9]{10}
With that regex and some examples where the OTP is marked as “otp” entity in your nlu training data for intent:inform, Rasa should learn to pick 10-digit numbers up as “otp” rather than “number”.
Imagine I have a form where both values are numerical for the first entity (phone_number) the length of the numerical value is 10 and for the second entity (OTP) the numerical value is 4 digit value.