How to extract set of words from a sentence?

Hi, so I am making a ChatBot and one of the task it to open google with a search query as per the user input. The user can say: I want to search for cats on google The bot must open a new tab with that google search. The problem is that the user can ask to search for anything on google. So, I created some entity extraction like so:

intent:task_google

As long as the user searches for the above listed, RASA is able to recognize that google query entity has been called. However, let’s say the user said “google Air Canada from Amsterdam to Canada”. RASA does not detect this as an entity. The entity field is empty. So, do I have to add all possible queries as entities or is there a better way to go about this?

1 Like