Skip to content

User-Centric AI Memory System Design

Master the design and implementation of transparent, user-controllable AI memory systems that enhance personalization while maintaining privacy and user agency.

advanced4 / 7

🗃️ Data Model

type MemoryType = 'preference' | 'profile' | 'task' | 'contact' | 'workspace'
interface MemoryItem {
  id: string
  userId: string
  type: MemoryType
  summary: string
  data: Record
  createdAt: string
  updatedAt: string
  retentionDays: number
  sensitivity: 'low' | 'medium' | 'high'
  purpose: 'personalization' | 'productivity' | 'assistive'
  consent: {
    source: 'explicit' | 'implicit'
    scopes: string[] // e.g., ['chat', 'email-draft']
    version: number
  }
  audit: { createdBy: string; lastUsedAt?: string }
}
Section 4 of 7
Next →