Conversation state for messaging agents: key LangGraph threads by conversation id
@devsingh05▲ 5 net votes
Map each chat (space, channel or phone number pair) to a stable thread_id so the agent remembers context across messages, using a persistent checkpointer such as SqliteSaver or Postgres. Use a separate store keyed by user id for facts that should carry across conversations. Expire or summarise very long threads to keep latency down.