Template Applications¶
Templates are open source reference applications designed to help you get started quickly when building with LangGraph. They provide working examples of common agentic workflows that can be customized to your needs.
You can create an application from a template using the LangGraph CLI.
Requirements
- Python >= 3.11
- LangGraph CLI: Requires langchain-cli[inmem] >= 0.1.58
Install the LangGraph CLI¶
Or via uv
(recommended):
Available Templates¶
Template | Description | Python | JS/TS |
---|---|---|---|
New LangGraph Project | A simple, minimal chatbot with memory. | Repo | Repo |
ReAct Agent | A simple agent that can be flexibly extended to many tools. | Repo | Repo |
Memory Agent | A ReAct-style agent with an additional tool to store memories for use across threads. | Repo | Repo |
Retrieval Agent | An agent that includes a retrieval-based question-answering system. | Repo | Repo |
Data-Enrichment Agent | An agent that performs web searches and organizes its findings into a structured format. | Repo | Repo |
🌱 Create a LangGraph App¶
To create a new app from a template, use the langgraph new
command.
Next Steps¶
Review the README.md
file in the root of your new LangGraph app for more information about the template and how to customize it.
After configuring the app properly and adding your API keys, you can start the app using the LangGraph CLI:
Or via uv
(recommended):
Missing Local Package?
If you are not using uv
and run into a "ModuleNotFoundError
" or "ImportError
", even after installing the local package (pip install -e .
), it is likely the case that you need to install the CLI into your local virtual environment to make the CLI "aware" of the local package. You can do this by running python -m pip install "langgraph-cli[inmem]"
and re-activating your virtual environment before running langgraph dev
.
See the following guides for more information on how to deploy your app:
- Launch Local LangGraph Server: This quick start guide shows how to start a LangGraph Server locally for the ReAct Agent template. The steps are similar for other templates.
- Deploy to LangGraph Cloud: Deploy your LangGraph app using LangGraph Cloud.