LangGraphLangGraph 1.2 · Python 3.10+
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
37 small wins to finish your pathNext lesson

What you are going to build

By the end of this course you will have built a support agent that reads a message, decides what to do, looks things up with tools, remembers the conversation, and stops to ask you before doing anything it cannot undo.

The shape of every program you will write
START. Where a run begins. You do not write this, LangGraph gives it to you.Step 1 of 4

You will build it one piece at a time. A lesson adds a few lines, runs them, and explains what changed, so you are never handed a screen of code to decode. Every output you see on this site was captured by really running the code above it.

Everything in this course, and where it is going
The piecesa state, one dictionarynodes, ordinary functionsedges, what runs nextMaking choicesbranch on the stateloop until it is donerun two things at onceAdding a modelmessagestoolsthe agent loopRememberingone conversationfacts about a personStaying in controlpause and ask a humanwatch it rungo back in timeWhat you builda support agenta documentation assistantLangGraph

The whole course runs for free. No API key, no signup, no bill. Lessons 1 to 13 are plain Python. In lesson 14 you write a stand-in model, about twenty lines, that behaves like a real one everywhere it matters. Lesson 30 shows the two lines that swap in a real model when you want one.

The word agent just means a program that decides its own next step instead of following a fixed list. That is the thing you are working towards.

What you need

  • Python 3.10 or later.
  • Comfort with functions and dictionaries. Nothing more.
bash
pip install langgraph langchain

Two packages. LangGraph runs your graph, and LangChain brings the models, the message types and the tools. LangGraph installs part of LangChain on its own, but not the part lesson 29 needs, so it is easier to take both now.

The one idea behind all of it

A LangGraph program is a set of Python functions that pass one dictionary between them. That is genuinely all it is.

You write the functions. You say which one runs after which. LangGraph runs them and carries the dictionary along.

So why not just write the functions yourself?
Because the functions can point backwards, a program can repeat a step until the job is done. A straight line of code cannot do that without becoming a mess.
Back toAll frameworks

Every expert started right here.