Skip to content

Whatsapp Bot Powered by Chat GPT, Make people chat with GPT3

Notifications You must be signed in to change notification settings

badboysm890/Whatsapp-GPT3-BOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whatsapp automation powered by GPT (For now)

🌟 If you like the stuff

Chat with GPT from whatsapp or make it autoreply for your specific contacts

OpenAI Whatsapp

Setup

git clone https://github.com/badboysm890/Whatsapp-GPT3-BOT

Once you have clone cd Whatsapp-GPT3-BOT and now we have to make sure there is GO and Python.

  • Install Go you can find the guide below

  • Next Python Requirements

    pip install flask
  • Next Playwright
    pip install playwright
  • After installation of playwright
    playwright install
  • Now you are good to go 😋

How to run

  • Run the main.go first
    go run main.go
  • Run server now
    python3 server.py

And make sure to add phone numbers to the config file and also hotword so it only gets triggered what they speak with certain hotword and leave empty to reply to everyone

note: Make sure to scan the QR code that is created or else the whole things is joke 🤡

Credits to @danielgross

Go Installation - (Linux)

note: always check for the latest versions, the version numbers shown here will fall out of date quickly.

Installing Go on Ubuntu:

Step 1. Grab yourself a binary release from here: https://golang.org/dl/

You'll want to use one from the Stable versions, you probably want one which is in bold, for Ubuntu it's xxx-linux-amd64.tar.gz

wget https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz;

Step 2. Install

sudo tar -C /usr/local -xzf go1.4.linux-amd64.tar.gz;

Step 3. Decide where your packages will live

unless your name is also peter you might want to change that bit!

mkdir /home/peter/.go;

Step 4. Configure Environment

On Ubuntu you can edit ~/.bashrc to set your PATH, at the bottom add:

change the path below to match the one you created in step 3!

# The go binary, so we can actually run it
export PATH=$PATH:/usr/local/go/bin;

# This is where all your go packages live
GOPATH=/home/peter/.go;
export GOPATH;

# Add GOPATH/bin so compiled go libs appear on your PATH
export PATH=$PATH:$GOPATH/bin;

Step 5. Run that script

Every new terminal will run the above scripts when it starts; to apply it to the current terminal window we just:

source ~/.bashrc

Step 6. Test

$ go version
go version go1.4 linux/amd64

Full install instructions can be found here: https://golang.org/doc/install

Why was this made ?

This project base was created by the the project "whatsgpt3" and was cool but i did make few interesting changes and that weren't merged so decided to make a separate repo and make it more updated frequently.

About

Whatsapp Bot Powered by Chat GPT, Make people chat with GPT3

Topics

Resources

Stars

Watchers

Forks