Module 2: The Memory (Solving Amnesia)

Here is Module 2 of the course. This module covers the single most common stumbling block for new LangGraph developers.


Module 2: The Memory (Solving Amnesia)

In Module 1, we built a graph where data flowed from Node A to Node B. But there was a hidden flaw in that design.

If you are building a chatbot, you need to store a history of messages:

  • User: “Hi”

  • Bot: “Hello”

  • User: “My name is Bob”

In a standard Python dictionary, if you update a key, the old value is gone. In this module, we will learn how to make LangGraph remember rather than replace.