Memory API
The Memory API enables storage and retrieval of contextual information to personalize AI interactions and maintain context across conversations.Memory Object
Unique memory identifier
Memory content/text
Optional metadata (tags, categories, source, etc.)
ISO 8601 creation timestamp
ISO 8601 last update timestamp
Endpoints
Get All Memories
Retrieve all memories for the current user.Response
Create Memory
Store a new memory.Request
Response
Memory content to store
Optional metadata for categorization and filteringCommon fields:
category- Memory category (preferences, habits, projects, etc.)tags- Array of tags for easy filteringsource- Where the memory came from (conversation, user_input, etc.)importance- Importance level (high, medium, low)
Delete Memory
Delete a specific memory.Response
Clear All Memories
Delete all memories for the current user.Response
How Memories Work
Automatic Memory Creation
GAIA can automatically create memories during conversations when it learns new information about you:- User preferences (communication style, working hours, etc.)
- Current projects and goals
- Important contacts and relationships
- Habits and routines
- Technical preferences (programming languages, tools, etc.)
Memory Retrieval
Memories are automatically retrieved and used to:- Personalize AI responses
- Provide relevant context in conversations
- Suggest proactive actions
- Improve recommendation quality
Semantic Search
Memories are stored with embeddings for semantic search, allowing GAIA to find relevant memories even when exact keywords don’t match. Example:- Query: “What programming language am I using?”
- Matched Memory: “Working on machine learning project using PyTorch”
Use Cases
Personal Preferences
Project Context
Communication Style
Important Dates
Rate Limiting
Memory operations are subject to rate limits:- Free: 50 operations/hour
- Pro: 500 operations/hour
- Team: 2000 operations/hour
Best Practices
Store meaningful context
Store meaningful context
Focus on storing information that helps personalize future interactions:✅ Good: “Prefers TypeScript over JavaScript for new projects”❌ Poor: “User clicked a button”
Use metadata for organization
Use metadata for organization
Add categories and tags to make memories searchable:
Update stale memories
Update stale memories
Delete or update memories when information becomes outdated:
Be specific and actionable
Be specific and actionable
Store specific, actionable information rather than vague statements:✅ “Holds 1:1 meetings with direct reports every other Friday at 2 PM”❌ “Likes meetings”
Privacy & Security
- Memories are encrypted at rest and in transit
- Only the authenticated user can access their memories
- Memories are not shared with other users
- Deleting your account permanently deletes all memories
Next Steps
Chat API
Use memories in conversations
Integrations
Connect third-party services