Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/apibrasil/dialogflow-myzap

This is a small demonstration of how to create a bot with DialogFlow using APIGratis or MyZap Free or Premium
https://github.com/apibrasil/dialogflow-myzap

apigratis dialogflow google guzzle myzap php

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# πŸ€–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_





[](https://documenter.getpostman.com/view/11074732/UzBpJkM9/)
[](https://chat.whatsapp.com/EkbDMTX9Y1Y30NZlYGZBar)


### πŸ’Έ Get informations and servers
_Get your token with connect in server Whatsapp API and DialogFlow_

[APIGratis](https://apigratis.com.br) | [DialogFlow](https://dialogflow.cloud.google.com) | [πŸ’¬ Group WhatsApp](https://chat.whatsapp.com/EkbDMTX9Y1Y30NZlYGZBar)

### πŸ’‰ Install dependencies
_Up container Docker to run WebHook_

```bash
apt update && apt install docker-compose && cd /opt/
```

```bash
git clone https://github.com/APIBrasil/dialogflow-myzap.git dialogflow-myzap
```

```bash
cd /opt/dialogflow-myzap
```

```bash
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_

```sh
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
```sh
cd /opt/dialogflow-myzap
ngrok http 80
```

![imagem](https://i.imgur.com/0Mwl1tv.png)

### πŸ”Œ Using ngrok for Windows (optional)

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

### πŸŽ‰ Default address webhook
_Your default user address webhook_

```sh
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