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, Gemini-Vision, CHAT-GPT, DALL-E, and Stability AI, and users can also create their own models to customize the bot's behavior.
Setup this bot:
Gemini
Stability AI + Chat-GPT
Dalle + Custom Model
1. Download Source Code
git clone https://github.com/Zain-ul-din/WhatsApp-Ai-bot.git
cd WhatsApp-Ai-botOR
2. Get API Keys
3. Add API Keys
-
create
.envin the root of the project. -
set following fields in
.envfile
OPENAI_API_KEY=YOUR_OPEN_AI_API_KEY
DREAMSTUDIO_API_KEY=YOUR_STABILITY_AI_API_KEY
GEMINI_API_KEY=YOUR_GEMINI_API_KEY4. Run the code
-
run
setup.shto start the bot. -
Scan QR code.
Default Prefix
!geminiuse gemini.!gemini-visionusegemini-pro-visionmodel for images!chatgptuse chat-gpt.!dalleuse Dalle.!stableuse Stability AI.!botuse custom model.
Note! open src/whatsapp-ai.config.ts to edit config.
This bot utilizes Puppeteer 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.
This repository is maintained by Zain-Ul-Din
Show some ❤️ by starring this awesome repository!



