61 lines
1.9 KiB
Markdown
61 lines
1.9 KiB
Markdown
---
|
||
tags: [实体]
|
||
created: 2026-09-14
|
||
updated: 2026-09-14
|
||
sources: [raw/notes/2026-09-14-n8n调用hermes-agents工作流架构.md]
|
||
---
|
||
|
||
# n8n
|
||
|
||
> 开源工作流自动化平台,通过 HTTP Request 节点把多个 Agent 串成业务流程。
|
||
|
||
## 简介
|
||
|
||
n8n 是一个可视化的工作流 / 自动化编排工具。在这个知识库的语境里,它的角色是**调用方**:用 HTTP Request 节点去请求 [[Hermes API Server]],从而把 [[Hermes Profile]] 提供的多个专职 Agent 组织成一条业务流水线。
|
||
|
||
## 关键信息
|
||
|
||
- **类型**:工具 / 平台
|
||
- **领域**:工作流自动化、系统集成
|
||
- **相关概念**:[[Hermes Agent]]、[[Hermes API Server]]、[[Hermes Profile]]
|
||
- **用到的节点**:HTTP Request
|
||
|
||
## 详细内容
|
||
|
||
### 调用 Hermes Agent 的节点配置
|
||
|
||
| 字段 | 值 |
|
||
|---|---|
|
||
| Method | `POST` |
|
||
| URL | `http://<host>:8643/v1/chat/completions` |
|
||
| Header: Authorization | `Bearer <该 profile 的 key>` |
|
||
| Header: Content-Type | `application/json` |
|
||
| Header: X-Hermes-Session-Id | 可选,用于跨节点共享上下文 |
|
||
|
||
Body 用 n8n 表达式把上游节点的数据注入:
|
||
|
||
```json
|
||
{
|
||
"model": "agent-researcher",
|
||
"messages": [
|
||
{ "role": "system", "content": "你是一个专门负责网络调研的Agent,请搜索并总结信息" },
|
||
{ "role": "user", "content": "{{ $json.task }}" }
|
||
]
|
||
}
|
||
```
|
||
|
||
因为服务端是 OpenAI 兼容协议,n8n 侧不需要任何自定义 SDK 或适配节点,一个通用 HTTP Request 节点即可。
|
||
|
||
### 在本知识库中的延伸
|
||
|
||
nexus 笔记里还有一份同构素材描述了 n8n 调用另一 Agent 平台的方案,可作为跨平台横向对比的素材。
|
||
|
||
## 不同素材中的观点
|
||
|
||
- [[wiki/sources/2026-09-14-n8n调用hermes-agents工作流架构]]:n8n 处于架构的入口端,向下扇出到多个端口的 Agent 实例。
|
||
|
||
## 相关页面
|
||
|
||
- [[Hermes API Server]]
|
||
- [[多 Agent 工作流编排]]
|