User Memory

Alhena remembers key facts about returning users to deliver more personalized responses.

User Memory allows your AI agent to remember important facts about individual users across conversations. When a returning user chats with your AI, it can recall details like their name, preferences, past issues, and other relevant information to provide more personalized and context-aware responses.

How It Works

As users interact with your AI agent, Alhena automatically extracts and stores key facts from the conversation. These facts are associated with the user's identity (email, user ID, or other identifier) and persist across sessions.

When the same user returns for a new conversation, the AI recalls their stored memories and uses them to personalize its responses. For example, if a user previously mentioned they prefer gel moisturizers, the AI can reference that preference in future product recommendations.

What Gets Remembered

Alhena extracts factual information from conversations, such as:

  • User's name and location

  • Product preferences and past purchases

  • Specific concerns or requirements

  • Relevant personal details shared during conversations

Memories are updated over time as new information is shared, keeping the user profile current.


Viewing User Memories as an Admin

You can see exactly which memories your AI recalled for any specific response. This helps you understand how personalization is influencing the AI's answers and verify that the right context is being used.

Step 1: Open a conversation

Navigate to Conversations from the left sidebar and select any conversation with a returning user.

Step 2: Click Answer Sources

On any AI-generated message, click the Answer Sources dropdown. This expands to show the full breakdown of how the AI constructed its response.

Step 3: View recalled memories

If user memories were used for that response, you will see a User memories recalled section within Answer Sources. This displays a list of facts that the AI referenced when generating its answer.

Answer Sources showing User memories recalled
User memories recalled shown within Answer Sources

The memories section shows each fact as a bullet point, such as:

  • User is named Tim

  • User has two cats

  • User lives in San Francisco

  • User's main skin concern is facial dryness or flakiness

  • User prefers lightweight gel moisturizers

You can expand or collapse the memories list if there are many facts.

circle-info

User memories only appear in Answer Sources when the AI actually recalled and used memories for that specific response. If the user is new or no memories have been stored yet, this section will not appear.


Understanding the Answer Sources Panel

When you expand Answer Sources on an AI message, you will see:

Section
Description

Agent

Which AI agent handled the message (e.g., Greeting Agent, Product Agent)

User memories recalled

Facts remembered about the user that were used in the response

Knowledge used

Knowledge base documents and sources referenced by the AI

This gives you full transparency into how the AI arrived at its answer, including what personalization was applied through user memory.

Last updated