brainstormbuddy / WhatsApp-AI-Bot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WhatsApp AI Bot

Banner (1)

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 CHAT-GPT, DALL-E, and Stability AI, and users can also create their own models to customize the bot's behavior.

Installation

FQA

Table of Content

Demo

Stability AI + Chat-GPT

image

Dalle + Custom Model

image

Features

  • Generate text responses to user input using various AI models.
  • Support for GPT, DALL-E, StabilityAI, and other models via API integration.
  • Easy-to-use API for creating custom AI models and integrating with the bot.
  • Integration with WhatsApp for easy deployment and messaging.

Requirements

  • Node.js (18 or newer)
  • A recent version of yarn.
  • An OpenAI API and StabilityAI API key.
  • A WhatsApp account.

Usage

1. Download Source Code

 git clone https://github.com/brainstormbuddy/WhatsApp-AI-Bot.git
 cd WhatsApp-AI-Bot

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

4. Run the code

  • run setup.sh to start the bot.

  • Scan QR code.

Default Prefix

  • !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

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.

About

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

License:MIT License


Languages

Language:TypeScript 64.7%Language:C++ 18.4%Language:Go 16.5%Language:Shell 0.4%