danielgross / whatsapp-gpt

MIT License
3.07k stars 596 forks source link

noob question #4

Open Hababala opened 1 year ago

Hababala commented 1 year ago

hi there! thanks for creating this.

I am total noob. I used the fork created by zlenner and somehow managed to run the whole thing.

By that I mean I connected to my whatsapp and also ran the server.

However It just started sending messages I receive from my existing contacts to the openai and the openai started replying to them.

How do I create a specific openai contact which is the only one that would interact with the openai?

Also again total noob question, but I guess this will all die if I close my PC? How can I make it a permanent thing?

kbakdev commented 1 year ago

I think there is no option to create, someone please correct me if I am wrong.

rajeshhazari commented 1 year ago

Hi All, completly noob question and new to go , can this be run from android mobile pixel?

rebelzion commented 1 year ago

@Hababala

How do I create a specific openai contact which is the only one that would interact with the openai? you can create a new account with a different email.

Also again total noob question, but I guess this will all die if I close my PC? How can I make it a permanent thing? you new to run it from a server then.

ahmedRSA commented 1 year ago

hi there! thanks for creating this.

I am total noob. I used the fork created by zlenner and somehow managed to run the whole thing.

By that I mean I connected to my whatsapp and also ran the server.

However It just started sending messages I receive from my existing contacts to the openai and the openai started replying to them.

How do I create a specific openai contact which is the only one that would interact with the openai?

Also again total noob question, but I guess this will all die if I close my PC? How can I make it a permanent thing?

if someone can add headless mode you can run it on server without keep turn on your PC

totallynotdavid commented 1 year ago

I'm not sure what you mean with this:

How do I create a specific openai contact which is the only one that would interact with the openai?

Do you want only one of your WhatsApp contacts to be able to interact with OpenAI? If that is the case, then add this:

if v.Info.Sender.User != "NUMBER" {
  return
}

You could add it after these lines and then rebuild it: https://github.com/danielgross/whatsapp-gpt/blob/d12693276e1e88d5d335276aa42bcfd849d56023/main.go#L39-L41

This instructs the program to ignore all the messages unless they come from this NUMBER.

totallynotdavid commented 1 year ago

About running this with a headless browser, maybe we should wait for OpenAI to release an API because I don't know if there would be an easy way to bypass the captcha they have with a headless browser.

lucasiezzi commented 1 year ago

@totallynotdavid could you help me please? I run both go run main.go and python server.py and I have my whatsapp connected and my browser opened. How do i proceed now? (I have 0 experience with Go)

lucasiezzi commented 1 year ago

When someone send me a message my cellphone automatically responds: 404 page not found