Bot responding with same answer for the questions having a slight differences

Hii,

I created a bot using rasa 1.0 version, and it is working well but while giving questions with slight differences it is responding with the same answer like if I trained the bot for costs in all months and if I ask “cost in january” or “cost in march” or “cost in april” it is responding with the same answer to all these questions. How can I fix this??

thanks in advance!

Hi @Mounika1, thanks for your question! That depends on how you’ve setup your training data, are you using entities?

yeah, I am using one entity in those questions.

Ok so what do your stories/custom actions look like?

story is like this:

app jan peoples cost

  • app jan peoples cost{“app”: “APM”}
    • action_january_peoples_cost

custom action is like this:

class Actionjanuarypeoplescost(Action):
def name(self):
	return 'action_january_peoples_cost'

def run(self, dispatcher, tracker, domain):
	app = tracker.get_slot('app')
	response = "1000 is the peoples cost."
	dispatcher.utter_message(response)
	return [AllSlotsReset()]

you can use followup action, that’ll help the bot give correct responses.