最新资讯
bloomberg.com Nvidia 加强东南亚芯片追踪以打击走私 thestack.technology 模型路由需求升温,Agent Router 推出开源替代方案 unite.ai Cashfree 为 AI Agent 的托管结账加入 WebMCP 工具 dev.to 我们在 DolphinBench 上测试记忆检索:纯关键词搜索暴露了自身回归 dev.to 别再把 Agent 写成 while 循环,把它建模为状态机 analyticsindiamag.com 小语言模型可能重塑企业 AI 部署方式 bloomberg.com Rightmove 与 Scout24 借 AI 产品应对低迷房市并上调展望 stackoverflow.blog 欢迎来到芯片时代:半导体制造、AI 数据中心与芯片设计的未来 www.youtube.com AI Agent 总犯同样的错:CentralAgent AI 将记忆重构为经验系统 pub.towardsai.net Netflix 科学家建议重采样 LLM 评判:5 次仅将误差棒缩小 13% pub.towardsai.net Jev 作为 LLM 前的静默层:构建提示感知的模型路由器 reddit.com OpenAI 称 Astra 仅满足 10% 安全任务标准
多元动态
登录 注册
智能体 dev.to · @Nikhil Dharman

工作流还是 agent?我用来判断的一条实用界线

原文 我的收藏

作者在构建无代码 agentic 应用平台 ByteFlow 时,长期思考工作流与 agent 的边界,并观察到团队两个方向的常见错误:把 agent 硬塞进五个节点工作流就能做好的任务,或把工作流拉伸成难以维护的决策树。他给出的判断准则是一句话:如果步骤能提前写出、且不随输入含义变化,就用工作流;只在必须阅读、判断或决策的步骤加入 agent。多数真实系统最终是“工作流内嵌一两个 agent 步骤”,而非端到端 agent。文中还列出采用 agent 前应问的五个问题。

AI推荐理由 作者在开发无代码 agentic 应用平台 ByteFlow 的过程中,总结出一条判断工作流与 agent 边界的实用准则:若步骤可预先写出且不随输入含义变化,就用工作流;只在需要阅读、判断或决策的步骤引入 agent。文章给出五个提问式检查清单,并强调多数真实系统是“工作流内嵌一两个 agent 步骤”。属于经验性方法论,无实验数据,但对 agent 应用设计有直接参考价值。

66

正文

I'm building ByteFlow, a no-code platform for agentic applications. It started as a workflow-automation tool and was later repositioned toward agents, so I've spent a lot of time thinking about where one ends and the other begins. I've also watched teams make the mistake in both directions: forcing an agent into a job a five-node workflow would do better, and stretching a workflow until it becomes an unmaintainable decision tree. This is the checklist I use now. It applies whether you build with n8n, Make, Zapier, LangGraph, a hand-rolled loop or anything else. None of it depends on a particular product. The one-sentence version If you can write the steps down in advance, and they don't change based on what the input means, use a workflow. Add an agent only for the steps that have to read, judge or decide. Most real systems end up as a workflow with one or two agentic steps inside it, not an "agent" from end to end. Five questions to ask before reaching for an agent 1. Can you draw the flowchart today? If every branch is known ("if the invoice is over X, route it to finance"), a workflow is cheaper, faster and easier to debug. Agents earn their keep when the branches depend on unstructured input, such as an email that might be a complaint, an order, or both. 2. What does a wrong answer cost? A workflow usually fails loudly: a node errors and you get an alert. An agent can fail quietly, by confidently doing something that looks reasonable and is wrong. If an action is irreversible (refunds, messages to customers, writes to a system of record), put it behind a deterministic check or a human approval step, however good the model is. 3. How much of the input is unstructured? If structured JSON comes in and structured JSON goes out, use a workflow. PDFs, voice calls, free-text chat messages and scanned forms are where an LLM step pays for itself. Even then it's usually an extraction or classification step feeding a normal workflow, not an open-ended agent. 4. Do you need the same output every time? Compliance reports, billing and anything that gets audited want determinism. If a model is involved there, pin the prompt, constrain the output to a schema, validate it, and log inputs and outputs. 5. Who maintains it in six months? A 40-node workflow full of nested IFs is also a program, just a hard-to-read one. When a workflow fills up with code nodes and string-matching branches trying to guess intent, that's usually the sign that one step should become an agentic step with a clear contract. A pattern that works: agents as bounded steps The design I keep coming back to: Triggers and plumbing stay deterministic. Webhooks, schedules, dedupe, retries and rate limits are boring, and they should stay that way. The agent gets a narrow job and a narrow toolset. "Classify this ticket and draft a reply" with read-only tools, not "handle support". The output has a schema. Validate it. If validation fails, retry once, then route to a human. Side effects go back through deterministic steps, with idempotency keys generated by the orchestrator (not by the model), so a retry doesn't send the same message twice. Everything is logged, so you can answer "why did it do that?" later. Where agents genuinely beat workflows Multi-step lookups where the next step depends on the last result. For example: "find the customer, check their recent orders, work out which one they're talking about". Voice and chat conversations. You can't flowchart a phone call. Callers interrupt, change their minds, and in India often switch languages mid-sentence. Rigid IVR-style trees handle that badly. A conversational agent with a small set of well-defined actions handles it much better. Choosing among many integrations. Once a system can reach hundreds of connectors or MCP servers, hand-wiring every path stops scaling. In general, giving a model every tool at once hurts accuracy. Filtering the toolset down to what's relevant for each step works far better. The costs people forget Tokens per run vary. A workflow costs roughly the same every time it runs. An agent's cost depends on how many reasoning and tool-call loops it takes. Cap the steps per run. Latency. Every model call adds time. For voice, latency is the user experience, so measure end to end, not per call. Evaluation. Keep a small set of real inputs with expected outcomes, and re-run them after every prompt or model change. Without that, "it seemed fine" is your test suite. Pricing units. For voice, businesses find a per-minute price much easier to budget than token maths. When you compare quotes, check whether telephony, speech-to-text and text-to-speech are included, and whether billing is per second or per started minute. That's where quotes that look similar turn out to be very different. Where the agent runs matters too With enterprise teams in India, the first question often isn't "which model?" but "where does this execute, and where does our data live?" That's why we built an on-prem sandboxed execution option and let clients use Supabase as a data store they own. The general lesson holds even if you never touch our product. Decide early where your agent executes, how isolated that environment is, and who owns the data it produces (run history, extracted fields, memory). That is far harder to retrofit than a prompt. A quick decision table Situation Start with Known steps, structured data Workflow Known steps, one messy input (PDF, email) Workflow + one LLM extraction step Open-ended conversation (voice or chat) Agent with narrow tools + deterministic side effects Irreversible actions A deterministic step or human approval, always Audited or must be repeatable Workflow, with any model step pinned, schema-validated and logged What I'd tell my past self Start with the workflow. Add an agentic step only when you catch yourself writing branches that try to guess what the input means. Keep the agent's job small, its tools few, and its side effects behind something deterministic. I'd like to hear where others draw this line, especially people running voice agents in Indian languages or deploying agents on-prem. Disclosure: I'm the founder of ByteFlow. This post was written with AI assistance and reviewed before publishing.

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容