logo

Command Palette

Search for a command to run...

Workflows and Agents

Friday, Aug 1
Tech

In the last post, We laid out the two ends of a spectrum: the rigid Workflow and the dynamic Agent. We framed it as a choice based on trade-offs. But the most interesting work happens not at the poles, but in the vast space in between.

The real question isn't "Workflow vs. Agent." It's "What's the right blend of a workflow and an agent?"

In this post, I want to share the mental framework I'm developing to answer that question and explore the powerful hybrid systems that are emerging from this new way of thinking.

Decision Framework: When to Lean Which Way?

QuestionLean Workflow when…Lean Agent when…
Do We already know a solid procedure?The path is a clear "Yes."The path is "No / only partially" known.
How tight are the SLA & compliance needs?Need millisecond responses & strict audit trails.Timing is flexible & the task is exploratory.
What’s the cost of a bad step?High (e.g., it moves money or deletes data).Moderate, and mistakes are recoverable.
Does the domain change often?Rarely. The rules are stable.Daily, or the environment is unpredictable.

The Axis of Autonomy

On the far left of the axis, We have the fully deterministic Workflow. It's predictable and reliable. On the far right, I have the non-deterministic Agent, which is creative and autonomous.

(Diagram Idea: A horizontal line. The left end is labeled "Workflow (Deterministic & Reliable)". The right end is labeled "Agent (Non-Deterministic & Flexible)". The space in between is labeled "Hybrid Systems".)

The most robust and useful systems we have right now are Hybrid Systems that intentionally pick a spot somewhere in the middle of this axis.

Architectural Patterns for Convergence: The Blueprints

A hybrid system combines the reliability of workflows with the adaptability of agents. There are two main ways to build one:

  • Sequential Orchestration (The Assembly Line): This is the most straightforward pattern. We can think of it as a digital assembly line where specialized agents are chained together in a predefined, linear sequence. Each agent does its job and passes its work to the next one down the line.
  • Concurrent Orchestration (The Expert Panel): This pattern is like asking a panel of experts for their opinion all at once. A request is broadcast to multiple agents who work in parallel, each tackling the problem from a different angle.
  • Handoff Orchestration (The Smart Router): I think of this as an intelligent dispatcher. An initial "triage" agent receives a task, figures out what it's about, and then dynamically "hands it off" to the most appropriate specialist agent in my fleet.
  • Group Chat Orchestration (The Team Meeting): This is the most advanced pattern, and it's the one that feels the most like the future. It's like putting a team of agents into a shared chat room to solve a problem together, often with a "manager" agent facilitating the conversation.

New Mental Model: The Fleet and the Assembly Line

  • Workflows are the Backbone: The workflow is the stable, predictable "assembly line". We can use it for the reliable and auditable parts of the process—initial data intake, pre-processing, and managing the final state of a task (like closing a ticket).
  • Agents are the Specialized Artisans: Along this assembly line, We have "fleet" of skilled, adaptable agents. We can call on these specialists to perform the complex or custom steps—like complex reasoning, handling messy data, or engaging in a conversation.

Ideally, an all-powerful agent capable of handling all workflows would be sufficient for a system, but that's not possible yet. So, we need to find a sweet spot to minimize the trade-offs according to our requirements.

Putting it up together

Understanding Agents and Workflows from first principles help design better Agentic systems. How can you design workflows to resemble Agents? Finding the sweet spot is the key to building robust and useful systems.