I tried to create a basic bot using Rasa. With the help of Rasa Community members I was able to do it. But Bot is throwing error only when it executes Action file for the 1st time. But all subsequent conversations work fine.
- Usual Greet
- User Enters Crop and Disease
- Bot pulls the remedy from sqlite (thru action) and utter it as message
- If user enters only disease name, then Bot asks for crop and then pulls the info
- If user enters only crop name, then Bot asks for disease and then pulls the info
What happens is, I get an error when the Bot executes action file for the first time.
From the action log, it looks like it is trying to pull the data from sqlite even though it got only disease name from user (crop is still None). But as per Actions file coding, that is not supposed to happen.
The part where sqlite is queried should occur only when both crop and disease is not None. This logic is working fine in subsequent instances. But getting error when I start the conversation for first time. Please advise.