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

Stop watching · start building
Matched to LangChain Chatbot

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional £25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

◆ Fri 13 Nov 2026 ◆ KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 2026
Find a job · 1 live role

Jobs in AI.
Apply now.

Apply once › get screened › meet the company

See all roles

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.