PolarDB Agent Express supports interaction with its AI assistant through a WeCom bot. After you create a bot and obtain its credentials from the WeCom Admin console, you can configure a channel in PolarDB Agent Express to enable direct conversations with the AI assistant within the WeCom app.
Process overview
Integrating a WeCom bot with PolarDB Agent Express involves two main steps:
-
Create a WeCom bot and obtain credentials: In the WeCom Admin console, create a bot in API mode and obtain its
Bot IDandSecret. -
Configure the PolarDB Agent Express channel: On the PolarDB Agent Express management page, enable the WeCom channel and enter the credentials you obtained.
Create a WeCom bot and obtain credentials
-
Log on to the WeCom Admin console. In the left-side navigation pane, choose Security & Management > Management Tools > Create.
-
Click Create Bot, and in the dialog box that appears, select Create Manually.
-
On the bot creation page, scroll to the bottom of the right-side panel and switch to Create in API Mode.
-
Configure the following settings:
-
Bot Name: Enter a custom name for your bot.
-
Visible Scope: Specify which members can use this bot.
-
Connection Method: You must select Use Long Link.
-
Get Credential: Click the button. The system generates a
Bot IDand aSecret. Immediately copy and securely store these values.
-
-
Configure other permissions as needed, and then click Save at the bottom of the page.
Configure the PolarDB Agent Express channel
To establish the connection, configure the WeCom bot credentials in PolarDB Agent Express.
-
Log on to the PolarDB console and navigate to the management page for your PolarDB Agent Express application.
-
In the Channel Configuration section, enable the WeCom channel, enter the Bot App Key and App Secret, and then click Save.
ImportantSaving the configuration triggers PolarDB Agent Express to refresh and restart. This process takes about 2 minutes.
Using the bot
Once configured, members of your organization can find and use the bot in WeCom.
-
Path 1: In the WeCom client, go to Workbench > Smart Office > Smart Bot, find the bot you created, and click Use.
-
Path 2: Go to Contacts > Smart Bot, find the bot you created in the list, and click Send Message.
In the chat window, send questions directly to the PolarDB Agent Express AI assistant.