---
schema_version: "1"
id: cf622e7e88503b89acdadddd2ee84a0dd2301540d7ac7b46a4b9800ccc8a564e
title: Agent Optimization
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/generative_ai_optimize.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.generative_ai_optimize.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b0d4c8a2db24262fea3a1ecd80f979e01f8a985be6ccb6013a027027ae711068
description: Use Agent Optimization to inspect agent sessions from the initial user request to the agent’s resolution.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Agent Optimization

Use Agent Optimization to inspect agent sessions from the initial user request to the agent’s resolution.

### Required Editions

| Required Editions |
| --- |
| Agent Optimization is available in Salesforce Enterprise, Performance, and Unlimited Editions with Salesforce Foundations or Agentforce 1 Edition. |

Watch this video to learn how Agentforce Optimization and Agent Analytics work together to help you continuously refine and improve your AI agents.

[](https://youtu.be/QgSfsD3qwXI?si=BMyIClrzau1-uLP6)

[![Watch: Agentforce Optimization and Agent Analytics](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/agentforce_optimization_analytics_video.png)](https://youtu.be/QgSfsD3qwXI?si=BMyIClrzau1-uLP6)

[](https://youtu.be/QgSfsD3qwXI?si=BMyIClrzau1-uLP6)

Here are the steps and information required to set up and use Agentforce Optimization.

- **[About Agent Optimization](https://help.salesforce.com/s/articleView?id=ai.generative_ai_optimize_about.htm&release=264.0.0&type=5)**  
    Agent Optimization provides tools to dive deeper into unresolved interactions, identify knowledge gaps, and analyze agent sessions using the Session Tracing Data Model. Agent Optimization is a key component of Agentforce Observability, designed to help you understand how your AI agents perform in real-world scenarios. By analyzing user interactions and agent responses, you can identify areas for improvement and take action to enhance agent effectiveness.
- **[Set Up Agent Optimization](https://help.salesforce.com/s/articleView?id=ai.generative_ai_optimize_setup.htm&release=264.0.0&type=5)**  
    To use Agent Optimization, turn it on in Einstein Setup. Analyze agent sessions, identify knowledge gaps, and explore unresolved interactions based on Agentforce Session Tracing data.
- **[Scorers and Custom Scorers](https://help.salesforce.com/s/articleView?id=ai.generative_ai_optimize_scorers.htm&release=264.0.0&type=5)**  
    Scorers evaluate agent sessions for quality and business insights. You can score sessions with prompt templates that run automatically, by API, or manually in Agentforce Studio. Use out-of-the-box scorers, edit existing scorers, or create custom scorers with predefined or open-ended outputs.
- **[Use Intents in Agent Optimization](https://help.salesforce.com/s/articleView?id=ai.generative_ai_optimize_intent_use.htm&release=264.0.0&type=5)**  
    Work with intents in Agent Optimization to understand user requests, analyze interaction patterns, and improve your agent's performance.
- **[Troubleshoot Agent Optimization](https://help.salesforce.com/s/articleView?id=ai.generative_ai_optimize_troubleshoot.htm&release=264.0.0&type=5)**  
    Resolve common issues with Agent Optimization, including setup problems, data display issues, and performance concerns.
- **[Analyze Data with Agent Optimization](https://help.salesforce.com/s/articleView?id=ai.generative_ai_optimize_use.htm&release=264.0.0&type=5)**  
    Use Agent Optimization to drill into sessions, analyze quality scores, and identify patterns to improve your agent's performance.