This is a simple Node.js application that allows users to interact with ChatGPT using WhatsApp. The user should be able to create a WhatsApp group and configure the Zap-Hub inside the group.
- Create a WhatsApp group
- Name the group with the following prefix:
[GPT]
- Follow the instructions in the group to configure the Zap-Hub
!help
- Show the available commands!register
- Set the OpenAI API key (the message with the key will be deleted after setted)!unregister
- Remove the OpenAI API key!gpt
- Send a message to the GPT-4 API, you can add a image to the message<audio>
- Send audios from the configured WhatsApp Group to the GPT-4 API (will send all received/created audios)
- The Zap-Hub will only work in the group that was configured
- The Zap-Hub configuration is stored in the group description (the description will be encoded)
- You should NOT edit manually the Zap-Hub group description
- The Zap-Hub will use YOUR WhatsApp acount to receive and send messages, so have in mind that the Zap-Hub will always answer as YOU (it will use your profile)
- Bun 1.0.16
- Clone this repository
- Install the dependencies:
bun install
- Run the application:
bun run src/index.ts
- Login with your WhatsApp account using the QR Code All the credentials are stored locally