# LangGraph

> A free kit of code for making AI agents as a map of steps.

**Field:** Software Development  
**Category:** AI Engineering  
**Also known as:** LangGraph Framework

## Think of it like

Think of it like a board game map. You move from square to square, and some arrows send you back.

## Definition

LangGraph is an open-source framework for building agents as a graph of steps. Each step is a node, such as calling the model or running a tool. Edges link the nodes and can loop back, so the agent can repeat a step until a check passes. A shared state object carries the work from node to node and can be saved, so a run can pause for a human and resume later. It comes from the team behind LangChain.

## Example

Jack builds a research agent in LangGraph with three nodes: plan, search and write. A loop sends it back to search until it has enough sources.

## Why it matters

It gives you clear control of an agent's path, with loops, pauses and saved state. One big loop is much harder to follow.

## Common mistake

Drawing a graph for a task that is one straight line. A plain workflow or a single call is simpler.

## Three principles

- **Nodes and edges.** Steps and links.
- **Loops allowed.** Repeat until done.
- **Saved state.** Pause and resume.

## Related terms

- [LLM Framework](https://learn.benibix.com/term/development/llm-framework)
- [LangChain](https://learn.benibix.com/term/development/langchain)
- [Agent Loop](https://learn.benibix.com/term/ai/agent-loop)
- [AI Workflow](https://learn.benibix.com/term/ai/ai-workflow)
- [Human-in-the-Loop](https://learn.benibix.com/term/ai/human-in-the-loop)

## Told apart from

- [LangChain vs LangGraph](https://learn.benibix.com/compare/langchain-vs-langgraph): People often think LangGraph is just the new name for LangChain, but they are two different tools made by the same team. LangChain gives the parts: links to models, prompts, tools and search, joined in straight chains. LangGraph sets out steps as a graph with loops, saved state and pauses, which is what agents need. Many projects use both.

![A small graph of steps: plan, act and check. An edge loops from check back to act until the work is done, and a shared state box is passed along.](https://learn.benibix.com/diagrams/dev-langgraph.svg)

---

Source: https://learn.benibix.com/term/development/langgraph
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
