whatsapp-ai-bot

whatsapp-ai-bot

This is a WhatsApp AI bot that uses various AI models, including Gemini, GPT, DALL-E, Flux and StabilityAI, to generate responses to user input.

Stars: 190

Visit
 screenshot

The WhatsApp AI Bot is a chatbot that utilizes various AI models APIs to generate responses to user input. Users can interact with the bot using commands to access different AI models such as Gemini, Gemini-Vision, CHAT-GPT, DALL-E, and Stability AI. Additionally, users have the flexibility to create their own custom models to personalize the bot's behavior. The bot operates on WhatsApp Web through Puppeteer and requires API keys for Gemini, OpenAI, and StabilityAI. It provides a range of functionalities and customization options for users interested in AI-powered chatbots.

README:

+ We are switching to the @whiskeysockets/baileys library for our bot because it's lightweight and easy to deploy.

- This branch is still under construction 🚧. Currently, we only support the models listed below, but support for new models will be added soon.

Supported Models:

Model Provider Type Usage
Chat GPT Open AI text to text !chatgpt
Gemini Google text to text !gemini
Gemini Vision Google image to text !gemini-vision
Dalle 2 Open AI text to image !dalle
Dalle 3 Open AI text to image + revised text !dalle3
FLUX.1-schnell Hugging Face text to image !flux

Useful links:

♥ Sponsor 💎 Bounty 🚀 Deployment ✉ WhatsApp Group
link link link link

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.

Table of Content

Demo

Gemini

Screenshot (1186)

Stability AI + Chat-GPT

image

Dalle + Custom Model

image

Usage

1. Download Source Code

 git clone https://github.com/Zain-ul-din/WhatsApp-Ai-bot.git
 cd WhatsApp-Ai-bot

OR

2. Get API Keys

3. Add API Keys

  • create .env in the root of the project.

  • set following fields in .env file

 OPENAI_API_KEY=YOUR_OPEN_AI_API_KEY
 DREAMSTUDIO_API_KEY=YOUR_STABILITY_AI_API_KEY
 GEMINI_API_KEY=YOUR_GEMINI_API_KEY
 HF_TOKEN=HUGGING_FACE_TOKEN

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.
  • !dalle3 use Dalle 3.
  • !stable use Stability AI.
  • !flux use flux AI.
  • !bot use custom model.

Note! open src/whatsapp-ai.config.ts to edit config.

Docs Link

Tutorials

FQA

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

Sponsors

A big thank you to these people for supporting this project.

Levitco 💎 Anas Ashfaq YOU?

About Us

This repository is maintained by Zain-Ul-Din

Show some ❤️ by starring this awesome repository!

Buy Me A Coffee

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for whatsapp-ai-bot

Similar Open Source Tools

For similar tasks

For similar jobs