AdvancedAbout 17 min

    LangGraph

    Read the full article on Substack

    6 min read.

    Walk a stateful agent graph, see how channel reducers merge state, route with conditional edges and cycles (with a recursion limit), and get durable execution: checkpoints, resume, and human-in-the-loop.

    Think of it this way: LangGraph is a board game: the state is the board, nodes are squares that change it, and the dice (router) read the board to decide where you go next — sometimes looping back, sometimes landing on FINISH.

    needs toolloopdoneagentroutertoolsEND
    state.messages
    user: population of the capital of France?

    Press Run to send the question through the graph.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    The parts of a LangGraph app

    Sort

    Sort each concept by the role it plays in the graph.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Does work

    Drop items here

    Decides what runs next

    Drop items here

    Carries data between steps

    Drop items here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    What does a conditional edge in LangGraph do?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going