Learn how memory works and how the three types of memory – semantic, episodic, and procedural – are used in agentic workflows.
Long-Term Agentic Memory With LangGraph
Instructor: Harrison Chase
Earn an accomplishment with PRO

- Intermediate
- 1 hour 4 mins
- 7 Video Lessons
- 5 Code Examples
- 1 Graded Assignment PRO
- Earn an accomplishment with PRO
- Instructor: Harrison Chase
LangChain- Learn more aboutMembership PRO Plan
What you'll learn
Build a personal email agent with routing, writing, scheduling tools to automatically ignore, respond to, or notify about incoming emails.
Add long-term memory to your agent by adding facts, user preferences, and evolving system prompts to a memory store that can be searched for on-going interactions.
About this course
Learn to build an agent with long-term memory in Long-Term Agentic Memory with LangGraph! Created in partnership with LangChain, and taught by its Co-Founder and CEO, Harrison Chase.
Imagine you had a human personal assistant who forgot about their previous conversation with you—not ideal. The same goes for Agents.
The main use cases for agents include personal assistance and productivity tasks. One core aspect of these tasks is long-term memory.
In this course, you will learn how to build an agent with long-term memory by creating a personal email agent that can respond, ignore, and notify the user using writing, scheduling, and memory tools. You’ll develop your agent’s memory by adding facts to its memory store, providing examples to learn the user’s preferences, and optimizing system prompts to evolve instructions based on previous responses.
By the end of this course, you will have the foundational mental framework to build an agent with long-term memory using LangGraph.
In detail, you’ll:
- Learn how the three types of memory–semantic, episodic, and procedural–and the two mechanisms–via hot path and in the background– apply to your agent.
- Build an email agent with writing, scheduling, and availability tools, along with a router that triages incoming email and handles it accordingly by ignoring, responding, or notifying the user.
- Add tools to your email agent that allow it to operate on semantic memory by learning facts about the user, storing them in a long-term memory store, and searching over them in future interactions.
- Incorporate episodic memory in the form of few-shot examples in the triage step of your agents to help them learn and update user preferences.
- Add procedural memory as system prompts, optimized with feedback to improve the instructions the agent follows.
Start building agents with long-term memory with LangGraph.
Who should join?
It’s helpful to be familiar with Python and a basic understanding of LLM prompting and LLM application development.
Course Outline
7 Lessons・5 Code Examples- IntroductionVideo・2 mins
- Introduction to Agent MemoryVideo・8 mins
- Baseline Email AssistantVideo with Code Example・16 mins
- Email Assistant with Semantic MemoryVideo with Code Example・12 mins
- Email Assistant with Semantic + Episodic MemoryVideo with Code Example・9 mins
- Email Assistant with Semantic + Episodic + Procedural MemoryVideo with Code Example・15 mins
- ConclusionVideo・1 min
- Quiz
Graded・Quiz
・10 mins - Appendix - Tips and HelpsCode Example・10 mins

Elevate your learning experience with Pro
Upgrade to Pro and gain unlimited accomplishments on your resume
Instructor
Course access is free for a limited time during the DeepLearning.AI learning platform beta!
Want to learn more about Generative AI?
Keep learning with updates on curated AI news, courses, and events, as well as Andrew’s thoughts from DeepLearning.AI!

