AI Workflow Patterns

Four Ways to Chain Model Calls

Most useful AI systems are not one prompt. They are several model calls arranged in a fixed pattern. Four patterns cover most business needs.

Ranjit Nethi

·

AI Workflow Patterns

The short version

  • A workflow is a fixed sequence of model calls and code, designed by a person.
  • Four patterns cover most needs: chain the steps, route by type, run steps in parallel, or let one model split work among others.
  • Workflows are predictable and easy to test. Start here before you consider an agent.

The idea

In a workflow, the path is set in code. The model does the language work at each step, and the designer decides the order.

Prompt chaining. The output of one step is the input of the next: extract, then check, then draft. Each step is simple, and you can place a check between steps.

Routing. A first step classifies the request and sends it to a specialized path. Billing questions go to one prompt and technical questions to another.

Parallelization. Several calls run at the same time, either on different parts of a task or on the same task for a vote. Results are combined at the end.

Orchestrator and workers. One model breaks a task into parts, hands each to a worker call and assembles the result. The parts are decided at run time, and the overall shape stays fixed.

Think of an assembly line. Chaining is stations in a row. Routing is a sorter that sends each item to the right line. Parallel work is several stations working at once. An orchestrator is a supervisor who splits a job among the crew.

  1. Chain: step after step
  2. Route: sort, then handle
  3. Parallel: several at once
  4. Orchestrate: split, assign, combine

A fifth pattern, evaluator and optimizer, pairs a call that drafts with a call that critiques, and loops until the draft passes.

An example

A distributor automates responses to requests for quotation. A router separates standard catalogue requests from custom ones. For standard requests, a chain extracts the line items, looks up prices with code, and drafts the quote. Three parallel checks then review the draft for pricing errors, missing terms and tone. Custom requests go to a person, with the extraction already done.

Common mistakes

  • One giant prompt that tries to do every step.
  • No checks between steps, so an early error flows to the end.
  • Using a model for steps that are plain code, such as price lookup.
  • Jumping to an agent when the process has a known, fixed path.

What to do this week

  1. Draw one process as boxes and arrows. Mark which pattern each part matches.
  2. Identify the steps that are pure code and keep the model out of them.
  3. Add one check between two steps where errors are costly.

The terms, in plain language

TermWhat it means
WorkflowA fixed sequence of model calls and code
Prompt chainingFeeding one step’s output into the next
RoutingClassifying a request and sending it down the right path
OrchestratorA model call that splits work and combines results

Section 5.1 of the AI Engineering Guide · Last reviewed November 2026

All parts of the guideChecklists and templates

About the author

Ranjit Nethi leads AI and data for commercial operations at a global industrial manufacturer. He writes about the operating model that turns AI pilots into results finance will sign. Kellogg Executive MBA; MS in Computer Science. This site is his own perspective and view, with no affiliation with any organization.