The WhatsApp AI Bot is a chatbot that uses AI models APIs to generate responses to user input. The bot supports several AI models, including Gemini
, ChatGPT
, DALL-E
, Flux
, and Stability AI
.
| Model | Provider | Type | Command | | —– | ——– | —- | ——- | | ChatGPT | OpenAI | Text to Text | !chatgpt | | Gemini | Google | Text to Text | !gemini | | Gemini Vision | Google | Image to Text | none | | Dalle 2 & 3 | OpenAI | Text to Image | !dalle | | Flux | Hugging Face | Text to Image | !flux | | Stability AI | Stability AI | Text to Image | !stability | | Custom | Base Provider | Text to Text | !wa |
git clone https://github.com/Zain-ul-din/WhatsApp-Ai-bot.git
cd WhatsApp-Ai-bot
OR
Copy the file .env.example
and rename it to .env
, then set any settings you want to change.
Run npm run start
to run the bot.
Scan QR code.
!gemini
use gemini.!chatgpt
use chat-gpt.!dalle
use Dalle.!flux
use flux.!stability
use stability.Note! open src/whatsapp-ai.config.ts
to edit config.
This bot utilizes baileys to operate an actual instance of Whatsapp Web to prevent blocking. However, it is essential to note that these operations come at a cost charged by OpenAI and Stability AI for every request made. Please be aware that WhatsApp does not support bots or unofficial clients on its platform, so using this method is not entirely secure and could lead to getting blocked.
###
A big thank you to these people for supporting this project.
Levitco | Anas Ashfaq | YOU? |
♥ Sponsor | 💎 Bounty | 🚀 Deployment | ✉ WhatsApp Group |
---|---|---|---|
Link | Link | Link | Link |
Show some ❤️ by starring this awesome repository!