---
schema_version: "1"
id: 2285d8facbc4a47a251719a5203e980260428043f859a3c5125e2dc12f2dca3a
title: Conversation Management
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/agentic-memory-context/guides/agentic-memory/agentic-memory-conversation-management.md
canonical_url: https://developer.salesforce.com/docs/data/agentic-memory-context/guide/agentic-memory-conversation-management.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1fa7904f4e1cb50057491409f842b453ef38dc85e53e4628eb54dd0c0087b88a
products:
  - Agentic Memory & Context
  - Data 360 Developer Documentation
---
# Conversation Management

Manage agent interaction data through conversation APIs to build persistent memory in Data 360. Conversation APIs support the full lifecycle of an agent interaction, starting from creation through message ingestion to session closure. They also handle multi-agent sessions, agent handoffs, and long-running interactions.

> **Note:** Conversation management is API-first. You perform all operations through the conversation APIs. For endpoint details, request schemas, and complete field reference, see [Conversation Ingest APIs](https://developer.salesforce.com/docs/data/agentic-memory-context/references/agentic-memory-context-api-ref/agentic-memory-api-conversation-ingest-apis.html).

## Conversation Lifecycle

Data 360 conversations progress through these stages.

- **Create a conversation:** Establishes a new conversation entity. You provide a unique conversation ID, ownership information (who the conversation belongs to), the owner type (individual or employee), and optional metadata such as a display name and communication channel.
- **Create a session:** Opens a session within the conversation. You provide a session ID, owner information, and at least one initial participant. A conversation can contain multiple sessions to support handoffs and pauses.
- **Add participants:** Associates additional individuals, agents, or users with an active session. Each participant has an ID, type (individual, employee, or agent), and a role (owner or participant).
- **Ingest entries:** Sends ordered sequences of interaction records to Data 360 as the conversation progresses. This is the primary mechanism for getting conversation data into the memory pipeline.
- **Close the session:** Signals that a session has ended. Triggers a final memory extraction cycle for any unprocessed messages in that session.
- **Close the conversation:** Signals that the entire conversation is complete across all sessions. Closing a conversation also closes any remaining open sessions.

## Entry Categories

When ingesting interaction data, each entry belongs to one of three categories.

| Category | Purpose                                                                                                                                                                                                     |
| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Message  | Human-readable messages between participants. Each message requires content text and a participant identifier.                                                                                              |
| Trace    | Agent reasoning steps, tool calls, and tool results. Traces capture what the agent did behind the scenes (not shown to end users). They include tool names, parameters, and results as structured metadata. |
| Entry    | Generic category for other interaction data that doesn't fit message or trace.                                                                                                                              |

For message entries, provide the message content and identify the sender. For trace entries, provide structured metadata about the tool call or reasoning step. Optionally include timestamps, attachments, and interaction IDs that group related entries together—for example, a tool call and its result.

## Key Ingestion Behaviors

When ingesting entries, these behaviors apply.

- **Ordering:** Entries are processed in the order received. Include timestamps for accurate chronological sequencing.
- **Batching:** Send multiple entries in a single API call for efficiency.
- **Fire-and-forget:** The API response returns immediately after storage and indexing are committed, without waiting for memory extraction to complete.

## Retrieve Conversations

The APIs support reading back conversation data. List conversations with filters (owner, status, time range, participant), retrieve a specific conversation with all its entries, sessions, and participants, or list sessions within a conversation.

## Multi-Agent Session Patterns

The conversation APIs support bridge session handoff. This is a restricted context where Agent A closes its session and Agent B creates a new session within the same conversation. Agent B can access conversation-level context but not the details of Agent A's session. Use this pattern when Agent A handled sensitive information.

## See Also

- [_Salesforce Developer_: Conversation Ingest APIs](https://developer.salesforce.com/docs/data/agentic-memory-context/references/agentic-memory-context-api-ref/agentic-memory-api-conversation-ingest-apis.html)
