This topic describes how to integrate your Agent with WeCom through either Quick Pairing (scan to connect, no app creation needed) or linking an existing bot.
Prerequisites
-
An Agent has been created in the Agent Management Center.
Channel configuration
-
Go to the Agent Management Center.
-
In the left-side navigation pane, select your Agent type, such as JVS Computer.
-
Click Channel Configuration.
-
In the Actions column of the target Agent, click View/Configure Channel.
-
On the WeCom card, click Configure Now.
In the dialog that appears, select one of the following methods to complete bot integration:
Express Pairing
Requires cloud computer image version: Windows 3.2.18 or later, or Linux 3.0.10 or later. Restart your cloud computer to update.
-
Click Send Now. The system sends an SMS or email with an access link to the authorized user.
-
The authorized user accesses the binding page through the URL in the SMS or email to obtain a QR code. You can also get the URL directly from the console.
-
Scan the QR code with WeCom to bind the bot.
-
Chat with the bot in WeCom to verify the connection.
If another bot is already bound, scanning the QR code will replace it.
Associate Existing Robot
Create a WeCom intelligent bot
-
Go to the WeCom Admin Console. In the left-side navigation pane, click Security and Management > Management Tool. Click Create Bot, and then click Manually Create.
-
Configure the bot's Visibility Range.
-
Scroll to the bottom of the page and click Create in API Mode.
-
For Connection Method, select Use persistent connection.
-
In the Secret area of Configuration Method, click Click to Get. Save the Bot ID and Secret.
Enter credentials to complete linking
-
Return to the Agent Management Center. Enter the WeCom Bot Token and WeCom Bot encodingAESKey of the WeCom intelligent bot, and then click OK.
-
Chat with the bot in WeCom to verify the connection.
Verify the integration
-
In the WeCom group chat settings, add a member and select Intelligent Bot.
-
Search for the bot by name and add it to the group chat.
-
In the group chat, @mention the bot to send it a command.