Including two choices in the entity in bot composer #9603
Unanswered
Sushmitasen32
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm creating a weather bot where bot questions the user to enter the postal code. I've specified the condition for the length of the postal code to be either 5 digit or 6 digit and my bot is running successfully. But now I want the bot to fetch the weather details directly if user says, "How's the weather in 400614". For this , I'm using LUIS recognizer- As per the LUIS documentation ,this is the syntax for providing the entity-$ postalcode:/[0-9]{5} but I want to specify or condition to include 6 digit as well and not just 5 digit.
Can somebody guide me to specify the or condition i.e, if user enters the 5 digit or 6 digit zip code,bot should use this entity.
I've used this condition as shown in the image but this doesn't give me the output.
Beta Was this translation helpful? Give feedback.
All reactions