Auto-sync: wiki-ingest 3 sources (2026-04-16)
This commit is contained in:
37
wiki/concepts/Workflow-vs-Agent.md
Normal file
37
wiki/concepts/Workflow-vs-Agent.md
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "Workflow vs Agent"
|
||||
type: concept
|
||||
tags: [workflow, agent, ai, 自动化]
|
||||
sources: []
|
||||
last_updated: 2025-03-06
|
||||
---
|
||||
|
||||
## Definition
|
||||
Workflow(工作流)和 Agent(智能体)是 AI 自动化系统的两种核心范式,本质区别在于执行逻辑是预定义还是动态决定。
|
||||
|
||||
## 核心对比
|
||||
|
||||
| 维度 | Workflow | Agent |
|
||||
|------|----------|-------|
|
||||
| 执行逻辑 | 预定义,固定路径 | LLM 动态决定 |
|
||||
| 工具选择 | 人工预设 | LLM 自主选择 |
|
||||
| 适应性 | 固定输入→固定输出 | 动态输入→自适应输出 |
|
||||
| 上下文 | 无记忆 | 可带 Memory |
|
||||
| 调试难度 | 低(确定性) | 高(非确定性) |
|
||||
| 适用场景 | 规则明确的任务 | 需要判断的任务 |
|
||||
|
||||
## 典型案例
|
||||
- Workflow:每天 9 点自动抓取 RSS → 格式化 → 发送邮件(完全固定)
|
||||
- Agent:用户提问 → LLM 判断需要哪些工具(搜索/数据库/计算器)→ 动态调用 → 返回答案
|
||||
|
||||
## N8N 中的体现
|
||||
- Workflow = Trigger + Action/Utility/Code 节点串联
|
||||
- Agent = Advanced AI 节点,内置 LLM 决策 + Memory
|
||||
|
||||
## Related Concepts
|
||||
- [[Agentic System]]:Agent 的系统级定义
|
||||
- [[Memory in AI Agent]]:Agent 区别于 Workflow 的关键能力
|
||||
- [[N8N Workflow]]:Workflow 在 N8N 中的实现
|
||||
|
||||
## Related Entities
|
||||
- [[n8n]]:同时支持 Workflow 和 Agent 构建
|
||||
Reference in New Issue
Block a user