lb.Laurie Bi
All insights

Designing AI workflows
with LangGraph.

State, nodes, edges, and human review—and where LangChain fits today.

Agent architectureWorkflow designAI product thinking

A useful AI workflow needs more than a good answer. It needs a clear path for reaching that answer, handling missing information, and knowing when a person should step in.

Today’s learning helped me think about agent architecture as a product-design question: what should happen next, what needs to be remembered, and what should happen when a step fails?

Where LangChain and LangGraph fit

The distinction is more useful when framed as levels of control. LangChain offers ready-made agent patterns and model/tool integrations. LangGraph provides lower-level orchestration for workflows that need custom routing, state, and pauses. Current LangChain agents are built on LangGraph, so they can benefit from its execution and persistence capabilities. [1]

HIGHER-LEVEL AGENT FRAMEWORK

LangChain

Common agent loops and integrations

UNDERLYING ORCHESTRATION RUNTIME

LangGraph

Custom control flow, state, and resumable execution

A practical starting point
Product needStarting point
A common assistant that calls toolsLangChain’s higher-level agent abstraction
Explicit routing, loops, or unusual handoffsA custom LangGraph workflow
Human review and persistenceAvailable through the LangGraph runtime; configure the storage and review behavior needed
A workflow using another model/tool stackLangGraph can also be used independently of LangChain

LangChain is therefore more than a linear pipeline, and LangGraph can orchestrate a single agent or a workflow without multiple agents. I would choose the abstraction that gives the team enough control for the task. [2]

Three building blocks

In LangGraph’s Graph API, a workflow is described through state, nodes, and edges. [3]

01

State

The information the workflow carries: the question, document, evidence, progress, and review status.

02

Nodes

The steps that do the work. A node might validate a file, call a model, or check a result.

03

Edges

The rules for what happens next, including conditional routes and loops.

Give each step a clear responsibility

Separate validation, extraction, analysis, and review so each can be understood and tested. Ordinary branching logic still matters; the graph makes the overall flow and its state easier to inspect.

Make the state easy to understand

Use descriptive fields and keep only the information later steps need. Agree how updates should replace or combine existing values, particularly when steps run in parallel. Clear structure matters more than insisting that every state be completely flat.

Explore a document-review workflow

Imagine a tool that reads a financial document and prepares an evidence-backed summary. If evidence is missing, the workflow pauses for clarification and then returns to analysis.

A document, from intake to draftIllustrative example · Select a scenario and step through it
STEP 1 OF 5

Validate document

Check that the document can be processed before starting analysis.

Document
Received
Evidence
Not checked
Review
Not needed
Summary
Not started

This illustration explains control flow. It does not run a model or process an uploaded document.

The key design decision is the route taken when the evidence is insufficient. A defined pause gives someone a chance to review the context before the workflow continues. LangGraph supports these pauses through interrupts and checkpointed state. [5]

Design for reliability

  • Plan for failure. Set timeouts, limit retries, and provide a useful fallback. Decide which failures can be retried and which need human attention.
  • Make resuming safe. Configure a persistent checkpointer when a workflow must survive a restart. Checkpoints capture a thread’s progress; longer-term facts belong in a separate store. In-memory state alone is not durable across restarts. [4]
  • Test the paths, not just the answer. Check individual steps, branches, failed tool calls, and pause/resume behavior. Model outputs can vary, so repeated evaluation matters even when state handling is consistent.
  • Keep expensive work visible. Measure latency and model/tool usage. Cache suitable repeated operations, and avoid caching information that must remain fresh.

For actions with external consequences, I would also ask how the team will prevent a retry from duplicating the action. A successful resume should preserve both the workflow’s progress and the intended business behavior.

My product takeaway

For financial-services AI products, the interesting questions are practical: can users inspect the evidence, can the workflow acknowledge missing information, and can a reviewer understand why it paused?

I would define those behaviors before adding more agents. A smaller workflow with clear responsibilities is easier to evaluate and improve. Graph architecture helps organize the process; answer accuracy still needs to be measured.

Start with the user’s decision. Then make the steps, evidence, and handoffs clear enough to check.

Sources & further reading

Refined from my study notes and checked against the official documentation on October 2, 2026. The document-review scenario is illustrative; product takeaways reflect my interpretation.

  1. LangChain overview
  2. LangGraph overview
  3. Graph API: state, nodes, and edges
  4. Persistence: checkpointers and stores
  5. Interrupts and human review