Files
nexus/wiki/concepts/Workflow-vs-Agent.md

1.3 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
Workflow vs Agent concept
workflow
agent
ai
自动化
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
  • n8n:同时支持 Workflow 和 Agent 构建