WeChat Robot Server Usage Tutorial--Basic Configuration

Hello everyone, my name is Xiongxiong. Welcome to follow the WeChat public account Xiongxiong’s Little Classroom.

Now it is: 07:19:18 on May 23, 2023, Jinan to Bengbu South, G300 high-speed rail.

Preface

Some time ago, I wrote a robot based on WeChat. You can read these articles:
Running WeChat robot on cloud desktop, no need to keep the Windows system open all the time (deploying and running the robot)
Java version WeChat robot usage tutorial V1.0
Running the WeChat robot on the cloud desktop eliminates the need to keep the Windows system open all the time

The previous articles actually basically revolved around one theme: running WeChat robots on your own computer. As for how to use the functions inside, they didn’t introduce many, so today’s article is mainly used to introduce how to use WeChat robots. Some functions of the robot server.

Registration and login

As mentioned in the previous article, when we use the robot, we need to register our own exclusive account on the server first, and then log in on the client, so that the server and client can be connected.

So, how should we register?
Enter the server http://wechat.88688.team.

Click to register now:
Insert image description here
enter the information to register, and log in after successful registration.

There are not many functions at present. After logging in successfully, just go to the home page.
Insert image description here

Basic configuration

In the basic configuration , we can implement the following functions:

  1. Enable built-in interfaces, such as: headline news, morning greetings, rainbow farts, Moments copywriting, and more built-in interfaces are still under development
  2. Configure the group welcome message, the effect is as follows:
    Insert image description here
  3. Friends approval and welcome word setting, for example: pre-set keywords, when the user adds your friend, just note the pre-set keywords, the friend request can be automatically passed, and a welcome word will be sent to you.
  4. Q&A configuration: For example, you can customize some keywords. When users chat with the Aite robot in a group or directly send a message to the robot, the mechanism will be triggered to automatically reply to the preset keywords.
  5. Custom interface configuration: When the user Aite robot or directly sends a message to the robot, the configured custom interface will be requested. Developers can configure it in the custom interface

Let's take a look at how to use these functions separately.

Message interface configuration

Insert image description here
The first thing we see is this page. The Tianxing Data APIKEY at the top requires developers to register an account from the official Tianxing Data official account and APIKEYfill it in the input box after getting it.

Tianxing Data registration address: click here

The interfaces such as Toutiao Hotspot and Rainbow Fart below can be customized to be turned on or off. After the configuration is completed, click **[Submit APIKEY and information configuration]**. After confirming that the information is correct, click OK.

Configuring custom interfaces
Some developers want to realize such a requirement, that is, after receiving messages from groups or friends, they can configure keyword replies one by one. It is too cumbersome and verbose, so they need a batch processing interface, then this The function of the interface is tailor-made for this requirement.
Insert image description here
Click the button below [Configure Custom Interface], and then add a custom interface.
Insert image description here

  • Interface path: It is the interface address that needs to be requested after receiving the message. The interface rules are as follows:

Interface documentation example

The interface needs to be written strictly in accordance with this rule, otherwise no reply will be made.

Insert image description here

  • Interface parameters: can be left blank
  • Keyword: Multiple callback keywords can be configured to be used and separated. You need to configure Hello and Goodbye, you need to enter Hello and Goodbye; all use callback input /all;
    if keywords are configured, the custom interface will only be triggered when there are pre-configured keywords in the message. If not If the keyword triggers, /alljust fill it in.

Group chat welcome message configuration

The main application scenarios for group chat welcome words are: when a user scans a QR code to enter a designated group chat, or is invited to join a designated group chat by others, the configured group chat welcome keyword is triggered to achieve automatic welcome, as shown in the figure below :
Insert image description here
Let’s see how to use it:

First, click on the group chat list, find the group chat that needs to be set with a welcome message , and copy the WeChat ID of the group chat .
Insert image description here

Then click [Basic Configuration]-"[Group Chat Welcome Word Configuration]-"[Add a Group Chat Welcome Word Configuration] and fill in the information.

Insert image description here
Then it's ok.


Friend approval and welcome message configuration

  • Friends pass: When other people need to add a WeChat robot , they only need to fill in the pre-configured ones 关键词and they will automatically pass.
  • Welcome: When the request to add friends is passed, the welcome will be automatically triggered . For example, we can write: Hello dear friends, if you want to join the group, please reply 1, 24-hour telephone hotline... etc., fill in according to the actual situation That’s it.

Insert image description here

Q&A configuration

In the question and answer configuration, the main application scenario is: when the user sends a message to the robot, if the message exactly matches the keywords we configured, the reply message will be triggered.

For example: if we configure a keyword 穆雄雄and the answer is 欢迎关注 #公众号:雄雄的小课堂, then when the user sends a message to the robot: Mu Xiongxiong, the robot will automatically reply to the answer.

Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/qq_34137397/article/details/130818778