You can use the conversation history interface to browse, search, filter, inspect, and manage conversations saved by your agent application. Conversation history captures both test interactions from the simulator and live interactions from deployed channels, and integrates with CX Insights, BigQuery, Cloud Storage, Cloud Logging, and the Gemini Enterprise for Customer Experience API.
Required roles
To get the permissions that you need to view and manage conversation history, ask your administrator to grant you the following IAM roles on your project:
-
View conversation history and analyze conversations:
Gemini Enterprise for Customer Experience Viewer (
roles/ces.viewer) -
View and delete conversations:
Gemini Enterprise for Customer Experience Admin (
roles/ces.admin)
For more information about granting roles, see Manage access to projects, folders, and organizations.
These predefined roles contain the permissions required to view and manage conversation history. To see the exact permissions that are required, expand the Required permissions section:
Required permissions
The following permissions are required to view and manage conversation history:
-
View conversation history and analyze conversations:
-
ces.conversations.get -
ces.conversations.list -
contactcenterinsights.conversations.get -
contactcenterinsights.conversations.list
-
-
View and delete conversations:
ces.conversations.delete
You might also be able to get these permissions with custom roles or other predefined roles.
Open conversation history
Conversation logging must be enabled in agent application settings (under Advanced, in the Logging section) for conversations to be saved and displayed.
To open conversation history in the agent builder:
- Open the CX Agent Studio console, and select your project and agent application.
- Open the Preview agent panel.
- On the Preview agent title bar, click the Conversation history button.
Analyze deployed conversations in CX Insights
To analyze deployed agent conversations with full analytics, scorecards, and export workflows, you can open CX Insights directly from the Conversation history panel:
- Open the Conversation history panel in the agent builder.
- In the Conversation history header, click Go to Insights .
CX Insights opens in a new browser tab, pre-filtered for your agent
application ID (agent_id).
In CX Insights, you can browse full conversation lists, apply conversation filters, review transcripts with synchronized audio playback, evaluate interactions with Quality AI scorecards, and export conversations to BigQuery.
Browse sessions in the Monitor view
You can also view deployed agent conversations in a table without leaving the CX Agent Studio console:
- At the top of the agent builder, click Monitor.
- In the navigation menu, select Sessions.
On the Sessions page, you can filter deployed conversations by date range and conversation attributes, or click Export CSV to download metadata for the loaded conversations. Click any row to open conversation details, including metadata (conversation ID, start date, duration, turns, interaction type, deployment channel, deployment ID, agent version, outcome, sentiment, and custom labels), transcript, tracing information, and audio playback.
Search and filter conversations
In the Conversation history panel, use the search field and filter controls to locate specific conversations:
- Search: Enter a keyword or conversation ID in the Search by keyword or conversation ID field to search across conversation IDs and transcripts.
- Source: Filter by conversation origin. This filter defaults to Build environment (simulator conversations). Select any combination of Build environment, Evaluations, Deployed channels, and Agent tool, or select all options to view All sources.
- Time: Filter by start date (From and To) and time (Start time and End time).
- Duration: Filter by minimum and maximum conversation duration in minutes (up to 3,000 minutes).
- Interaction type: Filter by Text only, Voice only, or Hybrid (Text, voice, and media).
Apply advanced filters
Click All filters to refine the conversation list by additional criteria:
- Metadata: Filter by Includes user interruptions, Key words (across the full transcript, user utterances, or agent utterances), End reason (session end reason or escalated sessions), Turn count (minimum and maximum turns), and Version (agent application version).
- Logic: Filter by Handoff to agent, Tool name, and Tool type.
- Safety: Filter by Triggered guardrails.
Save and reuse filters
When one or more filters are active, click Save filter to store the filter combination locally in your browser. Saved filters appear under Saved filters in the All filters menu, where you can reapply or delete them.
Inspect and manage conversations
Each item in the Conversation history list displays the start date and time, duration, turn count, interaction type (text, voice, or hybrid), source (build, deployed channel, evaluations, or agent tool), and conversation ID. You can click the copy icon next to an entry to copy its conversation ID.
View transcripts, traces, and audio playback
Click a conversation in the list to inspect the full turn-by-turn transcript and tracing information, including execution steps, latency, tool inputs and outputs, errors, and raw JSON responses.
- Search within a conversation: In the opened conversation header, click the search icon to highlight matching text in the Search in conversation field.
- Play back audio: For voice conversations where an audio recording Cloud Storage bucket is configured, use the audio playback controls to play or pause audio, skip forward or backward 10 seconds, jump to the previous or next event, scrub along the timeline, and adjust playback speed from 0.2x to 2x.
Manage individual conversations
Open the actions menu on a conversation card to perform the following actions:
- Save as golden evaluation: Create a golden test case from the conversation for regression testing in evaluations.
- Delete: Permanently delete the conversation from conversation history.
Export conversation history
You can export and retain conversation history data using the following options:
- Download CSV metadata: On the Sessions page in the Monitor view,
apply filters and click Export CSV to download a CSV file containing
conversationId,createTime,duration,turnCount,channel,languageCode, andagentIdfor the loaded conversations. - Stream logs to BigQuery: Enable Export logs to BigQuery in
agent application settings
(or configure the
bigquery_export_settingsfield in the API) to continuously export conversation logs to a BigQuery dataset in your Google Cloud project for custom analytics and long-term retention. You can also export deployed conversations from CX Insights; see Export conversations to BigQuery. - Save audio recordings to Cloud Storage: Configure Audio recording in agent application settings to store session audio recordings in a Cloud Storage bucket.
- Stream logs to Cloud Logging: Enable Enable Cloud Logging in agent application settings to send service and operational logs to Cloud Logging, where you can configure custom retention periods and log sinks.
Access conversation history with the API
You can programmatically list, retrieve, and delete conversations using the
Gemini Enterprise for Customer Experience API (v1):
- List conversations: Call the REST
projects.locations.apps.conversations.listmethod or the RPCListConversationsmethod. Use thefilterfield with AIP-160 filter syntax and thesourcesfield (LIVE,SIMULATOR,EVAL, orAGENT_TOOL) to narrow results. - Get a conversation: Call the REST
projects.locations.apps.conversations.getmethod or the RPCGetConversationmethod to retrieve turn-by-turn messages, spans, and metadata for aConversationresource. - Delete conversations: Call the REST
projects.locations.apps.conversations.deletemethod or the RPCDeleteConversationmethod to delete a single conversation, or call the RESTprojects.locations.apps.conversations.batchDeletemethod or the RPCBatchDeleteConversationsmethod to delete multiple conversations in a long-running operation.
To query deployed conversations stored in CX Insights, you can also use the CX Insights API.
Redaction
If Sensitive Data Protection
redaction
is enabled, it's applied before any conversation data is written to storage.
This ensures that all persisted transcripts and interaction data are fully
redacted at the source.
You can configure templates and test redaction behavior in the console, or set
RedactionConfig
using the API.
How data is stored
Conversation data is stored long-term in the following ways:
- Customer-owned storage: This is data that you opt in to store in a system
that you have access to. This data is stored within your Google Cloud
boundary, giving you complete IAM control. The following
systems are used:
- BigQuery for custom analytics.
- Cloud Storage for raw audio recordings.
- Cloud Logging for service logs.
- Google-managed storage: This is data that is stored and managed by Google
that you don't have access to. This data contains redacted conversation
transcripts, tracing metrics (such as tool failures and tool latency),
conversation metrics (such as total sessions, escalation rate, and turns per
session used by the
monitoring dashboard), and
AI analysis metrics (AI aversion, abandonment rate, and
conversation outcomes).
The following systems are used:
- Spanner: Single-tenant if customer-managed encryption keys (CMEK) are used, or multitenant otherwise, used by CX Agent Studio and CX Insights to display conversation history.
- BigQuery: Single-tenant instance used by CX Insights for agent performance monitoring.
Conversation data is stored short-term in the following situations:
- A memcache is used for active session management and metadata. The time to live (TTL) is 30 minutes, after which the data is deleted.
- A Text-to-Speech (TTS) Memstore cache is used for voice agents to optimize output latency. The TTL is 1 hour.
Settings for controlling conversation data storage
Several settings control how conversation data is stored:
- Log your customer conversations: If disabled, all types of long-term
conversational data except BigQuery data (which you can disable
separately) are disabled. This applies to both CX Agent Studio and
CX Insights. Disabling this integration affects the monitoring
dashboard, because no data is stored to populate the dashboard. The data is
logically isolated, regionalized to match your deployment, and retained for a
configurable period (default 1 year, maximum 2 years; configurable with the
ConversationLoggingSettings.retention_windowfield in the API). - Improve agent performance by sharing conversation data: This setting permits the sharing of operational metrics and system call traces with Google to accelerate troubleshooting and improve system reliability. Google enforces a strict policy that customer content shared using this toggle is never used to train Google's production machine learning models.
- Export logs to BigQuery and Audio recording: Routes raw interaction data and audio to your designated, self-managed Google Cloud storage resources. For details about the exported table schema and example queries, see Export conversation logs to BigQuery.
- Enable Cloud Logging: Streams service and operational logs to your Cloud Logging environment.
- Enable redaction: Activates the DLP engine to automatically identify and scrub sensitive data before persistence.
Google access to conversation data
Google support and engineering personnel might have controlled, just-in-time access to Google-managed operational data for critical debugging and system maintenance. However, if Log your customer conversations is disabled, conversational data doesn't exist in any Google-owned persistent storage to be accessed. Only active session metadata and TTS cache are briefly held in a 30 to 60 minute memcache to facilitate the live call. Customer-owned resources remain entirely under your exclusive IAM control.
Data protection is enforced through multiple layers:
- Redaction: DLP redacts sensitive data before any write occurs.
- Access Transparency (AxT): All Google personnel access to conversation data is logged and compliant with Access Transparency controls, letting customers request and review audit logs.
What's next
- Evaluate agent performance on the monitoring dashboard.
- Test agent conversations in the simulator.
- Configure logging, redaction, and export options in project and agent settings.
- Explore advanced analytics and scorecards in CX Insights.