Yesterday, I made a post on how to create ChatGPT bot with TelegramIf you haven’t seen it yet, you can watch it here. In that post, I mentioned creating a ChatGPT Bot on Messenger, and now you see this article.
Join the channel Telegram belong to AnonyViet ???? Link ???? |
This is a tool of the author Tungchaphet, you can support the author 1 star in the github project here. And now I will show you how to create ChatGPT bot on Messenger.
Request
- New Facebook account. You can use clone facebook accounts or don’t use them anymore. Note that do not use a real facebook account because there is a risk that facebook will ban your account.
- OpenAI’s KeyAPI. You can create an OpenAI account by this guide. Then you access this site to copy the KeyAPI.
- If you don’t have nodeJS on your computer, download it here. You just need to click Next to install it.
Instructions for creating a ChatGPT Bot on Messenger
Step 1: First to create a ChatGPT Bot on Messenger, you clone the Chino-chan-Bot project on github with the command below. Then access the downloaded project.
git clone https://github.com/Tungchaphet/Chino-chan-Bot.git cd Chino-chan-Bot
Step 2: Load the required npm libraries for the project with the command below:
npm i
Step 4: Open file config.js in the config folder and paste the openAI keyAPI in.
Step 5: Next, I will get the facebook cookie with c3c-fbstate. You download the application c3c-fbstate here and unzip that file. Remember to download Source code stop it.
Step 6: You go to the Chrome extension, turn on developer mode, and throw the extracted folder of c3c-fbstate into the extension window in Chrome.
Step 7: You log in to your new Facebook account and click on the C3C FbState extension and then select “Download Fbstate.json”. Please save this file in the project’s config directory, overwrite the old fbstate.json file.
Step 8: You open Terminal in the project directory and run the command below to run the server bot. If it shows the text, {fb account name} is online, then it’s successful.
Note: There is an extremely important point that you need to pay attention to is that this bot only answers questions from those who are already its friends. That means you have to be friends with it before it can reply to you. A bit fancy but never mind :v.
I wish you success dentist.