This is a small demonstration of how to create a bot with DialogFlow using APIGratis or MyZap Free or Premium
Get your token with connect in server Whatsapp API and DialogFlow
APIGratis | DialogFlow | 💬 Group WhatsApp
Up container Docker to run WebHook
apt update && apt install docker-compose && cd /opt/
git clone https://github.com/APIBrasil/dialogflow-myzap.git dialogflow-myzap
cd /opt/dialogflow-myzap
docker-compose build --no-cache
docker-compose up -d
If you want to run the webhook with ssl or on an external network
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
To Run
cd /opt/dialogflow-myzap
ngrok http 80
cd c:\www\dialogflow-myzap
.\ngrok.exe http 80
Your default user address webhook
https://YOUR_HOST_VPN.ngrok.io/webhook
The session name and session key must be the same, and the api token must be obtained from the website
https://homologacao.wppserver.com/start
Input | Value |
---|---|
Session name | session_demo |
Session key | session_demo |
Webhook Messages | https://YOUR_HOST_VPN.ngrok.io/webhook |
To downloading your file credentials.json, generate Key in Google Console crendentials
https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts?supportedpurview=project
Thanks to these wonderful people
Jonathan Henrique |
Bruno Hashimoto |
MIT