whatsapp-agents  by Zain-ul-din

WhatsApp bot integrating diverse AI models

Created 3 years ago
250 stars

Top 100.0% on SourcePulse

GitHubView on GitHub
Project Summary

This project offers a WhatsApp bot integrating multiple AI models for text and image generation, enabling users to access advanced AI capabilities directly within their WhatsApp conversations. It targets users seeking a convenient interface for services like ChatGPT, Gemini, DALL-E, and Stability AI, providing a flexible platform for AI-driven interactions.

How It Works

The bot leverages the baileys library to establish and manage an instance of WhatsApp Web. User commands are parsed, and requests are routed to the appropriate AI model's API, including providers like OpenAI, Google Gemini, and Stability AI, for text-to-text or text-to-image generation.

Quick Start & Requirements

  • Primary install: Clone the repository using git clone and run npm run start.
  • Prerequisites: Requires API keys for Gemini, OpenAI, Hugging Face, and Stability AI. These keys must be configured in a .env file by copying and renaming .env.example.
  • Setup: Involves cloning the repository, obtaining necessary API keys, configuring the .env file, and running the Node.js application. Tutorials for cloud (GitHub Codespaces) and local setup are mentioned but not directly linked.
  • Links: A "Docs Link" is referenced but not provided.

Highlighted Details

  • Supports a broad spectrum of AI models: ChatGPT, Gemini (text and vision), DALL-E 2/3, Flux, Stability AI, and Ollama.
  • Provides both text-to-text and text-to-image generation functionalities.
  • Offers customization options for commands and model configurations via src/whatsapp-ai.config.ts.

Maintenance & Community

  • The repository is maintained by Zain-Ul-Din.
  • Links are available for sponsorship, bounty programs, deployment, and a dedicated WhatsApp Group.
  • Users can open issues or ask questions through provided links.

Licensing & Compatibility

  • No specific open-source license is detailed in the provided README.
  • Commercial use compatibility is uncertain due to potential WhatsApp terms of service violations.

Limitations & Caveats

The bot utilizes an unofficial WhatsApp Web integration (baileys), which carries a significant risk of account suspension or blocking by WhatsApp. Furthermore, the use of external AI APIs incurs costs from providers such as OpenAI and Stability AI for each request processed. Some features, like Gemini Vision, are noted as currently unavailable via command.

Health Check
Last Commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
0
Star History
0 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.