Repository navigation
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.
LangBot v4.12.0
Workflows and scheduled tasks arrive (both Beta), bots get their own message policy and command settings, and the Workspace assistant can now build and run things for you.
本版本带来工作流和定时任务(均为 Beta);消息策略和命令设置改为按机器人配置;工作区助手可以直接帮你搭建工作流和机器人。
Upgrade note / 升级提示:本版本包含新的数据库迁移(0054–0066),升级前请备份
data/目录(使用 PostgreSQL 时同时备份数据库);降级需要用这份备份恢复。升级时,原来流水线上的插件选择和config.yaml里的命令设置会迁移到各个机器人上,已有机器人保留原来的命令前缀(如!);新建机器人的默认命令前缀为/。This release adds database migrations 0054–0066. Back updata/(and PostgreSQL, if used) before upgrading; rolling back needs that backup. Plugin selection from pipelines and the command settings fromconfig.yamlmove onto each bot during the upgrade; existing bots keep their command prefixes (such as!), and new bots default to/.
Highlights
- Workflows (Beta) / 工作流(Beta):新的可视化工作流编辑器。工作流可以由消息和平台事件、命令、定时和 Webhook 触发,步骤包括调用 Agent 和其他处理器、平台操作、条件、循环、延时、数据表、语音和「使用 LangBot」操作。支持试运行、运行记录和版本历史,运行情况进入监控、日志和告警。工作流可以从 LangBot Space 模板市场使用和分享。A visual workflow editor. Workflows start from message and platform events, commands, schedules or webhooks, and their steps run Agents and other processors, platform actions, conditions, loops, delays, data tables, speech and "Use LangBot" operations. Test runs, run history and version history are built in, and runs show up in monitoring, logs and alerts. Workflows can be used and shared through the LangBot Space template market.
- Scheduled tasks (Beta) / 定时任务(Beta):新的定时任务页面和工作区时区设置。聊天中的 Agent 可以为当前会话设置提醒(可每 5 分钟重复),定时任务以系统事件的形式在机器人会话里执行;插件也可以注册自己的定时任务。A scheduled tasks page and a Workspace time zone. Chat Agents can set reminders for the current conversation (repeating as often as every 5 minutes); scheduled tasks act in bot conversations as system events, and plugins can register their own.
- Bot message policy and commands / 机器人消息策略与命令:每个机器人有自己的消息策略(访问控制、过滤、启用哪些插件)和命令设置(是否启用、前缀、命令处理器),可按事件路由单独覆盖;新增消息生命周期钩子,群聊可按成员区分会话。Each bot has its own message policy (access control, filters, which plugins are enabled) and command settings (on/off, prefixes, command processors), with per-route overrides. Message lifecycle hooks are new, and group chats can keep one conversation per member.
- Workspace assistant / 工作区助手:助手可以搭建和修改工作流、引导创建机器人(包括页面内扫码授权)、创建知识库,能阅读网页、公开仓库和市场插件说明,并拥有自己的沙箱,生成的文件可以下载。The assistant builds and edits workflows, guides bot setup (including in-page QR authorization), creates knowledge bases, reads the web, public repositories and Marketplace READMEs, and has a sandbox of its own whose files you can download.
- Plugins / 插件:安装时检查插件声明的 LangBot 版本兼容性;新增 Webhook 组件,插件可以接收公网回调;插件工具调用超时可配置,Runner 的工具调用使用整次运行的时间预算;Windows 上插件依赖安装支持超长路径,临时目录清理不再因杀毒软件占用而报错。Plugins' declared LangBot compatibility is enforced on install; a new Webhook component gives plugins public ingress; plugin tool-call timeouts are configurable and Runner tool calls use the run's time budget; on Windows, dependency installs work past the path-length limit and temporary-directory cleanup tolerates antivirus locks.
- Knowledge bases / 知识库:本地 Chroma 的全文和混合检索改用 BM25;pgvector 支持 2048 维向量;SeekDB 混合检索改进。Local Chroma full-text and hybrid search use BM25 scoring; pgvector supports 2048-dimensional embeddings; SeekDB hybrid retrieval improved.
- Platforms / 平台:微信公众号可视化菜单编辑器;Discord、Telegram 超长回复自动分段;飞书卡片文本提取、换行和 @ 保留;飞书文件可交给 CodexAgent;平台列表标明哪些平台允许机器人主动发消息及其限制。A visual custom-menu editor for WeChat Official Accounts; long replies are split on Discord and Telegram; Feishu/Lark keeps card text, line breaks and mentions, and can deliver files to CodexAgent; the platform list shows which platforms let a bot write first.
- Security and stability / 安全与稳定性:加强工作区隔离、凭据脱敏、TOTP 和 API Key 校验;HTTP 接口对非法输入返回 4xx;MCP 会话断开后自动重连;改进插件运行时关闭和垃圾回收。支持 Python 3.14。Stronger Workspace isolation, credential masking, TOTP and API-key checks; HTTP routes return 4xx for invalid input; MCP sessions reconnect after transport loss; cleaner plugin-runtime shutdown and garbage collection. Python 3.14 is supported.
- Community-maintained / 社区维护:Satori、Matrix、Mattermost、KOOK 及旧版单文件适配器,以及 Coze、DashScope、DeerFlow、Langflow、Tbox、WeKnora Runner 和 FastGPT、RAGFlow、Dify 知识库连接器改为社区维护,界面上会显示「社区维护」标识,功能保持不变。These adapters, Runners and knowledge-base connectors are now marked community-maintained in the UI; they keep working as before.
- SDK:
langbot-plugin由 0.7.26 固定到 0.7.29。Core pinslangbot-plugin==0.7.29.
Release verification
-
Release commit
f1154b9342acc9aea7a9344c1d702384d56a3714(master already carriesversion = "4.12.0"). The Docker gate image was built from6d52cc3ab, which differs from the release commit only underplugins/(not shipped in Core artifacts). -
Before tagging, the candidate was installed twice on fresh data directories and run through routine operations:
- Docker (
docker composewith the plugin runtime and Box, image built from the candidate commit); - uvx (
uvx --from <wheel> langbot, dependencies from PyPI: SDK 0.7.29, SQLAlchemy 2.1.9, LiteLLM 1.112.1).
Both passed: account setup and WebUI; Marketplace install of LocalAgent, EssentialCommands, WebSearch, LangRAG and HelloPlugin with permission confirmation, enabling and disabling a plugin through the bot's message policy, and uninstall; model provider and model test; a LocalAgent pipeline over HTTP Bot, including a web tool call; the
/help/cmd/func/plugincommands; knowledge-base ingestion and retrieval; creating a Skill and having the agent use it; and data, plugins, knowledge base and Skill intact after a restart. Docker ran a command in a Box sandbox container; uvx ran one through thehostBox backend. - Docker (
-
Concurrency: 8 simultaneous conversations on one model completed on Docker and on uvx. On uvx (SQLite) a first run on a heavily loaded test host had one conversation exceed the HTTP Bot 60 s reply window, and a few
database is lockedlines appeared, as with v4.11.9; a rerun at normal load passed. -
Windows: the release wheel was installed with uvx on Windows 11 (build 26300, code page 936, Python 3.11, Defender real-time protection on; SDK 0.7.29, SQLAlchemy 2.1.9) and passed the same checklist with a local mock model: plugin dependencies installed with no leftover temp directories,
!versionreported v4.12.0, 8 simultaneous conversations (8/8, nodatabase is locked), knowledge base, Skill, restart persistence, and thehostBox backend running a command and writing and reading back a file. A plugin printing Chinese and emoji kept the runtime connected, and with tokenizer downloads blocked the first LocalAgent conversation replied in about 4 s. -
Database migrations: databases created by v4.11.9 (revision 0053), v4.10.11 (0023) and v4.10.6 (0008, before workspaces) were upgraded to this release on both SQLite and PostgreSQL. Each upgrade reached revision 0066 and started twice cleanly; no rows were lost, SQLite integrity and foreign-key checks passed, the seeded provider, model, bot and pipeline read back, and existing bots kept their command prefixes. Copies of three real SQLite databases (revisions 0042, 0040 and 0008, up to 33 MB) also upgraded cleanly. Upgraded SQLite schemas match a fresh install, apart from index naming differences on databases that started before 0009, which v4.11.9 has as well.
-
Plugins: official plugins updated for this release were published to the Marketplace before this release, and a sample of them was installed on v4.11.9 to confirm they still work there.
Contributors
@RockChinQ @huanghuoguoguo @TyperBody @fdc310 @Tynwink2000 @goranai @Nikarhub @rjw245 @chuenchen309 @a251231 @Chen-dreamyu
New Contributors
@rjw245 @chuenchen309 @a251231 @Chen-dreamyu
Full Changelog: v4.11.9...v4.12.0