liveBook · Manning

Flow engineering

As explained in The Art of AI Product Development

Flow engineering is the deliberate design of an explicit sequence of operations for an AI workflow rather than relying entirely on autonomous planning.

Flow engineering deliberately hardcodes part of an AI workflow instead of leaving every step to autonomous planning. It trades some adaptability for greater speed and reliability, making it useful when planning mistakes are costly or workflows are well established. section 9.2.2 section 9.3.1

Use explicit flow engineering when:

  • The workflow follows a known domain-specific pattern, such as an established coding process. section 9.2.2
  • Long-horizon planning, unexpected errors, or unreliable tool calls make online planning difficult to recover. section 9.3.1
  • Speed and predictable execution matter more than maximum agent adaptability. section 9.2.2 section 9.3.1

A fixed flow does not eliminate reasoning. It can assign reasoning to defined stages, combine decomposition with reflection, and use prompt chaining, parallelization, or routing where those patterns fit. The design should also identify actions that need confirmation, rollback mechanisms, or audit logs. section 9.2.2

A controlled finance workflow

An expense-analysis agent can follow a predefined sequence: flag transfers above a threshold, cross-check transaction history, and require multistep verification before an irreversible action. Human approval becomes an explicit workflow step rather than an optional response to uncertainty. section 9.2.2

Figure 9.11 Agents can use different planning methods.
A diagram of a business process

AI-generated content may be incorrect.

Compare planning methods before deciding which parts of an agent workflow should remain adaptive and which should become explicit. section 9.2.2

How The Art of AI Product Development covers it

How deep it goes
Explains the adaptability trade-off and planning rationale, but stops short of implementation details or a complete workflow specification.
Examples
Uses established coding workflows, product-roadmap planning, and finance-agent approval sequences as concrete applications.
What it assumes
Assumes familiarity with agent workflows and planning, while contrasting explicit execution with online planning.
What you can do after
Operate/configure an agent workflow by fixing selected steps, assigning safeguards, and choosing where adaptive planning remains worthwhile.
How it connects
Connects to agent workflows, online planning, decomposition, reflection, prompt chaining, parallelization, routing, rollback mechanisms, and audit logs.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Art of AI Product Development. The section links point to the parts of the book it draws on.