> ## Documentation Index
> Fetch the complete documentation index at: https://learn.playlab.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Adaptive Memory

> Enable your Playlab applications to selectively remember important information

## What is this feature?

Adaptive memory allows your Playlab apps to selectively remember things you instruct it to remember, impacting future interactions users have with your app.

<Warning>
  Using adaptive memory will change the way your app functions as it will include what it remembers into the chat.
</Warning>

## Rationale for the feature

This feature enhances the capabilities of your Playlab apps in several key ways:

* **More Natural Conversations:** AI will maintain context and have more coherent discussions
* **Better Understanding:** Enables AI to grasp nuanced meanings and references from earlier in the conversation
* **Improved Assistance:** Allows AI to build upon previous responses and refine its help based on user feedback
* **Context Awareness:** Helps AI understand when previous information needs to be updated or modified

## Watch how to use Adaptive Memory

<iframe src="https://www.loom.com/embed/bc8fc2da9cc44745944a8510b5fcac61?sid=634ad2e7-dfee-4900-9f70-ea75f086f77f" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style={{ width: "100%", maxWidth: "720px", aspectRatio: "16 / 9", margin: "1.5rem auto", display: "block" }} />

<figcaption>How to configure and use Adaptive Memory</figcaption>

## How do I set up adaptive memory?

<img height="600" src="https://mintcdn.com/playlabai/_D6SZKjykVV5vZr9/images/adaptivememory.gif?s=c4bd6154cb494904bc164b213983fac9" className="border border-gray-300 rounded-md shadow-sm" data-path="images/adaptivememory.gif" />

<Steps>
  <Step title="Toggle the feature">
    Enable the adaptive memory feature in your Playlab app settings.

    <img height="600" src="https://mintcdn.com/playlabai/B6SPJ1dvTCXE2aSF/images/togglememory.png?fit=max&auto=format&n=B6SPJ1dvTCXE2aSF&q=85&s=f31ec91c29b7dadd5e604a7b53374490" className="border border-gray-300 rounded-md shadow-sm" data-path="images/togglememory.png" />
  </Step>

  <Step title="Edit your memory instructions">
    Configure what you want your app to remember about your users.

    <img height="600" src="https://mintcdn.com/playlabai/3KUkXnizECw3JUVl/images/memoryinstructions.png?fit=max&auto=format&n=3KUkXnizECw3JUVl&q=85&s=a6eac65c7c87b069a3e48abfb6dfde14" className="border border-gray-300 rounded-md shadow-sm" data-path="images/memoryinstructions.png" />
  </Step>

  <Step title="Monitor and manage memories">
    View, refresh, or delete what your app remembers about users in the bottom panel.

    <img height="600" src="https://mintcdn.com/playlabai/3KUkXnizECw3JUVl/images/managememories.png?fit=max&auto=format&n=3KUkXnizECw3JUVl&q=85&s=3ebe3a51bf9f450e76d5d4eac2ada49f" className="border border-gray-300 rounded-md shadow-sm" data-path="images/managememories.png" />

    <Warning> Don't instruct the AI to remember private or personally identifying information</Warning>
  </Step>
</Steps>

## What should I include in memory instructions?

When creating memory instructions, consider including guidance for remembering:

<CardGroup cols={2}>
  <Card title="User Information" icon="user">
    <p><strong>Description:</strong> Relevant details about the user that impact interactions.</p>
    <p><strong>Examples:</strong></p>

    <ul>
      <li>Skill levels in relevant areas</li>
      <li>Learning goals or objectives</li>
      <li>Preferences for communication style</li>
      <li>Prior challenges discussed</li>
    </ul>
  </Card>

  <Card title="Conversation Context" icon="messages">
    <p><strong>Description:</strong> Important points from previous conversations.</p>
    <p><strong>Examples:</strong></p>

    <ul>
      <li>Key decisions or choices made</li>
      <li>Problems that were previously solved</li>
      <li>Ongoing projects or tasks</li>
      <li>Feedback on previous suggestions</li>
    </ul>
  </Card>

  <Card title="Domain-Specific Details" icon="folder">
    <p><strong>Description:</strong> Information relevant to your app's specific domain.</p>
    <p><strong>Examples:</strong></p>

    <ul>
      <li>Subject matter preferences</li>
      <li>Industry-specific needs</li>
      <li>Technical requirements</li>
      <li>Specialized terminology used</li>
    </ul>
  </Card>

  <Card title="Progress Tracking" icon="chart-line">
    <p><strong>Description:</strong> Information that helps track user progress over time.</p>
    <p><strong>Examples:</strong></p>

    <ul>
      <li>Completed tasks or milestones</li>
      <li>Current stage in a multi-step process</li>
      <li>Areas where improvement was noted</li>
      <li>Ongoing challenges to address</li>
    </ul>
  </Card>
</CardGroup>

## Example Memory Instructions

Here are some example memory instructions for different types of apps:

<Accordion title="College Recommendation App" icon="school">
  <p><strong>Memory Instructions:</strong> "Keep track of key academic details shared during discussions:</p>

  <ul>
    <li>Mentioned GPA and test scores</li>
    <li>Favorite subjects and areas of academic excellence</li>
    <li>Extracurricular activities and leadership roles</li>
    <li>Special talents or unique experiences that could impact college applications</li>
  </ul>

  <p>Note personal preferences that emerge during conversations:</p>

  <ul>
    <li>Geographic location preferences (staying close to home vs. exploring new areas)</li>
    <li>Campus size and environment preferences (urban vs. rural, large vs. small)</li>
    <li>Social atmosphere interests (Greek life, sports culture, arts scene)</li>
    <li>Financial considerations and scholarship needs</li>
  </ul>
</Accordion>

<Accordion title="Language Learning Assistant" icon="language">
  <p><strong>Memory Instructions:</strong> "Remember information about the learner's language journey:</p>

  <ul>
    <li>Current proficiency level and areas of strength</li>
    <li>Specific vocabulary or grammar concepts they struggle with</li>
    <li>Learning goals (travel, business, academic, etc.)</li>
    <li>Preferred learning methods (conversation practice, grammar drills, reading)</li>
  </ul>

  <p>Track progress over time:</p>

  <ul>
    <li>Topics or lessons already covered</li>
    <li>Mistakes that are frequently repeated</li>
    <li>Concepts that have shown improvement</li>
    <li>Cultural interests related to target language</li>
  </ul>
</Accordion>

<Accordion title="Fitness Coach App" icon="dumbbell">
  <p><strong>Memory Instructions:</strong> "Remember key fitness information:</p>

  <ul>
    <li>Fitness goals (weight loss, muscle gain, endurance, etc.)</li>
    <li>Current exercise routine and frequency</li>
    <li>Physical limitations or injuries mentioned</li>
    <li>Equipment available for workouts</li>
  </ul>

  <p>Track progress and preferences:</p>

  <ul>
    <li>Exercises the user enjoys or dislikes</li>
    <li>Recent achievements or milestones</li>
    <li>Changes in routine or intensity levels</li>
    <li>Nutritional considerations or dietary restrictions</li>
  </ul>
</Accordion>

## Tips for Creating Effective Memory Instructions

### Best Practices

<Accordion title="Be specific about what to remember">
  Clearly define the categories of information your app should retain. Vague instructions may result in remembering too much irrelevant information or missing important details.
</Accordion>

<Accordion title="Prioritize information by importance">
  Not all information needs to be remembered. Focus on the details that will have the most significant impact on future interactions.
</Accordion>

<Accordion title="Regularly review and refine">
  As your app evolves, revisit your memory instructions to ensure they're still capturing the most relevant information for your users.
</Accordion>

<Accordion title="Test with real conversations">
  Analyze how memory affects actual user interactions and adjust your instructions based on what works best in practice.
</Accordion>

### Practical Applications

<Accordion title="Educational Apps">
  Remember learning progress, difficult concepts, and preferred explanatory styles to provide increasingly tailored educational content.
</Accordion>

<Accordion title="Productivity Tools">
  Track project stages, recurring tasks, and work preferences to offer more relevant assistance over time.
</Accordion>

<Accordion title="Creative Assistants">
  Remember stylistic preferences, past projects, and creative goals to provide more consistent and helpful creative guidance.
</Accordion>

<Accordion title="Health and Wellness Apps">
  Track progress, habits, challenges, and preferences to provide more personalized support and recommendations.
</Accordion>

## FAQ

<Accordion title="How does adaptive memory differ from user profiles?">
  While user profiles provide static information set up in advance, adaptive memory dynamically captures and retains information that emerges during conversations. Both features can complement each other for a more personalized experience.
</Accordion>

<Accordion title="Can I control what information is remembered?">
  Yes, your memory instructions guide what the AI remembers. You can also view, refresh, or delete stored memories in the management panel.
</Accordion>

<Accordion title="How much information can be remembered?">
  There are limits to how much information can be stored in memory. Focus on quality over quantity by instructing the AI to remember only the most impactful details.
</Accordion>

<Accordion title="Is memory information private?">
  Memory information is stored as part of your app's data. For specific privacy concerns, please refer to our privacy policy or contact support.
</Accordion>

## Important Considerations

<Warning>
  Be cautious about including Personally Identifying information in your memory instructions. Avoid instructing the AI to remember last names, addresses, contact information, and other sensitive information that you would not be comfortable sharing.
</Warning>

## We Want Your Feedback!

<Info>
  Have you created memory instructions that significantly improved your app's performance? We'd love to hear about it!

  Contact us at [support@playlab.ai](mailto:support@playlab.ai)
</Info>

***

Last updated: 03-23-2025
