Build AI Agents with LangGraph

You already know an agent as a loop of model calls and tool calls. Here you build one as a graph: an order support assistant for a made-up shop that files a customer message, looks the order up with a tool and writes the reply, while unrelated messages go to a person. Each lesson adds one working part, and every part runs on a scripted fake model too, so you can check your work without a key. The course stops at graph basics: no approval steps, crash recovery or deployment.

What this course covers

  1. Your First Graph: State, Nodes and Edges: Explain what a graph makes explicit that a hand-written loop hides, and build, compile and invoke a small graph whose nodes read and update a shared state.
  2. Put a Model in a Node: Call a model from a node, keep the conversation as a growing list of messages in the state, and explain how a reducer decides what happens to a key when a node updates it.
  3. Route with Conditional Edges: Add a branch to a graph with a conditional edge whose routing function reads the state, and draw the graph to confirm every path.
  4. Give the Graph a Tool: Give a graph a tool the model can call, wire the loop between the model node and the tool node, and explain what ends the loop.
  5. Watch It Run: Streaming and Saved State: Stream a run to see each step as it happens, keep a conversation going across two runs with a checkpointer and a thread id, and read the saved state of that thread.
  6. Test the Graph Without a Live Model: Write tests for a graph that pass on every run: single nodes, the routing function, and whole runs on a scripted fake model.