Skip to main content

8.12 AI Agent IM Channels

AI Agent supports interaction through instant messaging tools. After configuring message channels, you can converse with AI Agent on Feishu (Lark), Telegram, or WeChat without always needing to open the IDMP Web interface. The system administrator configures the channels, then each user binds their IM account to their IDMP user account to establish a secure conversation channel.

8.12.1 Channel Overview

Message channels involve three layers:

  1. Admin configures channels: Configure Bot credentials for each IM platform in the Admin Console.
  2. User binding: Each user binds their IM account to their IDMP user account.
  3. Daily use: Once bound, you can talk to AI Agent directly in IM.

IDMP currently supports three message channels:

ChannelBot ConfigurationUser Binding MethodNotes
Feishu (Lark)App ID + App SecretScan QR code, send any message to get 6-digit binding codeCommonly used by enterprises; requires creating a Feishu app
TelegramBot Token (± Proxy)Open Bot link, send command to get 6-digit binding codeCommonly used by individuals; requires creating a Bot via @BotFather
WeChatSystem toggle, no Bot credentials neededScan QR code + phone confirmationBind personal WeChat; user scans code to complete automatically

8.12.2 Configuring Message Channels (Admin)

Go to Admin Console → AI Management → Channel Management to manage message channel Bot configurations.

Channel Configuration

Channel List

The channel list displays all three channels in a table, each showing the channel name, enable toggle, running status, and a "Details" action:

ColumnDescription
NameChannel icon + name (Feishu / Telegram / WeChat)
EnabledToggle switch. Feishu/Telegram cannot be enabled without saved Bot configuration; WeChat controls the system-level toggle directly
StatusFeishu/Telegram show Running / Stopped; WeChat does not display a status
Actions"Details" button to enter the channel's detailed configuration page

Feishu Channel Configuration

Click the "Details" button on the Feishu row in the channel list to enter the Feishu channel configuration page.

Initial setup:

  1. Visit the Feishu Open Platform (https://open.feishu.cn/page/launcher) and create an enterprise self-built app.
  2. Obtain App ID and App Secret from the app credentials.
  3. Enter the App ID and App Secret in the IDMP Feishu configuration page, then click Save.
  4. Enable the channel toggle after saving.
  5. Click Start to start message listening.

Modifying configuration: Click the edit icon. Leave App Secret blank to keep the original value unchanged.

Viewing bound users: The lower half of the configuration page shows the list of bound users, including email, name, and binding time. Administrators can unbind users directly.

Telegram Channel Configuration

Click the "Details" button on the Telegram row in the channel list to enter the Telegram channel configuration page.

Initial setup:

  1. Search for @BotFather in Telegram, follow the instructions to create a new Bot and obtain the Bot Token.
  2. Enter the Token in the IDMP Telegram configuration page.
  3. Optional: If your network requires a proxy, fill in the Proxy field (e.g., http://proxy.example.com:8080).
  4. Click Save.
  5. Enable the channel toggle after saving.
  6. Click Start to start message listening.

Modifying configuration: Click the edit icon. Leave Token blank to keep the original value unchanged. You can also delete the Telegram configuration at any time.

Viewing bound users: The lower half of the configuration page shows the list of bound users.

WeChat Channel Configuration

The WeChat channel does not require Bot credentials. Click the "Details" button on the WeChat row in the channel list to enter the WeChat configuration page, which only displays the bound user list.

Use the Enabled toggle on the channel list page to control the global availability of this channel.

8.12.3 Users Binding IM Accounts

Viewing Channel Status

In the IM Binding section of your personal settings page, the status cards for all three channels are always displayed, regardless of whether you have bound them:

[Feishu icon]  Feishu    Status: Listening  |  ID: ou_xxxx  [Unbind]
[Telegram] Telegram Status: Listening stopped | [Start Listening]
[WeChat icon] WeChat Status: Not bound | [Bind User]

Status descriptions:

StatusDescription
Not EnabledThe administrator has not configured this channel
Listening StoppedThe channel is configured but Bot listening has not started
ListeningThe channel is configured and listening is running normally
Not BoundYour IM account is not bound to IDMP
BoundYour IM account is bound and can receive AI Agent messages

Binding Feishu

  1. Make sure the administrator has configured the Feishu channel and listening is running.
  2. In the IM Binding section, when the Feishu row shows "Listening," click Bind User.
  3. A Feishu QR code pops up. Scan it with the Feishu client.
  4. After scanning, open the Bot conversation and send any message to get a 6-digit binding code.
  5. Enter the 6-digit binding code in the dialog and click Bind.
  6. After successful binding, the page refreshes automatically and the status changes to "Bound."

Binding Telegram

  1. Make sure the administrator has configured the Telegram channel and listening is running.
  2. In the IM Binding section, when the Telegram row shows "Listening," click Bind User.
  3. A new window opens with the Telegram Bot link.
  4. Send a message to the Telegram Bot to get a 6-digit binding code.
  5. Return to the IDMP dialog, enter the 6-digit code, and click Bind.

Binding WeChat

  1. Make sure the administrator has enabled "Personal WeChat Binding" in system settings.
  2. In the IM Binding section, click Bind User on the WeChat row.
  3. A QR code appears. Scan it with WeChat.
  4. Confirm login on your phone.
  5. The system automatically polls the QR code status and completes binding upon confirmation.
  6. After successful binding, the popup closes automatically and the status updates to "Bound."
  7. In WeChat on your phone, tap the newly added WeChat Clawbot to customize settings such as nickname, pin to top, or change profile picture.

Channel Configuration

Unbinding

For a bound channel, click the Unbind button. Click Confirm in the confirmation dialog, and the system unbinds your IM account from your IDMP account.

8.12.4 Data and Security

  • Binding information is stored in the channel_user_binding table, including the IM platform's user open ID, binding time, and binding code.
  • Binding codes are 6-digit temporary codes with a 5-minute validity period. Expired codes require re-requesting.
  • AI Agent cache: When unbinding, the system automatically clears the cached API Key to prevent old credentials from being reused.
  • Bot configuration Secrets and Tokens are masked (********) when viewed in the Admin Console. Leaving them blank during editing preserves the original values.

8.12.5 Frequently Asked Questions

Q: Can't receive messages after creating a Feishu Bot?

A: After publishing a Feishu app, it takes a few minutes to take effect. Make sure event subscriptions and permissions are correctly configured on the Feishu Open Platform, and that the Bot is enabled. Then check that the App ID and App Secret are correct on the IDMP Feishu configuration page, and click Start to start listening.

Q: How do I create a Telegram Bot?

A: Search for @BotFather in Telegram, send the /newbot command, and follow the instructions to set the Bot name and username. After successful creation, @BotFather will return a Bot Token. Enter it in the IDMP Telegram channel configuration page.

Q: What if my binding code expires?

A: Binding codes are valid for 5 minutes. After expiry, send a message to the Bot again to get a new 6-digit code, then enter the new code in the dialog.

Q: Can AI Agent still contact me via IM after unbinding?

A: No. After unbinding, AI Agent will no longer send messages to your IM account. To restore, simply re-bind.