Skip to main content
Store user preferences persistently so your AI assistant remembers them across sessions.

Use Case

An AI assistant that helps users with coding tasks. It should remember:
  • Preferred programming languages
  • Editor settings
  • Notification preferences
  • Timezone

Implementation

Store Preferences

Recall on Session Start

Update When Changed

Memory Types

Use memory_type: "preference" for user preferences. This gives them a 180-day half-life, meaning they persist for a long time but eventually decay if not reinforced.

Next Steps