Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Zain-ul-din/whatsapp-ai-bot
This is a WhatsApp AI bot that uses various AI models, including Gemini, GPT, DALL-E, and StabilityAI, to generate responses to user input.
https://github.com/Zain-ul-din/whatsapp-ai-bot
bot chat chatbot chatgpt chatgpt-4 chatgpt-api chatgpt-bot collaborate dalle dreamstudio gemini open-source puppeteer stability-ai stable-diffusion whatsapp whatsapp-api whatsapp-bot whatsapp-web whatsapp-web-js
Last synced: about 1 month ago
JSON representation
This is a WhatsApp AI bot that uses various AI models, including Gemini, GPT, DALL-E, and StabilityAI, to generate responses to user input.
- Host: GitHub
- URL: https://github.com/Zain-ul-din/whatsapp-ai-bot
- Owner: Zain-ul-din
- License: mit
- Created: 2023-02-28T21:07:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-06T02:27:16.000Z (2 months ago)
- Last Synced: 2024-07-06T04:47:41.360Z (2 months ago)
- Topics: bot, chat, chatbot, chatgpt, chatgpt-4, chatgpt-api, chatgpt-bot, collaborate, dalle, dreamstudio, gemini, open-source, puppeteer, stability-ai, stable-diffusion, whatsapp, whatsapp-api, whatsapp-bot, whatsapp-web, whatsapp-web-js
- Language: TypeScript
- Homepage: https://wa-ai-seven.vercel.app/
- Size: 33.8 MB
- Stars: 158
- Watchers: 5
- Forks: 87
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
WhatsApp AI Bot 🚀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.
♥ Sponsor
💎 Bounty
🚀 Deployment
link
link
link
# Table of Content
- [Demo.](#demo)
- [Usage.](#usage)
- [Tutorials.](#Tutorials)
- [Docs.](https://github.com/Zain-ul-din/WhatsApp-Ai-bot/blob/master/docs/config-docs.md)
- [Disclaimer.](#disclaimer)
- [Contributors.](#contributors)
- [Sponsors.](#Sponsors)
- [About.](#about-us)# Demo
**Gemini**
[![Screenshot (1186)](https://github.com/Zain-ul-din/whatsapp-ai-bot/assets/78583049/b6f256de-c792-4947-bf65-401a60a0b1f4)](https://www.youtube.com/watch?v=dXDxTQQqeq8)
**Stability AI + Chat-GPT**
![image](https://user-images.githubusercontent.com/78583049/222071673-ef0f2021-a8b4-4263-9304-a77ecd76c0a1.png)
**Dalle + Custom Model**
![image](https://user-images.githubusercontent.com/78583049/222074174-55792d13-5137-4c1c-b708-3ad188ca8d8d.png)
# Usage
**1. Download Source Code**
```bash
git clone https://github.com/Zain-ul-din/WhatsApp-Ai-bot.git
cd WhatsApp-Ai-bot
```> OR
- [Download Zip File](https://github.com/Zain-ul-din/WhatsApp-Ai-bot/archive/refs/heads/master.zip)
**2. Get API Keys**
- [Gemini API Key](https://makersuite.google.com/app/apikey)
- [OpenAI API Key](https://platform.openai.com/account/api-keys)
- [StabilityAI API Key](https://platform.stability.ai/docs/getting-started/authentication)**3. Add API Keys**
- create `.env` in the root of the project.
- set following fields in `.env` file
```.env
OPENAI_API_KEY=YOUR_OPEN_AI_API_KEY
DREAMSTUDIO_API_KEY=YOUR_STABILITY_AI_API_KEY
GEMINI_API_KEY=YOUR_GEMINI_API_KEY
```**4. Run the code**
- run `setup.sh` to start the bot.
- Scan QR code.
**Default Prefix**
- `!gemini` use gemini.
- `!gemini-vision` use `gemini-pro-vision` model for images
- `!chatgpt` use chat-gpt.
- `!dalle` use Dalle.
- `!stable` use Stability AI.
- `!bot` use custom model.**Note! open `src/whatsapp-ai.config.ts` to edit config.**
[Docs Link](https://github.com/Zain-ul-din/WhatsApp-Ai-bot/blob/master/docs/config-docs.md)
# Tutorials
- **[Setup bot on cloud using Github code-spaces](https://www.youtube.com/watch?v=QahJSi6Ygj4)**
- **[setup bot on a local machine](https://www.youtube.com/watch?v=fyPD3ILFPck)**### FQA
- [How to create custom model](https://github.com/Zain-ul-din/whatsapp-ai-bot/issues/3)
# Disclaimer
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.
## Contributors
###
- [Open issue here](https://github.com/Zain-ul-din/WhatsApp-Ai-bot/issues)
- [Ask Question here](https://github.com/Zain-ul-din/WhatsApp-Ai-bot/discussions)## Sponsors
A big thank you to these people for supporting this project.
## About Us