Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/apibrasil/dialogflow-myzap
- Owner: APIBrasil
- Created: 2022-06-22T01:04:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-23T05:25:26.000Z (over 2 years ago)
- Last Synced: 2024-05-21T07:26:29.519Z (7 months ago)
- Topics: apigratis, dialogflow, google, guzzle, myzap, php
- Language: PHP
- Homepage: https://apigratis.com.br
- Size: 6.77 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Funding: .github/FUNDING.yml
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