Graph-Based Agentic AI with LangGraph: Workflow Pathways for Long-Running Stateful Business Processes
Daniel Pearson, Sidney Shapiro, Emiliano Sebastian Gonzalez Venegas, Sanad Al-Khatib, Aurora Pinzón Arzola
Abstract
This paper is a practitioner guide to graph-based workflow pathways for long-running, stateful, multi-step generative AI systems in business processes. Rather than treating LangGraph, a low-level orchestration framework for stateful agents, as a model-quality benchmark target, we present three executable recipes -- SQL analytics with repair loops, agentic retrieval-augmented generation with evidence gating, and human-in-the-loop policy review with interrupt and checkpoint recovery -- to show how typed state, conditional routing, deterministic tools, retries, interrupts, checkpoints, and traces fit together. LangGraph is positioned by workflow-complexity fit, not as a universal default: simpler ReAct-style or plain SDK loops may be better for basic tool use, schema-first tools for structured extraction and validation, and DSPy when prompt or program optimization is the main goal. Each recipe explains when LangGraph is worth the extra structure and which implementation patterns make routes, pauses, and audit trails explicit product behavior rather than hidden prompt logic.
Create a lesson
Metadata
- Categories
- cs.AI, cs.SE
- Comments
- 25 pages, 2 figures. With ancillary code
Related papers
EvoLink-Bench: A Benchmark for Evaluating Self-Evolving Agents in Long-Horizon Interdependent Task Streams
Shared title terminologycs.AIWei Chen, Xiaodong Lu, Weihao Shen et al.
FIG-MAC: A Fine-grained Inspiration Graph Empowered Multi-Agent Collaboration for Automated Scientific Hypothesis Generation
Shared title terminologycs.AISiyuan Chen, Yuping Gao, Tai Huang et al.
Partial Routing: Trace-Tuned Delegation for Resource-Efficient Agentic Workflows
Shared title terminologycs.AISiddharth Arya, Kshitij Jain
The Control-Flow Tax: Specialized Decision Routing for LLM Agent Workflows
Shared title terminologycs.AIZhikai Cheng, Shuanghu Wang, Li Jiang
ExpGuard: Guarding Long-Horizon LLM Agents against Corrupted Experience
Shared title terminologycs.AIYuzhou Chen, Licheng Pan, Zhixuan Chu et al.
An LLM-Driven Workflow for Automated Process Control Strategy Generation and Tuning from Dynamic Process Models
Shared title terminologycs.AIAri Luna Rueda, Eike Cramer, Klaus Hellgardt et al.