> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dify.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Memory

> How agents remember and learn from your conversations.

Dify agents have intelligent memory that helps them learn from every conversation. Memory makes interactions more personal and context-aware over time.

## Types of Memory

<CardGroup cols={2}>
  <Card title="Conversation Memory" icon="messages">
    What was discussed in the current and recent threads. Agents maintain context within and across conversations.
  </Card>

  <Card title="Entity Memory" icon="user">
    People, organizations, and things mentioned in conversations. The agent remembers who "John" is and what you discussed about him.
  </Card>

  <Card title="Fact Memory" icon="lightbulb">
    Key facts and preferences extracted from conversations. "User prefers reports in table format" or "Project deadline is March 15."
  </Card>

  <Card title="Workspace Memory" icon="building">
    Shared knowledge across all agents in a workspace. Information available to every agent, not just one.
  </Card>
</CardGroup>

## How Memory Works

After each conversation, the system automatically:

1. **Extracts** important entities, facts, and preferences
2. **Stores** them with semantic embeddings for future retrieval
3. **Retrieves** relevant memories when they match a new conversation topic

You don't need to configure anything — memory extraction happens automatically.

## Memory in Action

**First conversation:**

> You: "I'm working with the Acme Corp team on the Q2 marketing campaign. The budget is \$50k."

**Later conversation:**

> You: "What do you know about my current project?"
> Agent: "You're working with Acme Corp on the Q2 marketing campaign with a \$50,000 budget."

## Managing Memory

* Memories are visible in the agent's **Memory** tab
* You can **delete** specific memories that are incorrect
* **Workspace memory** is shared — changes affect all agents
* Memory is automatically updated as new information appears

<Warning>
  Be mindful of sensitive information in conversations. Agents will remember and may reference it in future interactions.
</Warning>
