How to recognize an intent + entity

Hi guys, i am trying to do my first chat bot but i am having trouble at the time to define the stories. I want to do that my bot recognize an intent with an entity and give a response depending the value of the entity. I tried to do this:

nlu/data

intent:askTopic

storie/data

explainTopic1

  • askTopic{“topic”:“topic 1”} -utter_explainTopic1

explainTopic2

  • askTopic{“topic”:“topic 2”} -utter_explainTopic2

explainTopic3

  • askTopic{“topic”:“topic 3”} -utter_explainTopic3

but, when i ask for a topic, whatever is, the bot always response about the topic 3.

Hi Santiago and welcome to the forum.

Have you defined the slot type as categorical? You will need to use this type because it creates a different feature for each value.

Greg

Hi Greg, thanks for your answer. I defined the slot and now it is work perfect.