Tutorial on how to connect ChatGPT to WeChat, hands on!

Image

------ body content display, start to learn new knowledge ------

Step 1: FastGPT creates the application

FastGPT 可以简单理解为一个用于创建和管理 GPT 模型的平台(去年写这篇文章时,GPTs 功能还未发布)。通过这个平台,用户可以方便地创建自己的 GPT 模型,并将其直接接入微信进行使用。

如果您拥有自己的 API Key,可以在账号设置页面中输入并配置您的 API Key。请特别注意,在填写 API 地址时,需要在地址末尾添加后缀 “v1”,以确保能够正确访问相应的服务。

Image[1] - Tutorial on how to access ChatGPT to WeChat by hand! -Huyue Technology Source Code - Software Customization and Development

If you don't have it, you can also recharge directly in the platform to use the interface provided by the platform, the price is not bad.

Image[2]-The ChatGPT access to WeChat tutorial, hand to teach you how to access the GPT to WeChat! -Huyue Technology Source Code - Software Customization and Development

After configuring the Key, create a new application in the application interface and debug it.

Image[3]-The ChatGPT access to WeChat tutorial, hand to teach you how to access the GPT to WeChat! -Huyue Technology Source Code - Software Customization and Development

It's actually pretty much the same steps as creating GPTs, theThe two main places to configure the AI model and cue words areThe

If you have relevant information, you can also associate a knowledge base to facilitate GPT access to WeChat conversations, you can directly refer to the information to answer, for example:

Image[4] - Tutorial on how to access ChatGPT to WeChat by hand! -Huyue Technology Source Code - Software Customization and Development

How to upload a database is covered in detail in the previous article, so I won't go into it here.

There are also advanced orchestration features, similar to workflow design, interested brothers can explore on their own, the function is still quite rich.

To make it easier for you to understand, I won't explain too much in this article.

Once it's all debugged click Publish Application, select Access via API and click New!::

Image[5]-Accessing ChatGPT to WeChat Tutorial, Hands on how to access GPT to WeChat! -Huyue Technology Source Code - Software Customization and Development

Set the Key name, point limit and expiration time according to your application scenario.

If there are no special requirements, just default the settings directly and click Confirm:

Image[6] - Tutorial on how to access ChatGPT to WeChat by hand! -Huyue Technology Source Code - Software Customization and Development

The platform then creates an API key, note theThe key will only be displayed once, so remember to save it in time!The

in one's turnSave the API Key and root address, save it for later steps.

Image [7] - Tutorial on how to access ChatGPT to WeChat, hand in hand! -Huyue Technology Source Code - Software Customization and Development

Step 2: Access to Smart MicroSecretary

Smart MicroSecretary is a smart robot configuration management platform.

Can be accessed with one clickChatGPTDialog, Seamless AdaptationFastGPTKnowledge base, supportEnterprise WeChat, personal WeChat and public number and other platforms.

Official website address:wechat.aibotk.com

In this step we need to access the app we just created on FastGPT to Smart MicroSecretary.

After registering and logging in, you will automatically enter the basic configuration interface, where you can set the APIKEY as you like:

Image[8] - Tutorial on how to access ChatGPT to WeChat by hand! -Huyue Technology Source Code - Software Customization and Development

Then check the Smart Bot Reply button to open the parameter settings.

In total, there are 5 places that need to be set manually:

The first is the robot trigger rangeThe most important thing to remember is that you can have access to a group or private chat, or all of them, depending on what you want;

The second is an accessed robotics platform, check FastGPT;

The third is the choice of whether or not to cite the original text, I personally recommend checking the box if you are accessing a group chat and leaving it unchecked for private chats;

The fourth and fifth is the APIKEY and root address that you were told to save in FastGPT in the previous stepNote that when filling in the root address, the suffix "v1" should also be added at the end.

Image [9] - Tutorial on how to access ChatGPT to WeChat, hand in hand! -Huyue Technology Source Code - Software Customization and Development

Once it's all set up, click Save.

after thatFind APIKEY and APISECRET in the Personal Center screen, save it for later.

Image [10] - Tutorial on how to access ChatGPT to WeChat, hand in hand! -Huyue Technology Source Code - Software Customization and Development

Step 3: Configure the server

Open the Sealos platform:sealos.run/Sealos

It is a cloud operating system that allows Smart MicroSecretary to run directly on Sealos, which is much easier and more convenient to use than traditional cloud servers.

After registering and logging in, click on Application Management:

Image [11] - Tutorial on how to connect ChatGPT to WeChat, hand in hand! -Huyue Technology Source Code - Software Customization and Development

Click New Application:

Image [12] - Tutorial on how to connect ChatGPT to WeChat, hand in hand! -Huyue Technology Source Code - Software Customization and Development

Fill in the name, mirror name, allocate CPU and memory in the base configuration page.

Note that if the access is to bePersonal WeChat mirror name: aibotk/wechat-assistant

If the access isEnterprise WeChat Mirror Name: aibotk/worker-assistant

CPU and RAM selection of 1h1G is enough to use, new registered users will have 5 dollars experience credit, enough to play for a long time.

Image [13] - Tutorial on how to access ChatGPT to WeChat by hand! -Huyue Technology Source Code - Software Customization and Development

Then expand Advanced Configuration and click Edit Environment Variables:

Image [14] - Tutorial on how to connect ChatGPT to WeChat, hand in hand! -Huyue Technology Source Code - Software Customization and Development

Fill in the following lines in the environment variable editing screen:

Image [15] - Tutorial on how to connect ChatGPT to WeChat, hand in hand! -Huyue Technology Source Code - Software Customization and Development

If you are accessing a personal WeChat, you only need to enter the first two linesJust fill in the APIKEY and APISECRET that you configured in the previous step in Smart MicroSecretary:

Image[16] - Tutorial on how to access ChatGPT to WeChat, hand in hand! -Huyue Technology Source Code - Software Customization and Development

If you want to access enterprise WeChat, apply for a Token in the following URL and fill it in:tss.rpachat.com

Once configured click Confirm and then click Deploy in the upper right corner:

Image [17] - Tutorial on how to access ChatGPT to WeChat by hand! -Huyue Technology Source Code - Software Customization and Development

Seeing the upper left corner shows the running status means the configuration is successful:

Image [18] - Tutorial on how to access ChatGPT to WeChat, hand in hand! -Huyue Technology Source Code - Software Customization and Development

Step 4: Access to WeChat

Back to the intelligent micro-secretary platform, in this position on the home page will appear a QR code, with WeChat scanning login to access WeChat with one click:

Image [19] - Tutorial on how to access ChatGPT to WeChat by hand! -Huyue Technology Source Code - Software Customization and Development

Here, ChatGPT is successfully connected to WeChat, so you can experience the effect of conversing with the exclusive robot in WeChat.

In fact, if you are simply accessing ChatGPT, you can not use FastGPT as a platform at all.

Just use Smart MicroSecretary and Sealos directly.

onlyThrough FastGPT to GPT into WeChat we can apply to more scenarios, such as intelligent WeChat customer service, AI private tutor, AI lovers and so on.

Warm Tip: This article was last updated on2024-07-18 11:35:19Please note that some articles are time-sensitive, so if there are any errors or if they are no longer valid, please check below.leave a messageor contactHootSuite OfficialThe
本站所有系统源码请合法合规使用,严禁从事违法犯罪,侵权等任何非法活动,违法犯罪毁三代,且行且珍惜!
© copyright statement
THE END
Image
kudos7 share (joys, benefits, privileges etc) with others
commentaries Total 1

请登录后发表评论