github langbot-app/LangBot v4.11.0
LangBot v4.11.0

5 hours ago

LangBot 是一个开源的 AI 聊天机器人与智能体平台,支持多种即时通讯平台、大语言模型、知识库和插件,帮助你构建、部署和管理 AI 助手。
LangBot is an open-source AI chatbot and agent platform that connects messaging platforms, large language models, knowledge bases, and plugins to help you build, deploy, and manage AI assistants.

🚀 Key Features / 关键更新

LangBot 4.11 带来了一次较大的架构升级:机器人可以响应平台事件,Agent 运行器改为插件化,WebUI 新增工作区助手。
LangBot 4.11 brings a major architectural update: bots can react to platform events, Agent runners are now plugins, and the WebUI adds a Workspace Assistant.

⚡ 事件驱动智能体 / Event-Based Agents (EBA) - Authored by @RockChinQ @huanghuoguoguo @wangcham @dadachann

除消息外,入群、退群、撤回、表情回应、卡片点击等平台事件现在也可以触发处理。13 个平台适配器已基于 EBA 架构重写,可在「事件路由」中将事件分发给 Pipeline、Agent 或插件处理器。
Beyond messages, platform events such as joins, leaves, recalls, reactions and card clicks can now trigger processing. 13 adapters have been rebuilt on EBA, and Event Routing dispatches each event to a Pipeline, an Agent or a plugin processor.

Event Routing

Create event processor

  • 场景化路由 / Scenario routes:按欢迎新成员、处理成员离开等常用场景创建路由 / Create routes from common scenarios such as welcoming new members
  • 三类处理器 / Three processor types:Pipeline、Agent、插件事件处理器可组合使用 / Pipelines, Agents and plugin Event Processors can be combined
  • 事件调试器 / Event debugger:表单编辑事件数据,查看运行日志与执行详情 / Edit event payloads in a form and inspect run logs and details
  • 平台增强 / Platform upgrades:Slack Socket Mode、钉钉卡片交互、微信“正在输入”、OneBot WebSocket 等 / Slack Socket Mode, DingTalk card interactions, WeChat typing indicator, OneBot WebSocket and more

🧩 AgentRunner 插件化 / Pluginized AgentRunner - Authored by @huanghuoguoguo @RockChinQ @fdc310

LocalAgent、Dify、Coze、n8n 等内置运行器已迁出主程序,改为扩展市场中的官方插件,并新增 Codex、Claude Code、ACP 等运行器。运行器可独立更新、按需安装,开发者也可基于 AgentRunner Protocol v1 编写自己的运行器。
Built-in runners such as LocalAgent, Dify, Coze and n8n have moved out of the core into official Marketplace plugins, alongside new runners such as Codex, Claude Code and ACP. Runners are updated independently and installed on demand, and developers can write their own on AgentRunner Protocol v1.

AgentRunner plugins in Marketplace

  • 一键迁移 / One-click migration:自动安装所需插件,原配置自动备份 / Auto-installs required plugins and backs up your configuration
  • 权限可控 / Scoped authorization:运行器只能调用当前上下文授权的工具与平台 API / Runners only reach tools and platform APIs authorized for the current context
  • 插件认证 / Plugin certification:扩展市场展示认证徽章,主程序校验插件签名 / Certification badges in the Marketplace and signature verification in the core

🤖 工作区助手 / Workspace Assistant - Authored by @huanghuoguoguo @RockChinQ @dadachann

WebUI 新增工作区助手,可通过对话查询资源、创建并配置流水线与知识库,所有写操作需确认后才执行。
The WebUI adds a Workspace Assistant that inspects resources and sets up Pipelines and knowledge bases through chat; every write runs only after confirmation.

🔐 更多亮点 / More Highlights

  • Passkey 与两步验证 / Passkeys & 2FA:WebAuthn 登录(@BiFangKNT)与 TOTP 两步验证(@TyperBody)/ WebAuthn sign-in and TOTP two-factor auth
  • 操作日志 / Operation trace:记录每次操作改了什么,支持完整性校验(@TyperBody)/ See what every operation changed, with integrity checks
  • 监控升级 / Monitoring:统一执行视图、工具调用追踪、实时处理中面板(@dadachann)/ Unified execution views, tool-call tracing and a live in-flight dock
  • 媒体缓存 / Media cache:媒体按内容去重存储,减少 langbot.db 膨胀(@BiFangKNT)/ Content-addressed media storage reduces langbot.db growth
  • 扩展市场 / Marketplace:已安装/可更新状态与实时安装进度(@TyperBody)/ Installed & update states and live install progress
  • CLI 与诊断 / CLI & diagnostics:用 lbctl 和 API Key 管理与诊断实例(@huanghuoguoguo)/ Manage and diagnose instances with lbctl and API keys
  • 新手引导 / Onboarding:侧边栏引导与场景化机器人创建向导(@fdc310 @huanghuoguoguo)/ Sidebar tour and a scenario-based bot setup wizard
  • 模型 / Models:LangBot Models 价格展示与收藏模型(@RockChinQ @dadachann)/ LangBot Models pricing and starred models
  • 飞牛 fnOS:应用包全程以非 root 运行(@sheetung)/ The fnOS package now runs entirely without root

👍 Other Improvements / 细节优化

  • 修复企业微信智能机器人空气泡与流式提前关闭 / Fix empty bubbles and early stream close in WeCom AI Bot by @Nikarhub
  • 修正 SeekDB 向量适配器语义 / Correct SeekDB vector adapter semantics by @huanghuoguoguo
  • 知识库导入中断后保留状态 / Retain interrupted ingestion state in knowledge bases by @RockChinQ
  • 修复 PostgreSQL 下 Runner 执行,SQLite 启用 WAL / Fix Runner on PostgreSQL and enable SQLite WAL by @RockChinQ
  • 扩展市场按指定版本安装插件 / Honor the requested Marketplace version on install by @RockChinQ
  • 隐藏重复的连接模式控件 / Hide the duplicate connection-mode control by @fdc310
  • 补充存储分析菜单图标 / Add the storage analysis menu icon by @Rapeter
  • 补齐全部语言的 i18n 文案 / Complete i18n strings across all locales by @TyperBody @BiFangKNT
  • 更新 TokenLab 品牌标识 / Refresh the TokenLab logo by @hedging8563

更新须知 / Update Notice

  • 先备份 / Back up first:升级前请备份 data/ 目录或 PostgreSQL 数据库;建议从 v4.10.x 最新版升级。
    Back up data/ or your PostgreSQL database; we recommend upgrading from the latest v4.10.x.
  • 迁移流水线 / Migrate pipelines:内置运行器已移除,升级后请在「流水线」页面完成迁移。迁移后将开始新会话;旧版自定义 Runner 需改写为插件 Runner。详见迁移说明。
    Built-in runners are removed — run the migration on the Pipelines page after upgrading. Migrated pipelines start fresh sessions; legacy custom runners must be rewritten as plugin runners.
  • 离线环境 / Offline:选择「仅迁移数据」,再手动安装运行器插件。
    Choose Data only, then install runner plugins manually.
  • 插件 SDK / Plugin SDK:升级至 langbot-plugin 0.7.x,请更新已安装插件。
    Upgraded to langbot-plugin 0.7.x; please update installed plugins.
  • 遥测 / Telemetry:新增执行遥测,默认开启且不含消息内容,可通过 space.disable_telemetry: true 关闭(数据收集政策)。
    Execution telemetry is on by default without message content; opt out with space.disable_telemetry: true (policy).
  • 配置变更 / Config:新增 media_cache、api.host、runner.admin_plugins;移除 force_box_session_id_template。
    Added media_cache, api.host, runner.admin_plugins; removed force_box_session_id_template.

What's Changed

Contributors

Thanks to everyone who contributed to this release / 感谢所有为本版本做出贡献的开发者:

@RockChinQ @dadachann @huanghuoguoguo @TyperBody @BiFangKNT @fdc310 @wangcham @sheetung @Nikarhub @Rapeter @hedging8563

New Contributors

Full Changelog: v4.10.11...v4.11.0

Don't miss a new LangBot release

NewReleases is sending notifications on new releases.