Skip to content

Deploying WeCom Intelligent Bot

INFO

The WeCom Intelligent Robot official API is still being updated, so it currently only accepts requests within 7 seconds.

Creating a Bot

First, log in to the WeCom Admin Console.

Homepage

Click Security And Management in the left sidebar, then click Intelligent Bot under Management Tool.

As shown:

Intelligent Bot

Click Create Bot, scroll to the bottom of the page, click API模式创建, and enter the page:

Create via API Mode

Click to randomly generate Token and EncodingAESKey, then fill in the basic bot information above. Pay attention to setting the visibility scope.

Click My Company in the left sidebar and save the Company ID at the bottom.

Configuring Callback URL

Start the LangBot main program, select the adapter WeCom Intelligent Bot, and fill in the configuration items.
Among them, the token is Token, the Encoding-AESKey is EncodingAESKey, and the Bot ID can be filled in as xxx (or filled in randomly, it will be changed later). After filling in, click
Save, and Enable the robot.

WeCom Intelligent Bot Adapter

Return to the WeCom robot configuration page, and fill in the robot callback URL (accepts HTTP) in URL, for example: http://xxx.xxx.xx.xx:2291/callback/command. If the creation is successful, it will jump to the details page. If the message Request URL Failed appears, please double-check whether the above steps have been completed one by one.

Details page after successful creation:
Creation Successful

Copy the Bot ID from the WeCom robot details page, return to the LangBot management page, change the Bot ID of the deployed intelligent robot to the copied ID, and restart the robot.

Start Using

Enter WeCom, click , as shown:

Add Bot

Click Company-Created, select the created bot, and enter the chat interface.

Similarly, if you want to invite the bot to a group chat, click the add member button in the group chat and add the bot from there.

Effect Images

Effect Image 1