Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/botcahx/whatsapp-gpt
WhatsApp chatbot AI
https://github.com/botcahx/whatsapp-gpt
chatgpt3 dalle puppeteer text2img whatsapp-bot whatsapp-web-js
Last synced: 2 months ago
JSON representation
WhatsApp chatbot AI
- Host: GitHub
- URL: https://github.com/botcahx/whatsapp-gpt
- Owner: BOTCAHX
- Created: 2023-10-10T11:46:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-19T21:25:32.000Z (about 1 year ago)
- Last Synced: 2024-04-20T19:32:30.651Z (8 months ago)
- Topics: chatgpt3, dalle, puppeteer, text2img, whatsapp-bot, whatsapp-web-js
- Language: JavaScript
- Homepage: https://aemt.me/playground
- Size: 75.2 KB
- Stars: 9
- Watchers: 1
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WhatsApp GPT Bot
WhatsApp GPT Bot is a chatbot script designed for use on the WhatsApp platform. It is built using Node.js and whatsapp-web.js library.
# Menu
```
┌ *MENU*
│ ◦ ai
│ ◦ gptgo
│ ◦ gpt4
│ ◦ c-ai
│ ◦ dalle
│ ◦ bard
│ ◦ bardimg
│ ◦ bing
│ ◦ bimg
│ ◦ text2img
│ ◦ sticker
│ ◦ remini
│ ◦ toanime
│ ◦ togta
│ ◦ tozombie
│ ◦ stablediffusion
│ ◦ removebg
│ ◦ tourl
│ ◦ info
│ ◦ groups
│ ◦ menu
│ ◦ snapshot
└
```
## Prerequisites
Before you start, ensure that you have the following installed on your system:
- Node.js
- Puppeteer
- Chrome
- Npm (Node Package Manager)### Install Chrome
```sh
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
```
```sh
sudo apt install ./google-chrome-stable_current_amd64.deb
```
### Update Chrome
```sh
cat /etc/apt/sources.list.d/google-chrome.list
```## Installation
1. Clone or download the repository from [here](https://github.com/BOTCAHX/whatsapp-gpt).
```sh
git clone https://github.com/BOTCAHX/whatsapp-gpt
```
2. Open your terminal and navigate to the project directory.
3. Run the following command to install the required dependencies:
```sh
npm install
```## Usage
To start the WhatsApp GPT Bot, run the following command in your terminal:
```
node bot.js
```## How it Works
WhatsApp GPT Bot utilizes the WhatsApp Web API to connect to a WhatsApp account. It sends and receives messages using the WhatsApp account, allowing it to provide chatbot functionalities.When a new message is received, the bot uses the message content as an input to the GPT-3 model. The generated response from the model is then sent back as a reply to the sender.
## Contributing
Contributions are welcome! If you find any bugs or want to enhance the features of the bot, feel free to submit a pull request or open an issue.## License
This project is licensed under the [MIT License](https://github.com/BOTCAHX/whatsapp-gpt).