Search code examples
pythonchatbotfacebook-messenger-botfacebook-chatbotrasa-core

How to connect RasaCore Chatbot to Messenger?


I am trying to connect RasaCore Chatbot to Facebook Messenger.

How can I do it via run script if I do not have the URL (the callback URL to setup webhook)?

I cannot do it either using python and I don't know why.

Is this the only instruction? I cannot find any other: https://core.rasa.com/connectors.html#using-run-script

Thank you in advance!


Solution

  • OK! I have it!

    1. If you are using ngrok, you need to add '/webhook' to the address that ngrok created.
    2. If you are using first tutorial from Rasa ( https://core.rasa.com/tutorial_basics.html ), there are mistakes in directories (not models/dialogue but models/current*/dialogue , *its default name used in this tutorial, but this is the name of your folder and models/nlu/current should be models/current/nlu ) you have to check it.
    3. The 'App Secret Code' from FB you can find in Basic Settings (Tab: Settings) of your App.
    4. Code in the tutorial is much better than 'bigger' code cloned from respiratory suggested on the beginning of this tutorial :)