Conversations Guide
Build chat applications using conversation memories - containers that hold entire conversations.How Conversations Work
Conversations are stored as conversation memories. Each conversation has amemory_id, and you add messages to that container over time.
role: Who said the message (user,assistant, etc.)memory_id: The conversation container to append tocontent: Message text (single message or a list of message objects)
Conversation memories contain the full message history. See Core Concepts for the memory/chunk model.
Creating and Adding Messages
Retrieving Conversations
Best Practices
- Use descriptive metadata: Add
conversation_nameand topic information - Link messages properly: Always use
memory_idto maintain conversation flow - Organize by collections: Group conversations by purpose or project
Next Steps
- Core Concepts - Understanding memories and chunks
- Memory Operations Guide - Store and search memories