46 lines
2.4 KiB
Markdown
46 lines
2.4 KiB
Markdown
---
|
||
title: "n8n调用openclaw/hermes agents的工作流架构"
|
||
type: source
|
||
tags:
|
||
- "clippings"
|
||
date: 2026-04-20
|
||
---
|
||
|
||
## Source File
|
||
- [[Agent/n8n调用hermes agents的工作流架构]]
|
||
|
||
## Summary(用中文描述)
|
||
- 核心主题:如何通过 n8n 工作流编排器调用 Hermes Agent,实现多 Agent 自动化协作
|
||
- 问题域:AI Agent 与工作流自动化平台的无代码集成
|
||
- 方法/机制:利用 Hermes 内置的 OpenAI 兼容 API Server,无需额外中间件即可被 n8n HTTP Request 节点直接调用;通过 Profile 机制实现多 Agent 端口隔离;通过 X-Hermes-Session-Id 实现多轮对话上下文保持
|
||
- 结论/价值:提供了一套原生、原生集成的多 Agent 工作流编排方案,可零代码实现调研→写作→编码的 Agent 分工协作
|
||
|
||
## Key Claims(用中文描述)
|
||
- Hermes Agent 内置了 OpenAI 兼容的 API Server,无需额外代码即可暴露为 HTTP 端点
|
||
- 每个 Agent 可通过独立 Profile 运行在不同端口、配置独立 API Key,实现隔离与分工
|
||
- n8n 通过标准 HTTP Request 节点即可调用 Hermes,接口格式完全兼容 OpenAI Chat Completions
|
||
- 通过 X-Hermes-Session-Id header 可在 n8n 多步工作流中保持 Agent 会话上下文
|
||
- 该方案完全原生支持,不需要任何额外中间件
|
||
|
||
## Key Quotes
|
||
> "Hermes Agent 内置了 OpenAI 兼容的 API Server,完全不需要额外写任何代码,直接配置开启就行" — 方案核心价值
|
||
> "同一个工作流里的多次调用会共享上下文,非常适合需要多步推理的任务链" — X-Hermes-Session-Id 的应用场景
|
||
|
||
## Key Concepts
|
||
- [[OpenAI兼容API]]:Hermes API Server 暴露的标准 OpenAI Chat Completions 接口格式
|
||
- [[多Profile隔离]]:Hermes 的 profile 机制为每个 Agent 分配独立端口和密钥
|
||
- [[X-Hermes-Session-Id]]:v0.7.0+ 支持的会话保持 header,使多请求共享上下文
|
||
- [[工作流编排]]:n8n 作为自动化平台对多个 Agent 的协调与串联
|
||
|
||
## Key Entities
|
||
- [[HermesAgent]]:NousResearch 开源的 AI Agent 框架,内置 API Server 功能
|
||
- [[n8n]]:开源工作流自动化平台,支持 HTTP Request 节点调用外部 API
|
||
|
||
## Connections
|
||
- [[HermesAgent]] ← exposes ← [[OpenAI兼容API]]
|
||
- [[n8n]] ← calls via HTTP ← [[HermesAgent]]
|
||
- [[多Profile隔离]] ← enables ← 多Agent并发协作
|
||
|
||
## Contradictions
|
||
- 无已知冲突内容
|