[](https://js.langchain.com/docs/how_to/chatbots_memory/): LLM should read this page when: 1. Developing a chatbot and needing to add memory/conversation history 2. Implementing techniques to manage or modify chat history 3. Deciding how to handle long-running conversations with an LLM 'This page covers various techniques for adding memory to chatbots, including simply passing previous messages into the prompt, automatically managing chat history using LangGraph persistence, trimming old messages to reduce context window size, and generating summaries of long conversations.'

