Skip to main content

User Guide

IM Channel connects Sage AI to WeCom, Feishu, and DingTalk so teammates can chat in IM clients without signing in to the ONE console. The bot is bound to the account, environment, and resource domain used at configuration time, and follows Content Security, Command Security, and data permissions in that scope.

Configure an IM channel to bring Sage AI into team IM for instant Q&A and collaboration. The bot binds to the current resource domain and follows permission controls. To access all-domain data, configure under All Resource Domains. Do not bind the same IM credentials across accounts, environments, or resource domains—doing so may cause lost messages or interrupted conversations.

image-20260821171747020


Prerequisites

  • Menu: AI Studio / Security Operations / IM Channel.
  • Permissions: Read-Write to configure, unbind, enable/disable, or change session timeout; Read-Only can view only.
  • Model: At least one inference model available; IM uses Auto routing and does not allow in-IM model switching.
  • Network:
    • Long connection (WebSocket / Stream): outbound access to the IM cloud is enough; no public inbound required (WeCom and DingTalk).
    • URL callback (Webhook / HTTP): public HTTPS callback URL required (WeCom, Feishu, and DingTalk; Feishu is URL-only in this release).

Connection modes

ItemLong connectionURL callback
How it worksPlatform connects out to the IM gateway; messages arrive over the long connectionIM pushes events to your HTTPS endpoint
NetworkOutbound onlyPublic domain + HTTPS inbound
Setup complexityLower; usually no URL backfillMust paste Webhook back
NoteIM console and AI Studio must use the same modeSame
ChannelSupported modesGuide
WeComLong connection + URL callbackWeCom Integration Guide
FeishuURL callback only (WebSocket removed from the form; app cards kept)Feishu Integration Guide
DingTalkStream long connection + HTTP URL callbackDingTalk Integration Guide

One bot per channel per account / environment / resource domain; updates overwrite. Do not reuse the same IM credentials across account / environment / resource domain.

Read this page first, then open the channel-specific guide to finish setup.


Value

  • In-place collaboration: Ask questions, inspect, and confirm in familiar IM apps without switching to the console.
  • Aligned permissions: Queries and generated data stay within the bound account and resource domain, consistent with the Web experience.
  • Governed sessions: Auto-start a new session after idle time; view IM sessions read-only on the Web.
  • Flexible deployment: Use long connection for WeCom / DingTalk on private networks; use URL callback for Feishu and public-cloud scenarios.

Use cases

Ask in an ops on-call group

In WeCom / Feishu / DingTalk groups, @bot to query alerts, inspect hosts, or generate summaries. The group shares one group session context.

Private troubleshooting

DM the bot for diagnosis. Each IM user’s DM is an isolated session, separate from group chat.

Approval-style confirmation (Feishu cards, etc.)

Operations that need human confirmation can complete in IM via chat or app cards (per channel capability) and are recorded in execution audit.


Operations

  • Configure a channel: Choose WeCom / Feishu / DingTalk; WeCom / DingTalk can use long connection or URL callback, Feishu is URL-only; enter credentials and save; for callback mode, paste the Webhook back.
  • Session management: Set idle auto-new-session duration (default 24 hours, 1–24, cannot disable).
  • Unbind: Confirm twice to unbind; after that, IM will not receive AI replies.
  • View IM sessions: Switch to IM sessions in Sage AI history (read-only).

Getting started

Open IM Channel

Sign in to Bonree ONE, confirm environment and resource domain at the top right, then go to AI Studio → Security Operations → IM Channel.

Configure a channel (overall flow)

  1. Create the bot / app on the IM open platform and collect secrets per the channel guide.
  2. On the matching AI Studio channel card, click Configure: for WeCom / DingTalk choose long connection or URL callback (must match the IM console); for Feishu use URL callback.
  3. Fill in fields and Save; for URL callback, copy the Webhook and paste it back to the IM console.
  4. In IM, DM or @bot and send “hello” to verify.

Channel details:

Session management

FieldRequiredDescriptionDefaultValidation
Auto-start new sessionYesStart a new session after the idle timeout24 hoursInteger 1–24 hours; cannot disable

Hover tip: Idle history is no longer sent to the model, which reduces token usage and improves response speed.

Sessions are isolated by environment + resource domain + account + IM channel + bot + DM user / group. Feishu, WeCom, and DingTalk sessions are not shared.

Differences vs Sage AI (Web)

DimensionSage AI (Web)IM Channel
Model selectionSwitchableAuto routing
Agent / SkillManual selectionIntent routing; no manual binding
AttachmentsFuller supportMostly text
Rich textMarkdown / charts, etc.Limited by IM format; complex charts may fall back to tables or text
RatePlatform policyAbout ≤ 20 questions per minute per bot

Notes

  • Do not bind the same bot credentials across different accounts, environments, or resource domains.
  • WeCom / DingTalk: both sides must use the same mode (both long connection, or both URL callback).
  • Feishu is URL callback only in this release—choose Send events to developer server on Feishu; do not use long-connection subscription.
  • Unbind or secret mismatch causes no IM replies.
  • IM triggers are recorded in Operations Overview and Audit Logs (IM Channel — WeCom / Feishu / DingTalk).
  • See each channel guide for detailed steps.

Further reading