Check out my Whatsapp ChatGPT Bot!
https://github.com/askrella/whatsapp-chatgpt
Dont forget to give a star, if you like and use the project 🙂
Fun fact: The Readme file was generated by ChatGPT.
221 messages · Page 1 of 1 (latest)
Check out my Whatsapp ChatGPT Bot!
https://github.com/askrella/whatsapp-chatgpt
Dont forget to give a star, if you like and use the project 🙂
Fun fact: The Readme file was generated by ChatGPT.
Feel free to ask questions if you have some 🙂
Hello, I cannot find the .env file. May you help me locate it?
For context, I ran into this. Sorry if I annoyed you, I'm not really technically literate. 🙂
Hugging face api still better
nice
You have to create the .env file and put the session token into it.
SESSION_TOKEN=Put the token here
Here is a tutorial on how to find the session token: https://github.com/transitive-bullshit/chatgpt-api#session-tokens
With huggingface api you can create own models and stuff, but this is not chatgpt related, right?
You have to install nodejs, navigate to the whatsapp-chatgpt folder, run "npm install" and then "npm run start" in your command line.
@vagrant yew hey
could you make a short video - could be youtube, shows step by step for visual learners
thanks
not for yt just here @sharp cobalt
why you want to gatekeep it haha?
Hmm there are two session tokens both are not working :/
@vagrant yew i keep on getting npm WARN deprecated puppeteer@13.7.0: < 18.1.0 is no longer supported
Hi! There is a official chatGPT API?
Can you elaborate?
I want to integrate my chatbot on WhatsApp with OpenAI. See if I can create a more natural conversation with my clients.
If I’m correct you can only message the chatbot yourself and nobody else
I think there are other bots on the internet to help you with that
Where is the ENV file? How to create it?
You’ll need to create it yourself,
Go to your Directory (meaning the place you place your downloaded file) Open that folder eg. WhatsppGPT with your favorite CODE EDITOR like VScode and add a file “.env” then follow the instructions above on how to add the token
Make sure its the one you are told in the tutorial! There are two _secure_statements in the cookies directory look for the token starting with Ye..something and not https..something
No, there is not yet. It's currently only in "private preview", they show you that message if you've ever used it - to be clear, I think a lot of people are confusing semantics when they say anything about an OpenAI API simply because they are not necessarily using the same model. I.e. one person's API could be using davinci-001, while another's 003 - both will get some different results, even if used in the same way. In the same context, ChatGPT is it's own model that isn't capable of being leveraged (yet). Likely only a matter of time though after they've gathered enough feedback and made tweaks to it.
Can i just video call you?!
i love coming across stuff being built with the chatgpt package 😄
Doesnt matter, it still works 🙂
Nice library bro! 😄
Only received messages are recognized. So others can write you !gpt <message> and the bot (you) will answer 🙂
Show me 🙂
I added you as friend, you can write me a DM @whole dove
❗ New Update:
You can now put PREFIX_ENABLED=false into the .env File and it will disable the !gpt Prefix and will forward the exact message to ChatGPT for answering 🙂
Okay, nice one. Thanks for testing!
I can't message you
im a noob sorry, but can i put this in my group chat and have my friends talk to the bot? also is there a tutorial on how to set this up
Please add me again, i got banned on my other account don’t know why😞😒
this is 👨💻fun
If you have problems setting the project up, create a new issue here: https://github.com/navopw/whatsapp-chatgpt/issues
I've put my issue already
I answered rn 🙂
Yoo bestiee it's me add me please😂 I got ruined yesterday
❗ OpenAI added some additional Cloudflare protections that are preventing access token refresh.
whatsapp-chatgpt now needs a CLEARANCE_TOKEN in the .env file to work properly.
Check the README file for more information on how to obtain.
Also big thanks to @clever crest & contributors for providing a fast fix.
@urban pulsar
bot number?
The bot has no number instead you scan your qrcode generated by the bot and when you scan it through your phone ,,,now your number is now connected with the bot, so basically if someone texts you...the bot can answer on behalf of you! hope i helped
👍
++++++++++++++-
k
@vagrant yew Can you add me so I can message you? Don't know if you're still running Askrella but I'm looking for help with something
Added you
how do you use chatGTP in whatsApp? I thought chatGTP didnt have API access?
There are some unofficial api's which you can use to build such things 🙂
Oooh interesting, could you point me to them?
How do I acces on mobile phone
tyvm!
Can I do this on iPhone?
No you need a PC or Server to set it up and afterwards you can access the bot via Whatsapp on your phone.
Is there any YouTube or video tutorial, I’m not very code savvy
You could possible use this: https://textwithai.com/
This uses ChatGPT in background.
Talk to state of the art AI using sms.
is there a easy tutorial about how to install chatgpt for whatsapp?
I do not understand what this means :
could u tell me or send me sth so that I can understand how I can use chatgpt for whatsapp?
Other ones are probably outdated, mine is quite up-to-date.
a video tutorial would be hugely helpful
❗ New Update ❗
The bot now works with EMAIL and PASSWORD in the .env File.
For detailed instructions, check out the README file.
To run it you need Node ```
Node.js
A recent version of npm
An OpenAI Account
Or theres full description of that project
❗ Important Note❗
You should not be using this account while the bot is using it, because that browser window may refresh one of your tokens and invalidate the bot's session.
Very interesting! being simple allowed me to understand it , love it
Nice project
after scanning the code, where do you go to chat? @vagrant yew
does it work if i have account with google auth
im getting this message after login: [Whatsapp ChatGPT] Failed to authenticate with the ChatGPT API: ChatGPT failed to refresh auth token. Error: 403 Forbidden
it shows the gpt chat then close the browser.
didnt work for me, is this work on windows ?
How to do it on mobile ?
An error occured, please contact the administrator. (ChatGPTAPI error 429)
Don't know only the first message gets a response, the rest get thrown an error.
Hey, yes I get the same error. Have to fix it...
Hello @vagrant yew im always receiving: An error occured, please contact the administrator. (ChatGPTAPI error 429) what is the issue=
i got the QR code scanned, but im not sure how to activate the chat? how do i open the chat?
go to ur phone whatsapp setting like you do with normal whatsapp web to scan the code
Yeah, I said I got the qr code scanned.
But the chat won't appear
Rip idk
chat wont appear. if someone write you !gpt something.. it will send the response
but after the first message u will get error 429 xD we are waiting for Navo to update
Which bots?
@vagrant yew any updated because of the error 429?
Maybe next week, im currently sick + holidays 😄
get well and merry xmas..
ask chatGPT why the error occurs xd
@Anarkopin#0175 i asked and still telling me check conection
What don't you just dedicate a number to it
So anyone who can send any message on that number can access it easily
Am I able to use the bot in groupchats?
You dont, people who writte you
to me?
Yes
Correct
But after second message it will give you an error (429). We are waiting for an update.
For anyone that doesn't want to set up their own code or server this might be a good option: https://medium.com/@lolo_code/lets-create-a-whatsapp-openai-gpt-3-bot-in-7-minutes-with-serverless-in-lolo-for-free-dc8cfe4b0a94
followed the steps in readme file and the qr code is scanned
but the command isn't working
any idea what am i missing
Did you saw the message in the console?
yes it says the client is ready to use
got this
An error occured, please contact the administrator. (ChatGPTAPI error 403)
@lethal obsidian open ur DMs
open now
Hello everyone, I fixed the bot and It now works again.
403 means your credentials are wrong in the .env file. Check your EMAIL and PASSWORD 🙂
Yes this is an option but it's not ChatGPT related 😄 It's GPT 3 😄
Update is there, pull the latest version.
This was fixed , but later it was like, the prompt was working only once
I'll pull latest version and try now
Yes that happened for me too. Thank you. Please give feedback so I can adjust 🙂
the latest pull fixed it.....awesomee

but a new catch
the browser window which opens for user authentication has to stay open, otherwise the prompt wont work
have to re-authenticate
Yes thats true, it stays open. But according to the node.js API I'm using this is the most reliable method currently.
👍
I got an error when visiting chat.openai.com/auth/login.
Error code: 1020
Ray ID: 7877a5a73b0bf3ad
Country: IN
Data center: bom08
IP: 13.233.85.17
Timestamp: 2023-01-10 18:58:57 UTC
how do i resolve this
@vagrant yew can you help me? I installed it, scanned the qr. Asked a friend to send !gpt 'some question' to me. And nothing happened.
Do you know why and how to fix?
Could it be because of the overloaded servers?
Is there some terminal I can see the logs/errors
You can create the error logs.
i'm hosting this 'whatsapp-chatgpt' in an aws server, so while in authenticating in browser that's the error i receive
do you see anything in the terminal once you asked your friend to send message?
No nothing happened!
But it was running, like I scanned the QR and all
@vagrant yew now it's showing invalid email
Are there any things I should have done, that are not included in the instructions. That could be the reason everything seemed to work up until after connecting whatsapp (no respons from !gpt)
I followed it quite strictly but Im not someone with much experience in regards to coding etc
once it says client is ready
your friend will send a message and even that should be picked up in the terminal
Wait, sidequestion. How does this work in regards to security privacy and does it use my cost openai API (in a way that costs money)
Oke thanks! Ill look if it says client ready 🙂
everything is done and client is running but where to talk???
hi
It doesn't cost anything 🙂
New Project URL:
Nice 💪
❤️
@vagrant yew feel free to add this to the readme of the chatgpt-api repo 🙂 make sure to mention DALL-E
this is really awesome
going to share w/ some folks
I already added it 😄
It's the only really good working whatsapp bot 😛
WhatsApp Bot #3 is our project 😄
WhatsApp Bot #1 doesnt work (old)
@clever crest Check this out, Work In Progress:
OpenAI Whisper 🙂
amazing
are you using a hosted whisper API?
i didn't see your project since the repo URL had changede
just updated it to be WhatsApp Bot #1 and added a desc to call out DALL-E
i'd rather send traffic to higher quality projects 🔥
No im using the CLI under the hood 😄
It's not on master branch yet
Ah yeah it's https://github.com/askrella/whatsapp-chatgpt
Thank you so much! 😄
Will release whisper today 🙂
Maybe on hosted instance, let's see.
i have whisper on my pc, will this be using the whisper on my local machine?
We will use a API we host ourself and provide to the community for free!
I open sourced it already.
https://github.com/askrella/whisper-rest-api
We will also add Text-To-Speech, so the AI answers you with voice messages!
Everything will be configurable.
All work in progress 🙂
will you be able to make it so that we have the option to choose between hosting locally and from you??
Yes we will probably do that too because of data privacy reasons.
With node.js it's not that easy to access whisper tho...
They only have a python package.
ahh i see, that makes sense
thank you!
ive been trying to use ChatGPT to do this
but as im not a novice programmer
i failed and partially gave up xD
ChatGPT can not generate voice messages I guess 😄
no i mean, make the code
Ah okay 😄
Thanks!
You can also join our discord, its linked in the whatsapp-chatgpt project.
We post work in progress sneak peaks and dicuss stuff with the community there!
can we suggest something
which i accomplished
using chatgpt
but ran into bugs and couldnt backtrack xD
add a queue system so that the messages do not overwhelm chatgpt
i noticed this caused the program to close itself if multiple users send a message at once
so i put in a queue that only sent a message to chatgpt once the previous message has been fully processed
sorry if it feels im telling you what to do, ofc all of this is up to you. so im just giving ideas
i also added in the option for reactions to each message
to show the user the processing stages of their message
a thumbs up reaction to their message means its in the list and being processed
a heart emote reaction means its been processed and is on the way to be delivered to the user
again these are just suggestions
its all up to you
Good idea actually, it could improve the responses!
Would you be so kind and add an issue here:
https://github.com/askrella/whatsapp-chatgpt/issues
Thank you very mmuch!
will do, thank you.
Great news from our side!
We just released the voice message feature. Talk to the bot! 🤖 🚀
Get the latest version:
https://github.com/askrella/whatsapp-chatgpt
Documentation:
https://askrella.github.io/whatsapp-chatgpt/#/
Transcription = The bot will understand your voice messages
Text-To-Speech (TTS) = The bot will answer with voice messages
It's quite experimental. So if errors occur please create a Github Issue:
https://github.com/askrella/whatsapp-chatgpt/issues
Thanks everyone ❤️
are you able to attach local photos and send them on the chat to ask chatgpt a question?
You mean a question about the photo? No you can't 😄