Try it
button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.Sample Request
Overview
The Generate User Memory endpoint is the most sophisticated user memory endpoint that automatically creates and stores multiple user memories based on a user message. It combines AI-powered message processing, intelligent memory generation, and automatic storage to build a comprehensive memory network for each user.What Makes This API Special?
This API goes beyond simple memory storage by:- AI-Powered Analysis: Uses advanced AI to analyze user messages and extract meaningful insights
- Multiple Memory Generation: Creates several related memories from a single message
- Automatic Storage: Stores all generated memories without requiring separate API calls
- Memory Network Building: Creates interconnected memories that form a “second brain” for the user
- Contextual Understanding: Generates memories that are contextually relevant and useful for future interactions
Functionality
- Intelligent Message Processing: Analyzes user messages to understand intent and extract key information
- Multi-Memory Generation: Creates multiple related memories from a single message
- Automatic Vector Storage: Stores all generated memories in the vector database for semantic retrieval
- User Context Integration: Incorporates user name and context for personalized memory generation
- Tenant Isolation: Ensures all generated memories are properly isolated by tenant and sub-tenant
- Automatic Provisioning: Provisions tenant/sub-tenant for user memory if not already set up
Use Cases
- Conversation Analysis: Generate memories from user conversations or chat logs
- Document Processing: Extract key insights from user-uploaded documents
- Meeting Notes: Convert meeting transcripts into structured user memories
- Feedback Processing: Transform user feedback into actionable memory insights
- Learning Path Creation: Generate memories that help track user learning progress
Advanced Usage: Meeting Notes Processing
Important Notes
- Use detailed, contextual messages for better memory generation
- Include relevant background information in your messages
- Consider breaking complex topics into multiple focused messages
- Review generated memories to ensure they capture the intended insights
- Use this API for processing longer text inputs like documents or conversations
Error Responses
All endpoints return consistent error responses following the standard format. For detailed error information, see our Error Responses documentation.Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Unique identifier for the tenant/organization
"tenant_1234"
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
"sub_tenant_4567"
Body
Response
Successful Response
Response model for AI-generated user memories.
Indicates whether the memory generation operation was successful
true
Array of AI-generated memories based on your query and user context
[
{
"memory_id": "memory_1234",
"memory_content": "User prefers detailed technical explanations and works in the Pacific timezone"
},
{
"memory_id": "memory_4567",
"memory_content": "User prefers dark mode"
}
]