Examples
- API Request
- TypeScript
- Python (Sync)
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
Memory Quality: The quality of generated memories depends on the clarity and detail of the input message. Provide rich, contextual information for best results.
Best Practices:
- 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