How to get one word answers into entities

I am using 0.13.1 and i want to implement this:-

user: create a new folder

bot: what should be the name of the folder?

user: let the name be Applications

bot: done

and

user: create a new folder

bot: what should be the name of the folder?

user: Applications

bot: done

and

user: create a new folder name Applications

bot: done

I have made a formAction for this. But the problem is, for single word answers it is guessing wrong intent like greet or goodbye. How to force nlu to look for specific intent if the entity is not captured in first intent. Even after forcing, how to train nlu for capturing entities from those single word answers.

intent:mkdir

intent:new_folder_mkdir

regex:new_folder

  • [a-zA-Z]+

Hey @tanmaysinghal98. The best approach for one word entity extraction is to use Lookup tables. Did you have a chance to look into them yet?

If your entities will come from a fixed set of values, then use lookup tables, as Juste has recommended. If your entities can have totally random values and they will overlap with other entities, then use the approach described here.