I’m quite new to RASA and I am trying to build a chatbot on a sales domain. One functionality of the chatbot is supposed to accept a timeframe value (weekly/monthly/quarterly) and return the corresponding revenue figures
Currently, I am doing it by creating separate actions and stories for each of the timeframe values. However, there are a lot of combinations of stories, and somewhere I feel that managing these many stories would be difficult
Currently, I do not have any entities in my code. While I’m sure that I can make a timeframe as an entity and assign multiple values to it. But what I’m not sure is how do I cater to all the entities in one story itself?
Any help in the form of resources to follow or code snipped would be much appreciated
If your bot is in English, you can use duckling to extract dates or timeframes. There’s a general post on entity extraction here.
Also, the financial-demo bot is an example extracting time using duckling. Duckling also supports duration in addition to time. You can then pass this to a custom action to do the query so you don’t need a lot of stories.