LangGraph and LangChain
Working together.
LangGraph and LangChain aren't rivals. They're layers. LangChain gives you models, prompts, tools, and retrievers. LangGraph gives you control of the flow. Most real apps use both.

- Not rivals
- Layers
- Most apps use both
The layers
From the bottom up. LangChain's building blocks. Models, tools, and retrievers. Then create agent, a ready made agent, which is itself a LangGraph graph. Then your own LangGraph graphs, for full control. And LangSmith, across everything, for tracing and testing.
- LangSmith: tracing, evals
- Your LangGraph graphs
- create_agent
- Models, tools, retrievers
How they fit
Use LangChain pieces inside your nodes. Use create agent for standard agents, and add them to your graphs as nodes. And use your own graph for the overall flow. You did exactly this in the support desk.
| key | value |
|---|---|
| Inside nodes | LangChain pieces |
| Standard agents | create_agent |
| Overall flow | your graph |
| Example | the support desk |
Summary
LangChain provides the building blocks, and LangGraph controls the flow. Together, they cover simple and complex apps. Next, what to learn after this course.
Key takeaways- Building blocks
- Control of the flow
- Use both