Conversations Guide
Create and manage conversational AI interactions with context-aware chat experiences using Nebula’s memory system.How Conversations Work
Conversations are stored as conversation memories - containers that hold entire conversations with all their messages. Each conversation gets its own memory ID, and you add messages to that container usingstore_memory():
role: Speaker identifier (user,assistant, etc.)memory_id: The conversation container to add messages tocontent: The message text (can be single message or multiple messages)
A conversation memory contains the complete chat history. Use
memory_id to add messages to the same conversation container. See Core Concepts to understand how memories work.Creating Conversations
Adding Messages
Add more messages to the conversation container:Retrieving Messages
Listing 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
- Consider message limits: Keep conversations at reasonable sizes for performance
Next Steps
- Core Concepts - Understanding memories and chunks
- Memory Operations Guide - Store and search memories
- Collections Guide - Organize memories effectively
- Advanced Features - Chunk-level authority and optimization