• Stars
    star
    171
  • Rank 222,266 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 1 year ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

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

Tutorials

Installation

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

About Us

This repository is maintained by Zain-Ul-Din

Show some โค๏ธ by starring this awesome repository!

Buy Me A Coffee

More Repositories

1

LGU-Timetable

LGU time table front-end app
TypeScript
27
star
2

The-Palestinian-Side

True side of Palestine conflict
TypeScript
23
star
3

Final-OOP-Project-Cplus

BSCS 2nd Semester project
C++
19
star
4

UnityDailyReward

Unity Daily Reward Implementation Using System DateTime APIS
C#
13
star
5

Unity-Swipe-Controller

C#
8
star
6

awesome-palestine-apis

List of Palestine data APIS in JSON format
TypeScript
8
star
7

Algo-and-Data-Structures-Road-Map

BSCS semester 3rd : Algo and Data Structures Mastery
C
7
star
8

Zain-ul-din

Config files for my GitHub profile.
5
star
9

ecommerce-site

full stack ecommerce site with restful API's with node js , front end with next js and SQL database
JavaScript
5
star
10

codeql-uboot

C#
4
star
11

ChatApp

Chat App using React + FireBase SDK
CSS
4
star
12

SceneManager

The Real-Time Unity SceneManager is a utility that keeps track of the names of scenes in Unity projects and generates scripts that can be utilized for code completion purposes.
C#
4
star
13

CustomCarController

Custom Car Controller for Unity(Parking Game Project)
C#
4
star
14

randomsServer

Node js , prisma , postgres server
JavaScript
4
star
15

XCom-Clone

XCom clone in unity
C#
4
star
16

todo-server

todo app mini server using express and node
JavaScript
3
star
17

React-Api

Fetching Pokemon API Using React.
JavaScript
3
star
18

CSharp

C#
3
star
19

To-Do-List

C#
3
star
20

Car-Parking-Game-Code

Car Parking Game Script Folder for later use
C#
3
star
21

NextApp

Custom Unity-Asset-Store
CSS
3
star
22

SQL_ESiteProject

SQL Ecommerce Project
3
star
23

smart_ESite

small esite clone [react + firebase + firebasehooks]
JavaScript
3
star
24

C-Bank-Project

C++
3
star
25

React-Front-End-App

JavaScript
3
star
26

MailServer

Node Js mail server with retry capabilities
JavaScript
3
star
27

lgu-crawler

LGU timetable Crawler
TypeScript
3
star
28

DSA_Game

game based on dsa problem
C#
3
star
29

Electron_ReactApp

React in Electron Using Web Pack
JavaScript
3
star
30

restful-apis

restful-apis in node js , ruby on rails and django
JavaScript
3
star
31

Student-Attendance-System

Student attendance system web project using dotnet core MVC
C#
2
star
32

MD2Web

A simple program to convert markdowns to html files
TypeScript
2
star
33

randomsCLI

A Interactive CLI for creative coding in cplusplus
JavaScript
2
star
34

Js-Mastery

Road Map to Js Mastery
JavaScript
2
star
35

makeit

applications using c-make and code examples
C++
2
star
36

Programing-Patterns

Programing design patterns
C++
2
star
37

CloudInAction

cloud code examples
TypeScript
2
star
38

Urdu_Pleg_Checker

The Model is an advanced AI solution that efficiently detects and eliminates plagiarism in Urdu text.
Jupyter Notebook
2
star
39

live-code-editor

live code editor inspired by codepen
JavaScript
1
star
40

KotlinInAction

Kotlin basic to advance projects code samples
Kotlin
1
star
41

DSA

1
star
42

tetris_game

Tetris game using c++ SFML lib
C++
1
star
43

UnityScripting

Unity utilities, editor scripting and much more
C#
1
star
44

APIs-Examples

APIs implementations examples
CSS
1
star
45

text-cipher

text-chiper is a secure and convenient online tool that empowers users to generate robust passwords and encrypt text using advanced encryption algorithms
HTML
1
star
46

OOP_OladocClone

Oladoc Clone Project
C++
1
star
47

ML

Machine learning examples
Jupyter Notebook
1
star
48

music-manager

c++ 17 GUI app build on the top of DSA Concepts
C++
1
star