LangBot Docs

Bots

Connect LangBot to messaging platforms: Discord, Telegram, Slack, WeChat, QQ, Lark, DingTalk, LINE and more.

Bots receive message events from messaging platforms and hand them to a Chat, an Agent, a workflow or a plugin processor according to the bot's event routing.

Event routing, plugins and message policy

The "Event routing" area of a bot has three tabs:

  • Routes: decide which processor handles each kind of event. Incoming messages and other platform events can go to a Chat (formerly Pipeline), an Agent, a workflow or a plugin processor. You can add conditional routes; when none matches, the default route applies.
  • Plugins & commands: choose the plugins enabled on this bot ("Enable all plugins" or a manual selection), and configure built-in system commands and plugin commands (enable/disable, command prefix defaulting to /, and everyone / admins permissions; enabled system commands take priority over same-named plugin commands). Enabling a plugin enables both its commands and its chat event hooks (formerly EventListener). New bots enable all plugins. A single route can use its own selection. Each plugin shows whether its hooks apply to the processor of the selected route; for example PromptPreProcessing only applies to Chats.
  • Message policy: the trigger, safety and general output settings that used to live in the pipeline now belong to the bot and apply to Chats, Agents and plugin commands. The bot has a default policy; a single route can override it.

The message policy covers:

CategorySettings
TriggerGroup response rules (@mention, prefix, regex, random), access control (blacklist / whitelist), ignore rules, message aggregation, combine quoted messages
SafetyContent filter, rate limit
General outputLong text, forced delay, @sender, quote the original message, exception handling and notice texts

Notes:

  • The policy applies only to incoming messages (message.received); other platform events are not affected.
  • Plugin commands match before route rules but use the policy of the route the message would otherwise match. When no route matches, the bot default policy applies.
  • Streaming Agent replies apply only delay, @sender and quote; long text handling does not apply. Messages a plugin sends on its own (send_message) are not affected by the policy.
  • The Chat debug dialog does not go through a bot and uses a neutral policy, so it cannot preview long text, @mention and similar effects.
  • After upgrading, existing bots get a default policy that blocks and changes nothing, and every route that points to a pipeline copies that pipeline's former settings as a route override, so behavior stays the same.

arch

Use lbctl bot get <bot> to find a route ID. With lbctl bot routes bind <bot> --binding <id> --agent <agent> --dry-run you can check a change before applying it with --yes. Use --pipeline for a Chat target and --workflow for a workflow. If the binding changes concurrently, Core returns a conflict and the CLI can read the latest configuration.

Route one group to its own Chat or Agent: open the bot's Sessions tab and select a session from that group. The full Group ID (copyable) appears under the title. Click Route this group to add a rule at the top of the event routes that matches chat type = group and chat ID = that group. Choose the target processor and save; other groups keep using the rules below it. The execution detail drawer shows the same Group ID and shortcut.

Session Monitoring & Upgrade Checks

  • Session monitoring: session lists and execution records can be filtered by handling type and show four status badges: AI, Command (system commands, plugin commands, and command denied), Plugin (event processors / lifecycle hook interceptions), and Blocked by policy (with the rule name and whether it came from the bot default or a route override). Execution details include a four-stage Message policy timeline (Admission → Lifecycle hooks → Processor → Output), and the Routes tab shows Last 24h counts (AI / Commands / Plugins / Blocked) per route.
  • Bot admins: configure bot admins inside the bot's Sessions tab (send /whoami to inspect a sender ID). When the admin list is empty, no one can run admin-only system or plugin commands.
  • Upgrade checks: after upgrading from an earlier release, an Upgrade checks banner appears on the Bots and Chats pages summarizing command prefix changes, plugin command collisions or an installed EssentialCommands plugin, bots missing admins, newly enabled command plugins, equivalent route overrides that can become the bot default, and moved Chat settings, with one-click actions and acknowledgements.
PlatformStatusNotesTutorial
Discord✅Tutorial
Telegram✅Tutorial
Slack✅Tutorial
Mattermost✅Supports the open-source, Free, Professional, and Enterprise editionsTutorial
LINE✅Tutorial
KOOK✅Tutorial
Lark✅Tutorial
DingTalk✅Tutorial
WeCom (Enterprise WeChat)✅Enterprise internal botTutorial
WeCom Intelligent Bot✅wecom intelligent botTutorial
WeCom Customer Service✅Enterprise external botTutorial
WeChat Official Account✅WeChat public platform botTutorial
OneBot v11✅Uses a personal QQ account as a bot, requires an independent protocol client, supports OneBot v11NapCat
Lagrange
LiteLoaderQQNT
QQ Official Bot✅Connects to the QQ Open Platform bot APITutorial

Don't want to deal with public IPs and domain setup? Platforms like Slack, LINE, WeCom, and Lark require webhook callback URLs, meaning you need a public server, domain, and HTTPS certificate. LangBot Cloud comes with built-in domain resolution and HTTPS — sign up and start using it right away, no network configuration needed.

On this page