‹ All demos
LiveLangGraph · AI agents

LangGraph: wire the agent

A puzzle game. Connect the arrows between an agent’s steps, run the tests, and learn how LangGraph agents loop, stop and wait for people.

GoalThe bot should reply once, then stop.

STARTchatbotEND

Connect the arrows

After chatbot, after it replies, go to:

Pick a target for every arrow to run the tests.

How it works

  1. 1LangGraph builds an AI app as a graph: steps (nodes) that share one state, joined by arrows (edges). Some arrows depend on what just happened.
  2. 2Each level leaves some arrows open. Pick where they go, then run the tests — you watch every test walk through your graph.
  3. 3Four levels, four patterns: a plain graph, a tool loop, a retry limit, and pausing for a person’s approval.
  4. 4No AI model is called. The steps are tiny bits of code, so the game is about the graph itself — which is exactly what LangGraph adds.

Read the post: LangGraph and Langfuse, in plain words