Online Course trending topic
Build Conversational AI Memory with LangGraph

Learn how to build memory-powered conversational agents using LangGraph. This hands-on course guides you through the key components (states, nodes, edges, and message management) so you can design agents that remember, adapt, and grow smarter with every interaction.

4.8

862 reviews on
536 students already enrolled
  • Institute of Analytics
  • The Association of Data Scientists
  • E-Learning Quality Network
  • European Agency for Higher Education and Accreditation
  • Global Association of Online Trainers and Examiners

Skill level:

Advanced

Duration:

2 hours
  • Lessons (1 hour)
  • Practice exams (40 minutes)

CPE credits:

2
CPE stands for Continuing Professional Education and represents the mandatory credits a wide range of professionals must earn to maintain their licenses and stay current with regulations and best practices. One CPE credit typically equals 50 minutes of learning. For more details, visit NASBA's official website: www.nasbaregistry.org

Accredited

certificate

What you learn

  • Define states, nodes, and connect them via direct and conditional edges.
  • Handle message flows effectively using reducer functions.
  • Append, trim, and summarize messages to a state.
  • Explore short-term memory with checkpointers and thread persistence.
  • Implement SQLite storage systems for persistence and conversation continuity.

Topics & tools

ProgrammingStates, Nodes, and EdgesConditional EdgesAnnotated ConstructsMessage ReducersCheckpointers and ThreadsThread-Level PersistenceIn-Memory StorageAILanggraph

Your instructor

Course OVERVIEW

Description

CPE Credits: 2 Field of Study: Information Technology
Delivery Method: QAS Self Study

What if your chatbot could remember—not just reply, but hold natural, flowing conversations, recall essential moments, and adapt intelligently to what's been said before?

That's precisely what you'll learn to implement in Build Conversational AI Memory with LangGraph—a hands-on, practical course designed for developers who want to take their AI agents beyond simple call-and-response systems.

We begin with a short introduction to the course and what you'll need to get started—ideal for learners who are familiar with LLMs and LangChain but new to LangGraph. You'll learn how to set up your development environment and prepare for building memory-powered conversational agents from scratch.

Next, we explore the core of LangGraph. You'll learn how conversational graphs are constructed using states, nodes, and edges and how to build your first functioning graph step by step. From there, we'll move into conditional routing—where your agent starts to make smart decisions based on user input.

A significant focus of the course is on message management and memory. You'll explore reducer functions, trimming logic, summarization techniques, and how to implement these using LangGraph's Annotated and MessagesState constructs.

Finally, we'll tackle thread-level persistence—a key component for enabling agents to remember across sessions. You'll experiment with in-memory and long-term storage using SQLite. By the end of this course, you'll have a complete understanding of how to structure, store, and manage memory in a conversational chatbot—and you'll have built one yourself.

 

Whether you're creating a customer support bot, a task assistant, or a personalized tutor, memory is what makes these tools worthwhile in the real world. This course shows you how to implement it—step by step.

Let your AI talk—and remember.

Start building with LangGraph today.

Prerequisites

  • Python (version 3.8 or later), LangGraph and LangChain libraries, OpenAI API key, and a code editor or IDE (e.g., VS Code or Jupyter Notebook)
  • Intermediate Python skills are required.
  • Familiarity with LangChain and basic concepts in AI agents or conversational systems is recommended.

Curriculum

21 lessons 3 exercises 2 exams
  • 1. Introduction to the Course
    8 min

    Get an overview of what the course covers, who it's for, and what you need to know before diving in. This section sets the stage for building intelligent, memory-capable conversational agents.

    8 min

    Get an overview of what the course covers, who it's for, and what you need to know before diving in. This section sets the stage for building intelligent, memory-capable conversational agents.

    Welcome to the Course! Free
    What Does the Course Cover? Free
    Course Prerequisites Free
  • 2. Setting Up the Environment
    5 min

    Learn how to prepare your development environment with the necessary tools and libraries so you're ready to start building with LangGraph right away.

    5 min

    Learn how to prepare your development environment with the necessary tools and libraries so you're ready to start building with LangGraph right away.

    Setting Up the Environment Free
  • 3. Graph Components and Implementation
    29 min

    Explore the core building blocks of LangGraph (states, nodes, and edges) and learn how to structure your first working conversational graph from the ground up.

    29 min

    Explore the core building blocks of LangGraph (states, nodes, and edges) and learn how to structure your first working conversational graph from the ground up.

    States, Nodes, and Edges Free
    Exercise Free
    First Graph: Importing Relevant Classes Free
    First Graph: Defining a State and a Node
    First Graph: Building the Graph
    Conditional Edges: Defining Nodes and a Routing Function
    Conditional Edges: Building the Graph
  • 4. Message Management
    28 min

    Understand how to manage conversation history using reducer functions, message trimming, and summarization. You'll learn to keep your agents responsive and efficient.

    28 min

    Understand how to manage conversation history using reducer functions, message trimming, and summarization. You'll learn to keep your agents responsive and efficient.

    The Annotated Construct and Reducer Functions
    Reducer Functions in Action
    The MessagesState Class
    The RemoveMessages Class
    Trimming Messages
    Summarizing Messages
  • 5. Thread-Level Persistence
    16 min

    Implement memory that lasts. This section covers how to persist state and message history using in-memory and long-term storage options, such as SQLite.

    16 min

    Implement memory that lasts. This section covers how to persist state and message history using in-memory and long-term storage options, such as SQLite.

    Checkpointers and Threads
    Exercise
    Short-Term Memory with the InMemorySaver class
    The StateSnapshot Class
    Long-Term Memory with SQLite
  • 6. Conclusion
    3 min

    Wrap up the course by reviewing key takeaways and preparing for the next steps in your conversational AI development journey.

    3 min

    Wrap up the course by reviewing key takeaways and preparing for the next steps in your conversational AI development journey.

    Conclusion
    Practice exam
  • 7. Course exam
    40 min
    40 min
    Course exam

Free lessons

Welcome to the Course!

1.1 Welcome to the Course!

3 min

What Does the Course Cover?

1.2 What Does the Course Cover?

3 min

Course Prerequisites

1.3 Course Prerequisites

2 min

Setting Up the Environment

2.1 Setting Up the Environment

5 min

States, Nodes, and Edges

3.1 States, Nodes, and Edges

5 min

First Graph: Importing Relevant Classes

3.3 First Graph: Importing Relevant Classes

4 min

Start for free

4.8

Based on 862 reviews

#1 most reviewed

AI and data learning platform on Trustpilot.

9 in 10

of our graduates landed a new AI & data job

after enrollment

96%

of our students recommend

365 Data Science.

ACCREDITED certificates

Craft a resume and LinkedIn profile you’re proud of—featuring certificates recognized by leading global institutions.

Earn CPE-accredited credentials that showcase your dedication, growth, and essential skills—the qualities employers value most.

  • Institute of Analytics
  • The Association of Data Scientists
  • E-Learning Quality Network
  • European Agency for Higher Education and Accreditation
  • Global Association of Online Trainers and Examiners

Certificates are included with the Self-study learning plan.

A LinkedIn profile mockup on a mobile screen showing Parker Maxwell, a Certified Data Analyst, with credentials from 365 Data Science listed under Licenses & Certification. A 365 Data Science Certificate of Achievement awarded to Parker Maxwell for completing the Data Analyst career track, featuring accreditation badges and a gold “Verified Certificate” seal.

How it WORKS

  • Lessons
  • Exercises
  • Projects
  • Practice exams
  • AI mock interviews

Lessons

Learn through short, simple lessons—no prior experience in AI or data science needed.

Try for free

Exercises

Reinforce your learning with mini recaps, hands-on coding, flashcards, fill-in-the-blank activities, and other engaging exercises.

Try for free

Projects

Tackle real-world AI and data science projects—just like those faced by industry professionals every day.

Try for free

Practice exams

Track your progress and solidify your knowledge with regular practice exams.

Try for free

AI mock interviews

Prep for interviews with real-world tasks, popular questions, and real-time feedback.

Try for free

Student REVIEWS

A collage of student testimonials from 365 Data Science learners, featuring profile photos, names, job titles, and quotes or video play icons, showcasing diverse backgrounds and successful career transitions into AI and data science roles.