I am trying to create a bot regarding weather. I have called weather API and going well. But I have doubts about how can we validate the “location” entity.
Example:
Bot: which location do you want to check for?
You: Mumbai
Bot: Haze in Mumbai and temperature is 27 degrees Celcius and Humidity 89%
And if give “12345” it should render “please enter the correct location”.
Bot: which location do you want to check for?
You: 123456
Bot: please enter the correct location