[](https://js.langchain.com/docs/tutorials/chatbot/): LLM should read this page when building a chatbot, when persisting conversation history, when managing long conversations This page explains how to build a chatbot using LangChain and LangGraph, including persisting conversation history, using prompt templates, and managing long conversations by trimming the message history.

