Introducing Agentforce Optimization

Gain Complete Visibility Into Your AI Agents With Agentforce Optimization

By

If you’ve ever struggled to understand what your AI agent actually did in a conversation, or why it missed the mark, you’re not alone. AI solutions promise better experiences, but too often, Salesforce Admins and agent builders are left in the dark without clear ways to monitor performance or improve the customer journey.

Poor agent performance isn’t just frustrating — it risks your brand reputation. Admins need visibility to catch issues early, fix misconfigurations, and build trust.

While these solutions hold the promise of automating tasks and elevating customer experiences, there has historically been a significant lack of clear visibility into agent-customer interactions. This makes it challenging to truly grasp customer needs and efficiently evaluate agent effectiveness at scale, as manually analyzing hundreds of thousands of interactions is simply not efficient.

At Salesforce, we recognized this critical demand for comprehensive post-conversation visibility as a key factor in improving agent performance and optimizing agent effectiveness. While our previous Utterance Analysis feature laid a foundation for understanding user-agent interactions, it was limited in scope, highlighting the need for more than static reports and dashboards.

To address this, as part of the announcement of Agentforce 3, we developed Agentforce Optimization as part of the Studio experience – a powerful, interactive, and intelligent tool designed to provide in-depth visibility into AI agent interactions. This solution empowers administrators to monitor performance, identify configuration gaps, and proactively address issues, ensuring agents deliver accurate, efficient, and high-quality responses. It achieves this by surfacing meaningful requests from conversations, enabling the quick identification of trends, and supporting business decisions based on actual customer input.

Agentforce Optimization within the Agentforce Studio app.

Remembering the old days

We’ve all been there. You go to your mobile/TV/internet provider’s website and chat with a bot. Well, chatting is a strong word, as essentially what we did was click endless buttons, exploring different routes only to understand that what we wanted support with wasn’t supported by that experience.

“When you talk, you are only repeating what you already know. But if you listen, you may learn something new.”

The Dalai Lama’s wisdom applies surprisingly well to the bots vs. agents debate.

Reflect on that as you design a bot experience: You spend days outlining customer journeys, defining expected requests, mapping user flows, and building decision trees. But in doing so, how often do you learn something new from your customers, like their true pain points, their unexpected questions, or their genuine needs?

That’s the real difference between constructing a bot and implementing an agent. A bot just repeats what you programmed it to say, while a large language model (LLM)-based agent has the potential to listen to what your customers are asking, revealing insights that might otherwise be missed.

Bots to autonomous agents comparison.

I get it — transitioning to LLM-based agents can be intimidating. You have to closely monitor outputs, ensuring the agent behaves as intended and avoids pitfalls. But these challenges are solvable. And the upside? Giving your customers a voice unlocks opportunities to shape your business strategy based on real customer conversations, not just hypotheses.

Agents changed everything. And by everything I also mean us as consumers.
Not only do I get quick answers to what I came for; while I’m interacting with the agent, I can ask hundreds of other things as well.

  • “Do you have a special offer if I’m adding another account?”
  • “And what about that technical issue we had a few days ago, can I get a refund for that?”
  • “Oh and I’d like to let you know that I’ll be moving to a new apartment in 3 weeks — should I already be scheduling a technician?”

All of this and more in one session. Since the experience is much better, customers can interact much more. This obviously creates a lot of new requirements and requests for a company. How can I determine whether a session was a good interaction or a bad one?

Also, consider this hurdle: A simple question or request can be asked in multiple different ways — how would we know it’s all the same request without having to read through thousands of sessions?

When we built an exploration and monitoring tool for Agentforce agents, that listening approach was exactly what we had in mind. By surfacing meaningful requests from thousands of agent-customer conversations, we help you quickly spot trends and base business decisions on actual customer input.

Imagine an AI agent experience where customers can ask diverse questions in a single session, from account inquiries to technical issues and future service needs. While this enhances the customer experience, it presents a new challenge: how to effectively assess the quality of such multifaceted sessions and identify specific areas for improvement. For instance, if an agent successfully answers two questions but fails on a third, how do you evaluate that overall experience?

Introducing Optimization as part of Agentforce observability

That’s where Agentforce Optimization comes in. It’s a powerful tool designed to give admins and agent builders in-depth visibility into AI agent interactions. Agentforce Optimization helps monitor performance, identify configuration gaps, and optimize agent effectiveness. It enhances the categorization, analysis, and utilization of interaction data by allowing users to define personalized labels and categories, thereby enabling targeted analytics and actionable insights.

In Agentforce Optimization, we’ve been dividing agent-user sessions into particular moments. Each moment is basically a user intent being answered by the agent. Within a single session, users can have one or multiple moments. Differentiating and evaluating each one separately helps us understand an agent’s performance much better, and also aggregates similar requests across multiple sessions.

Session moment splitting; configured topic on the left, while moment score and score reasoning on the right.

Key concepts driving Agentforce Optimization

Agentforce Optimization provides an interactive way to access and drill down into agent interactions, built upon several key concepts.

  • Moments: Agentforce Optimization breaks down sessions into “moments,” which are granular parts of a session where a particular user intent is raised and handled. A single session can include multiple moments, helping to aggregate requests across sessions and surface top requests within an agent. Moments are specifically split based on distinct user intents within a chat session.
  • Quality Score: Each moment is assigned a relevance score, ranging from 1 (low) to 5 (high), indicating how helpful the agent’s response was to the user’s request. This score will be customized in the near future by customers using Prompt Builder, allowing for tailored evaluation criteria.
  • Tags: Agentforce Optimization leverages standard tags to categorize conversations based on their content and intent.
    • System Tags (Clusters): These are automatically generated by Salesforce through cross-session analysis. New clusters are created weekly, sampling data from at least 30 days or 50,000 moments to ensure relevance. Clusters are only created if they have at least 10 associated moments. In addition, we have a sophisticated algorithm that keeps clustering consistency, allowing admins to trace and monitor these tags over time.

Moments page to provide a quick glance into agent interaction and performance.

Under the hood: How Agentforce Optimization works

Agentforce Optimization is powered by the Agentforce Analytics Foundations Semantic Data Model (SDM), which acts as a unified source of truth for metrics, definitions, and calculations. This model enables seamless querying and integration with the UI. Once agent sessions are broken down into meaningful “moments” and evaluated for quality, these moments can be labeled and grouped using intelligent logic.

Out of the box, Agentforce Optimization applies a clustering algorithm to group similar moments and assign meaningful tag names. This allows you to identify patterns in customer requests, spot performance gaps, and prioritize areas for deeper investigation.

Looking ahead, we’re working on enabling standard and custom tags — a major enhancement planned for Q4. This feature will be built around Prompt Builder, introducing a specialized prompt template for Agentforce tagging. It will let you define your own tagging logic, backed by a schema that ensures structured and validated output from the LLM.

This feature will bring more tailored insights by supporting both predefined (enum) and dynamic (free-text or numeric) values. It will allow you to generate your own logic for tagging interactions, moments, and sessions, providing user-defined custom tags to extend functionality and analytics capabilities. Each data artifact will be tagged with both a tag name (for example, “Competitor mention,” “CSAT”) and a corresponding value (for example, “Walmark”, “High”).

Benefits of Agentforce Optimization

Agentforce Optimization empowers administrators and agent builders with a range of capabilities to enhance agent performance and derive valuable business insights.

  • Deep Business Insights: Gain a deeper understanding of what customers are asking and how they engage with the agent. This can help discover unmet end-user needs and drive the development of new topics.
  • Optimized Agent Performance: Monitor agents effectively, identify configuration gaps, and proactively address issues to optimize agent effectiveness. Agentforce Optimization flags low-performing topics by quality score, agent misinterpretations, and areas where conversations weren’t handled properly.
  • Drill-Down Capabilities: Trace issues to specific moments in a conversation, reviewing how users phrase questions and where the agent’s response fell short. A full session trace is available to review why an agent struggled, including steps, latency per step, and variables accessed.
  • Automated Classification: The Tag Associator automates conversation classification without manual intervention. This mechanism classifies and extracts metadata from conversations based on predefined conditions (for example, NLP-based instructions, keyword matching) and extracts relevant values (for example, entity recognition, sentiment classification, numerical parsing). It enhances analytics by structuring unstructured dialogue and supports decision-making by extracting key insights like competitor trends or CSAT trends.

System tags; grouping similar intents together to provide a better and higher-level view.

Examples in action

Imagine analyzing your customer interactions with Agentforce Optimization.

  • Competitor Mention Detection: Agentforce Optimization can automatically tag interactions where competitors are mentioned, such as “Walmark offers a similar plan at a lower price.”
  • CSAT Tagging: Automatically identify and tag conversations where customers express satisfaction, extracting the CSAT score (for example, “This was really smooth, thanks for that quick resolution!” → CSAT = 5/5).
  • Identifying Performance Gaps: Agentforce Optimization can highlight that your agent is greeting customers twice or speaking the wrong language, allowing you to quickly pinpoint and fix these issues at scale.

The road ahead

Agentforce Optimization is continuously evolving. Future enhancements include:

  • Visualizing the full session trace per interaction
  • Creating standard and custom tags
  • Applying your own logic for quality score using prompt builder and other tools
  • Surfacing recommendations and insights
  • Viewing common session flows
  • Testing center integration
  • And more, and more…

Session tracing in Agentforce Optimization’s session page, planned to be released this year.

Creating a custom tag using Prompt Builder, planned to be released this year.

Your AI agent, reimagined

Ultimately, Agentforce Optimization ensures your AI agents deliver accurate, efficient, and high-quality responses, elevating customer experiences. It’s a partner in driving your AI agent’s success. By offering deep insights and actionable solutions, it empowers you to create agents that not only meet but also exceed customer expectations.

Start exploring today and take the first step toward building an AI agent that truly delivers.
Your customers deserve it — and so do you. Let’s make your AI agent the best it can be.

Ready to take the next step? Sign up for Agentforce today and unlock the full potential of agents for your organization.

Resources

engaging stakeholders with agentforce

Demo to Deployment: Engaging Stakeholders With Agentforce

As Salesforce Admins, we’ve dived headfirst into Agentforce. We’re building agents in Trailhead, attending workshops like Agentforce NOW, doing hands-on sessions with our Community Groups and at conferences like TDX, and coming up with ideas of how to put agents to work for our individual business need, even bringing that to fruition through events like […]

READ MORE
A podcast cover featuring John Demby for the Salesforce Admins Podcast.

What Makes Tableau Pulse Essential for Salesforce Admins?

Today on the Salesforce Admins Podcast, we talk to John Demby, Director of Solution Engineering at Tableau. Join us as we chat about Pulse for Salesforce, Tableau Einstein, and how easy it is to get started. You should subscribe for the full episode, but here are a few takeaways from our conversation with John Demby. […]

READ MORE
Connect teams and data with Salesforce Foundations

Connect Teams and Data with Salesforce Foundations

Editor’s Note: This post was updated on April 3, 2025, with the latest information and resources. As Salesforce Admins, you’re well-versed in delivering Salesforce features to your users and stakeholders. Salesforce Foundations makes it even easier for you to get the most out of Salesforce by adding cross-department features built into your existing CRM. Salesforce […]

READ MORE