Understanding Digital Twin Memory Systems
Your digital twin uses three complementary memory systems to provide both immediate context and long-term personalization. Understanding the difference helps you optimize your interactions.Three Types of Memory
Your digital twin operates with memory systems that work together to enhance your experience:Conversation History
Short-term conversation context for immediate continuity
User Memory
Long-term storage for persistent personalization
Shared Memory
Long-term storage for information shared across users of the same Digital Twin
Conversation History (Short-Term Context)
Think of this as your digital twin’s “working memory” for the current conversation.Key Characteristics
- Temporary: Only remembers recent conversations (configurable: 1-15 dialogues)
- Session-focused: Provides context for ongoing discussions
- Adjustable: Change in Settings → Remember History (bottom-left)
- Cost-aware: More history = higher token usage and processing costs
- Context window: Maintains conversation flow and understanding
How It Works
Conversation history is injected into each prompt before being sent to the AI model. The system selects only conversations from the current session to maintain logical continuity and prevent context confusion from mixing unrelated conversation threads.Practical Example
Benefits & Trade-offs
- Higher values (8-15): Better context for complex, multi-step conversations but higher costs
- Lower values (1-5): More cost-effective for simple queries but limited context
- Optimal balance: Adjust based on conversation complexity and cost preferences
Learn more at Conversation History: How it works
User Memory (Long-Term Personalization)
Follows you across multiple digital twins and conversations. User memory collects information about you and your interactions to personalize your experience and enhance your overall AI interactions.Key Characteristics
- Permanent: Stored long-term across all conversations and sessions
- Cross-session: Available weeks or months later across different digital twins
- Selective: Only stores important, relevant information automatically
- Secure: Private to your account and fully protected
- Automatic: Digital twin intelligently decides what’s important to remember
- Structured: Organized by namespaces (personal, preferences, work, etc.)
What Gets Stored
- Personal details: Role, company, location, important dates
- Preferences: Communication style, response format, technical level
- Decisions: Important choices made during conversations
- Context: Ongoing projects, goals, and key information
- Learning: Feedback and corrections you provide
Practical Example
Benefits
- Consistency: Same personalized experience across all interactions
- Efficiency: No need to repeat preferences or context
- Intelligence: Builds understanding of your needs over time
- Continuity: Maintains context even after long breaks
- Cross-platform: Works across different digital twins and assistants
Learn more at User Memory: How it works
Shared Memory (Collaborative Knowledge Base)
Think of this as your digital twin’s “team knowledge base” - a collaborative storage area where information is shared across all users of the same digital twin.Key Characteristics
- Permanent: Stored long-term and accessible to all users of the digital twin
- Collaborative: Information added by any user benefits the entire team
- Controlled: Access managed through
get_from_memoryandset_in_memoryagents - Structured: Organized by namespaces for easy categorization and retrieval
- Centralized: Single source of truth for team-wide information
- Persistent: Maintains organizational knowledge across sessions and users
What Gets Stored
- Team guidelines: Shared coding standards, documentation templates, style guides
- Common instructions: Frequently used prompts, workflows, or procedures
- Reference lists: Product catalogs, approved vendors, resource directories
- Organizational context: Company policies, project details, team structures
- Shared resources: Links to documentation, tools, or knowledge bases
- Collective decisions: Team agreements, standards, or best practices
How It Works
Shared memory uses the same agent-based access pattern as user memory, but with a shared scope flag:- Reading:
get_from_memorywithargument_2set to"true"retrieves shared parameters - Writing:
set_in_memorywithargument_2set to"true"stores information in shared memory - Organization: Uses namespaces (e.g.,
team_guidelines,resources,policies) to categorize information - Access control: All users of the digital twin can read and write to shared memory
Practical Example
Benefits
- Team consistency: Everyone gets the same guidelines and information
- Knowledge preservation: Important decisions and standards don’t get lost
- Onboarding efficiency: New team members inherit organizational knowledge automatically
- Reduced repetition: Set standards once, benefit across all team interactions
- Collaborative learning: Team improvements benefit everyone using the digital twin
Use Cases
Development Teams
Development Teams
Store coding standards, architecture decisions, deployment procedures, and approved libraries. Every developer gets consistent guidance on team practices.
Documentation Teams
Documentation Teams
Maintain style guides, template structures, terminology standards, and review checklists. Ensures consistent documentation across all writers.
Support Teams
Support Teams
Share common troubleshooting steps, escalation procedures, FAQ responses, and product knowledge. Standardizes support quality across team members.
Educational Institutions
Educational Institutions
Store course policies, grading rubrics, resource lists, and institutional guidelines. Provides consistent information to all students and instructors.
Managing Shared Memory
1
Add Information
Any user can add information to shared memory by instructing the digital twin to remember something for the team:
2
Retrieve Information
The digital twin automatically accesses shared memory when relevant to the conversation. You can also explicitly query:
3
Update Information
Update shared parameters by providing new values:
4
Organize with Namespaces
Use clear namespaces to categorize information:
team_guidelines- Standards and proceduresresources- Links and reference materialspolicies- Organizational rulestemplates- Reusable content structures
Regularly review and clean up shared memory to keep it relevant and organized. Remove outdated information and consolidate duplicate entries.
Learn more at Shared Memory: How it works
Memory Systems Working Together
The three memory systems complement each other perfectly:- Conversation History handles immediate context and ongoing discussions
- User Memory provides persistent personalization and long-term context
- Shared Memory maintains team knowledge and organizational standards
- Together, they create a seamless, intelligent experience that feels natural, personalized, and team-aware
Best Practices
- Adjust history length based on conversation complexity
- Trust automatic memory storage - your twin knows what’s important
- Provide feedback to improve long-term personalization
- Use clear preferences early in relationships with new twins
- Leverage shared memory for team standards and common knowledge
- Keep shared memory organized with clear namespaces and regular cleanup
Memory Comparison Table
Understanding the distinctions between these three memory systems is crucial for optimizing your AI experience.
| Aspect | Conversation History | User Memory | Shared Memory |
|---|---|---|---|
| Duration | Temporary (current conversation) | Permanent (weeks/months/years) | Permanent (weeks/months/years) |
| Scope | Recent dialogue exchanges | Important personal data & preferences | Team-wide information & standards |
| Purpose | Conversation continuity | Long-term personalization | Collaborative knowledge sharing |
| Storage | Full conversation context | Selective key information | Selective team information |
| Control | User adjustable (1-25 dialogues) | Automatic + manual management | Manual management by any team user |
| Content | Complete message exchanges | Preferences, goals, decisions | Guidelines, standards, resources |
| Cost Impact | Direct (more history = more tokens) | Minimal (structured parameters) | Minimal (structured parameters) |
| Accessibility | Session-specific only | Cross-platform, all assistants | All users of the same digital twin |
| Organization | Sequential chronological order | Namespaced and categorized | Namespaced and categorized |
| Privacy | Private to user session | Private to individual user | Shared across all twin users |
| Optimization | Adjust length based on complexity | Organize with namespaces and periodic cleanup | Regular team review and cleanup |
When to Use Each System
Use Conversation History for:- Referencing previous messages in the current discussion
- Building complex arguments or explanations over multiple turns
- Maintaining context for ongoing tasks or projects within a session
- Following up on specific points made earlier in the conversation
- Storing permanent preferences and personal information
- Maintaining consistency across different conversations and assistants
- Avoiding repetitive explanations of your role, company, or preferences
- Building long-term personalization that improves over time
- Establishing team-wide standards and guidelines
- Maintaining organizational knowledge and policies
- Sharing resources and reference materials across team members
- Ensuring consistency in team practices and outputs
- Onboarding new team members with institutional knowledge