Conversational Memory in LangChain for 2025

From the creator

Conversational memory allows our chatbots and agents to remember previous interactions within a conversation. Without conversational memory, our chatbots would only ever be able to respond to the last message they received, essentially forgetting all previous messages with each new message. Naturally, conversations require our chatbots to be able to respond over multiple interactions and refer to previous messages to understand the context of the conversation. LangChain versions 0.0.x consisted of various conversational memory types. Most of these are due to deprecation, but they still hold value in understanding the different approaches to building conversational memory. Throughout the video, we will refer to these older memory types and then rewrite them for LangChain v0.3 (the latest version in 2025) using the recommended RunnableWithMessageHistory class. We will learn about: - ConversationBufferMemory - ConversationBufferWindowMemory - ConversationSummaryMemory - ConversationSummaryBufferMemory We'll work through each of these memory types in turn and rewrite each one using the RunnableWithMessageHistory class. 🔗 Full Course: https://www.aurelio.ai/course/langchain 📌 Article and code: https://www.jamesbriggs.io/langchain-conversational-memory 💡 Subscribe for Latest Courses and Tutorials: https://www.aurelio.ai/subscribe 👾 Discord: https://discord.gg/c5QtDB9RAP Twitter: https://twitter.com/jamescalam LinkedIn: https://www.linkedin.com/in/jamescalam/ #ai #coding #aiagents #langchain 00:00 Conversational Memory in LangChain 01:12 LangChain Chat Memory Types 04:26 LangChain ConversationBufferMemory 08:23 Buffer Memory with LCEL 13:14 LangChain ConversationBufferWindowMemory 16:01 Buffer Window Memory with LCEL 22:32 LangChain ConversationSummaryMemory 25:17 Summary Memory with LCEL 30:12 Token Usage in LangSmith 32:08 Conversation Summary Buffer Memory 34:36 Summary Buffer with LCEL

Choose to Build with AI
Matched to LangChain Chatbot

AI Maker Residence 3

The third AI workshop taught by our legendary teacher, Nick Sarafa. This is a full-day hands-on training workshop for purposeful co-creation with AI using Claude Code. Imagine having access to hundreds of billions of dollars of computing power and knowing exactly how to make it work for you through the power of super intelligence.

◆ Fri 09 Oct 2026 ◆ KOKO Cafe, London ◆ With Nick Sarafa
AI Maker Residence 3
Live event
AI Maker Residence 3
Fri 09 Oct 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.