Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raphaelvserafim/chatbot-gpt-whatsapp
É uma solução em PHP que permite criar um chatbot automatizado combinando a integração com o modelo de linguagem ChatGPT da OpenAI e a API do WhatsApp.
https://github.com/raphaelvserafim/chatbot-gpt-whatsapp
chatbot gpt gpt-3 php whatsapp whatsapp-api whatsapp-bot
Last synced: about 2 months ago
JSON representation
É uma solução em PHP que permite criar um chatbot automatizado combinando a integração com o modelo de linguagem ChatGPT da OpenAI e a API do WhatsApp.
- Host: GitHub
- URL: https://github.com/raphaelvserafim/chatbot-gpt-whatsapp
- Owner: raphaelvserafim
- Created: 2023-01-19T01:24:05.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T12:15:16.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T22:43:29.264Z (2 months ago)
- Topics: chatbot, gpt, gpt-3, php, whatsapp, whatsapp-api, whatsapp-bot
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Criando um chatbot automatizado: Classe PHP combina integração com ChatGPT e API do WhatsApp
## CONTATO
## Example of use:
## Installing composer
```
composer require cachesistemas/chatbot-gpt-whatsapp
```
### Connecting with Whatsapp
```php
use Cachesistemas\ClassePhpApiWame\WhatsApp;include_once 'vendor/autoload.php';
$whatsapp = new WhatsApp(["server" => "API server", "key" => "Your Key Instance"]);
echo $whatsapp->getQrCodeHTML();
```
### Updating webhook
```php
$body = ["allowWebhook" => true,
"webhookMessage" => "your-url.com/webhook.php",
"webhookGroup" => "",
"webhookConnection" => "",
"webhookQrCode" => ""];
$whatsapp->updateWebhook($body);
```### your-url.com/webhook.php
```php
use Cachesistemas\ChatbotGptWhatsapp\Bot;
include 'vendor/autoload.php';
new Bot(["wpp_server" => "", "wpp_key" => "", "open_key" => " "]);```