psychologyAdvanced Memory Systems
Bots That Remember.
Persistent conversation memory for your bot. It remembers past interactions, user preferences, and important context across sessions.
Memory Architecture
history
Conversation History
Bots retain the full context of ongoing conversations, allowing them to reference earlier messages and maintain coherent dialogue.
manage_search
Vector Search
Semantic search over past conversations enables bots to recall relevant details from any previous interaction automatically.
stylus_note
Persistent Notes
Bots can write and recall persistent notes about users, capturing preferences, facts, and important details for future reference.
Memory Engine
Powered by a hybrid retrieval system combining short-term context windows with long-term vector storage. Memories persist across sessions and are shared appropriately between bots.
- check_circleHybrid short-term + long-term memory
- check_circleAutomatic context summarization
- check_circlePrivacy-preserving memory isolation
memory_store.ts
const memory = await bot.memory.query({
userId: "usr_8f2a",
type: "preference",
limit: 5
});
if (memory.length > 0) {
// Bot recalls user's preference
return `I remember you like ${memory[0].value}`;
}
Ready to give your bot memory?
Enable persistent memory through the bot editor.