---
title: "Discussion on \"From LangChain to LangGraph: When Agents Need State Machines\" | Hashnode"
description: "Discussion on \"From LangChain to LangGraph: When Agents Need State Machines\". LangChain's AgentExecutor handles simple loops — but stateful branching, long-running tasks, and human-in-the-loop require LangGraph's graph model."
url: "https://hashnode.com/posts/from-langchain-to-langgraph-when-agents-need-state-machines/69c7f504257e620abbb4862d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [From LangChain to LangGraph: When Agents Need State Machines](https://abstractalgorithms.hashnode.dev/from-langchain-to-langgraph-when-agents-need-state-machines?utm_source=hashnode&utm_medium=feed)

LangChain's AgentExecutor handles simple loops — but stateful branching, long-running tasks, and human-in-the-loop require LangGraph's graph model.

Mar 28 · 18 min read · abstractalgorithms.hashnode.dev  
Updated Jun 18  
Read the article

-   [#langchain](https://hashnode.com/tag/langchain)
-   [#langgraph](https://hashnode.com/tag/langgraph)
-   [#python](https://hashnode.com/tag/python)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#state-machines](https://hashnode.com/tag/state-machines)

## Written by

[Abstract Algorithms](https://hashnode.com/@abstractalgorithms)

@abstractalgorithms

  
[View profile](https://hashnode.com/@abstractalgorithms)

Exploring the fascinating world of algorithms, data structures, and software engineering through clear explanations and practical examples.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
