Files
nexus/wiki/concepts/工作流编排.md
2026-05-03 05:42:12 +08:00

39 lines
1.3 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: "工作流编排"
type: concept
tags: []
last_updated: 2026-05-02
---
## Definition
通过工作流自动化平台(如 n8n协调和串联多个 AI Agent使它们在统一的流程中有序执行、分工协作共同完成复杂任务如调研→写作→编码的完整链路
## Details
- 编排层负责:触发条件、路由决策、数据传递、结果聚合
- 典型模式n8n HTTP Request 节点分别调用 researcher/writer/coder 三个 Agent
- 优势:零代码集成、无需额外中间件、完全原生支持
- 挑战:会话保持(通过 `[[X-Hermes-Session-Id]]` 解决)、错误处理、超时管理
## Architecture
```
n8n Workflow
├─ [HTTP Request] → localhost:8643 (agent-researcher) → 搜索/调研
├─ [HTTP Request] → localhost:8644 (agent-writer) → 内容生成
└─ [HTTP Request] → localhost:8645 (agent-coder) → 代码任务
```
## Related
- [[n8n]] — 工作流编排平台
- [[HermesAgent]] — 被编排的 Agent
- [[多Profile隔离]] — 多 Agent 并发协作的基础
- [[X-Hermes-Session-Id]] — 会话上下文保持机制
## Aliases
- Workflow Orchestration
- Multi-Agent Orchestration
- Agent Coordination
- 工作流自动化