Files
nexus/wiki/concepts/Topic-Based-Routing.md

40 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Topic-Based Routing"
type: concept
tags: [Routing, Telegram, Multi-Context, OpenClaw]
sources: [multi-channel-assistant]
last_updated: 2026-04-22
---
# Topic-Based Routing
## Definition
Topic-Based Routing基于话题的路由是一种通过标签/话题机制将用户请求分发到不同上下文处理单元的设计模式。在 [[multi-channel-assistant]] 中,通过 Telegram Topic 实现多上下文隔离。
## Mechanism
用户在不同 Telegram Topic 中发送消息OpenClaw 根据 Topic 标签识别上下文域:
| Topic | 处理的上下文 |
|-------|------------|
| `config` | 系统设置、调试 |
| `updates` | 日报摘要、定时提醒、日历 |
| `video-ideas` | 内容管线、研究 |
| `personal-crm` | 联系人和会议准备 |
| `earnings` | 财务追踪 |
| `knowledge-base` | 知识库存取与检索 |
## Key Properties
- **上下文隔离**:每个 Topic 携带独立的记忆上下文,不会跨 Topic 污染
- **单一入口**:用户只需记住 Telegram 一个入口,不需要切换多个 App
- **意图推断**:通过 Topic 标签帮助 LLM 理解用户当前关注域,降低提示词复杂度
## Related Concepts
- [[Multi-Tool Integration]] — Topic Routing 是触发不同工具集的前提
- [[Single Control Plane]] — Telegram 作为统一控制平面的实现方式
- [[Scheduled Reminder]] — `updates` Topic 承载主动提醒推送
## Connections
- [[multi-channel-assistant]] — Topic-Based Routing 的应用场景
- [[OpenClaw]] — 路由逻辑的执行引擎
- [[Telegram]] — 路由机制的载体平台