Skip to content

This is a small demonstration of how to create a bot with DialogFlow using APIGratis or MyZap Free or Premium

Notifications You must be signed in to change notification settings

APIBrasil/dialogflow-myzap

Repository files navigation

🤖Simple Bot Google DialogFlow and APIGratis

This is a small demonstration of how to create a bot with DialogFlow using APIGratis or MyZap Free or Premium


💸 Get informations and servers

Get your token with connect in server Whatsapp API and DialogFlow

APIGratis | DialogFlow | 💬 Group WhatsApp

💉 Install dependencies

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

🔌 Using ngrok for Linux (optional)

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

imagem

🔌 Using ngrok for Windows (optional)

cd c:\www\dialogflow-myzap
.\ngrok.exe http 80

🎉 Default address webhook

Your default user address webhook

https://YOUR_HOST_VPN.ngrok.io/webhook

💻 Start new session WhatsApp (QRCode Reader)

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

🔑 Download credentials.json

To downloading your file credentials.json, generate Key in Google Console crendentials

https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts?supportedpurview=project

✨ Contributors:

Thanks to these wonderful people


Jonathan Henrique


Bruno Hashimoto

License

MIT

About

This is a small demonstration of how to create a bot with DialogFlow using APIGratis or MyZap Free or Premium

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published