ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

Use OpenAI ChatGPT to connect to WeChat and chat with AI directly on WeChat. I believe this month is definitely OpenAI month, the first year of intelligent AI, and ChatGPT launched by OpenAI is definitely on the list! However, not to mention the difficulty of registration, it is very troublesome to access and use it every time due to some force majeure. Most people cannot experience it. Here is how to use ChatGPT to connect to WeChat.

OpenAI ChatGPT connects to WeChat to interact with AI!

use Connect to WeChat and chat with AI directly on WeChat. I believe this month is definitely OpenAI month, the first year of intelligent AI. ChatGPT launched by OpenAI is definitely on the list! However, not to mention the difficulty of registration, it is very troublesome to access and use it every time due to some force majeure. Most people cannot experience it. Here is how to use it .

What is ChatGPT?

ChatGPT is an open source chatbot framework that uses OpenAI's GPT-3 language model to implement natural language processing, question-answering, and dialogue generation. In layman's terms, it is an AI chatbot.

ChatGPT can answer a large number of questions while mimicking human speaking style

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

ChatGPT can help programmers write a piece of code

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

ChatGPT can also help you calculate

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

In short, ChatGPT can answer many questions

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

How to use ChatGPT to access WeChat

For testing purposes only. Do not use your real WeChat account to avoid being blocked. Please register a secondary WeChat account for testing.

Preparations before connecting ChatGPT to WeChat

  • OpenAI account (the account needs to have a credit limit, usually $18, which is given when you sign up)
  • WeChat (For testing purposes only. Do not use your real WeChat account to avoid being blocked. Please register a WeChat secondary account for testing.)
  • API Key

Register for an OpenAI account

First you need an OpenAI account.

Registration method reference:OpenAI 2023 latest ChatGPT chatbot registration and usage guide!

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

It is recommended to use a Google account to log in. Gmail login is more convenient. Microsoft account can also be used. It is recommended to use a foreign email address for registration. You can directly register a Google account to log in.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

 

The UK mobile phone number is obtained through the following public account. After following the public account, there are prompts on how to operate. The disadvantage is that it is a bit expensive and is only used to receive text messages. If you want a cheaper number, you can refer to:SMS-Activate overseas code receiving platform usage tutorial (including introduction to free code receiving platforms in various countries)

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

After using this official account to purchase a temporary UK mobile number, you will receive a verification SMS after successfully registering with Open AI, which will be sent through the official account.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

The OpenAI account has been registered. Here is how to use ChatGPT to connect to WeChat.

ChatGPT integrates with WeChat

Transform your personal WeChat account into a GPT robot. The project is developed based on openwechat.

ChatGPT is a popular project on WeChat in recent days. It is so popular that Github has deleted the repository directly, because the use of this project will be detected by WeChat and restricted functions, and further use may result in account suspension. Please do not use it again to avoid losses to yourself.

The project is developed based on openwechat, WeChat SDK, please move to this repository to view:https://github.com/eatmoreapple/openwechat

ChatGPT-WeChat robot project reference:https://github.com/AutumnWhj/ChatGPT-wechat-bot

WeChat-chatgpt project reference:https://github.com/fuergaosi233/wechat-chatgpt

Wechatbot project address:https://gitee.com/shtml/wechatbot

# Get the project git clone https://github.com/869413421/wechatbot.git # Enter the project directory cd wechatbot # Copy the configuration file copy config.dev.json config.json # Start the project go run main.go

The directory structure is shown in the figure. It is recommended to install the Golang environment locally. Here I use VS CODE to open it.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

Log in to Open AI, click on your profile picture, and go to the API keys page

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

 

Create your API key, which is used to access Open AI for authentication. Once created, copy the key for later use.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

 

Paste the key in the config.json configuration file. You can also read the documentation included in the source code, which the author wrote very clearly.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

Enter in the vscode command bar go mod tidy, this command is used to obtain the dependent packages, and then run, run directly go run .\main.go

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

After successful operation, a QR code will be automatically opened, or you can enter the URL into the browser according to the login information prompted, and scan the QR code through WeChat to log in.

After logging in, a test was done here and a message was sent as a verification. The background log of the message content is shown in the figure.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

The chat test content on WeChat is as follows.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

In the source code structure, the code directory shown in the figure below can be used to perform secondary improvements or customized development on some business rules, so that the robot can filter or handle other tasks according to some additional rules you specify.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

After the modification is completed, we certainly cannot run the code directly. We must either run it in a container or use a Windows system, so I compile it directly and make it into an executable file.go build main.go Compile and generate main.exe file

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

Take out the exe file and configuration file separately, run them, and test whether they can run successfully. The experiment shows that they can run successfully.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

After confirming that it can run, running it locally is not a long-term solution. So, I copied it to the cloud server to run it. If you don’t have a cloud server or VPS, you can go to Amazon Cloud to register a Windows cloud desktop for free. Amazon Cloud Desktop Link:Create an Amazon Cloud Desktop for Free in 10 Minutes

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

Test it and you can see that the background can also receive logs. It seems that there is no problem.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

The above log is generated by @ite in the WeChat group. The specific effect is shown in the figure:

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

 

Newly registered users of Open AI have an 18 USD trial quota. After a while of deployment, everyone had a lot of fun in the group at the beginning, so the quota was deducted as people played more. I have already used up more than 4 USD in one day. But it is enough for the experience.

ChatGPT connects to WeChat and uses OpenAI to build WeChat chatbots. Register a UK mobile number for free

References:

https://www.cnblogs.com/weskynet/p/16973956.html

https://juejin.cn/post/7175745500656697399

score

3 Comments

  1. Unknown Unknown Unknown Unknown

    Link: https://pan.baidu.com/s/1-dzL7yiblSTPrmgb2bP16Q
    Extraction code: 1028

  2. Unknown Unknown Unknown Unknown

    Link: https://pan.baidu.com/s/15fsXqbET-kIbp3i7XyLgUw
    Extraction code: 0328

  3. Unknown Unknown Unknown Unknown

    Link: https://pan.baidu.com/s/1GCseFLpzoKyShhOTEqPNcw
    Extraction code: 0113

Leave a Reply

Your email address will not be published. Required fields are marked *