Connecting RASA with Mediawiki search API

Is there a way to make our bot enable to reply with the help of a search engine? For example, if our NLU does not contain intent related to Hollywood, the bot will go for Wikimedia search api and return results from there.

Hello @prince-raj-17 ,

I think there are two ways to do it. But since you mentioned the Wikimedia Search API.

You can get the user latest message using rasa :

tracker.latest_message.text

and querying the Wikimedia search api using the user latest input.

In case you want to do it for non public data then you can work using elastic search and create document store and run a query through that,

1 Like

The rasa-demo chatbot does exactly this using the Algolia search engine. You can see the code here.