Python-Flask project to connect ManyChat with Dialogflow. This project uses Dialogflow Web Demo integration to handle a simple authentication and avoid complicated setup with Google Cloud credentials.
If you will not handle too much traffic, you can host this project for free in https://repl.it/
Just fork the project inside Repl.it, hit RUN and copy your server URL.
- In your ManyChat account, go to My Profile - Applications and Create New Application.
- Enter the Name and Description of your App.
- Copy the content from manychat_json_app.json and paste it in the JSON field.
- Go to the API Access tab and select the following permissions:
- View contact data
- Manage contact data
- Send messages
- Save your App and go back to Applications list.
- Click in the right menu of your App and hit Install.
- Select the page you want to install your App and install it.
- Go to App Settings after successfully install your App.
- Enter the server URL of where you have this Python project deployed.
- Find the text right before the SAVE button and click in "Copy my app key".
- Paste your ManyChat API Key in the corresponding field.
- Go to your Dialogflow Agent - Settings and copy the Project ID, then paste it in your ManyChat App Settings.
- Go back to Dialogflow - Integrations and enable the Web Demo integration.
- Click in the pencil icon and copy the Agent ID, it should be something like this: 35g03j8r-cb33-21fa-89yh-90705s43f581
- Go to ManyChat App settings and paste the Dialogflow Agent ID.
- Save your App settings.
Now all you need to do is add your Dialogflow Connector App to your Default Reply or any other flow inside ManyChat.
Thanks to Joren Wouters now we have a video explaining how to deploy and use this repo:
https://www.youtube.com/watch?v=7HSfIxgcii8
If you use sys.date-period you can add startDate and endDate to your ManyChat user fields.
This project is created and maintained by:
Daian Gan
Github: daiangan
E-mail: [email protected]
Website: https://daiangan.com