Salesforce
6 min read

How Agentforce Achieved 3–5x Faster Response Times While Solving Enterprise-Scale Architectural Complexity

Read Full Article

Summary

The article outlines the engineering efforts behind the Agentforce service at Salesforce, detailing how a team optimized a complex architecture to achieve significant improvements in response times. Key strategies included restructuring the responsibilities of deterministic and LLM-driven components, addressing latency issues through consolidated model calls, and ensuring a scalable multi-brand architecture. The team faced challenges related to balancing deterministic logic with LLM reasoning and managing data flow, which were critical to maintaining consistency and accuracy in responses. The article emphasizes the importance of a tailored approach for each brand to ensure quality and user experience.

Key Learnings

  • 1Consolidating reasoning flows into a single model call can drastically reduce latency and improve response times.
  • 2Separating deterministic logic from LLM processing enhances predictability and reduces inconsistencies in outputs.
  • 3A multi-agent architecture allows for tailored conversational experiences, preserving brand identity and improving user interactions.
  • 4Optimizing data retrieval processes is crucial for minimizing delays in high-volume order interactions.
  • 5Establishing a strong technical foundation early on can facilitate scaling and adaptability in complex enterprise environments.

Who Should Read This

Senior AI Engineers specializing in large-scale conversational AI systems and performance optimization.

Test Your Knowledge

?

What architectural trade-offs did the team consider when deciding between a single agent versus multiple agents for different brands?

?

How did the restructuring of prompt instructions contribute to the reduction of inconsistencies in LLM outputs?

?

What specific optimizations were implemented to address latency constraints in the order processing flow?

?

In what ways did the team ensure that the Agentforce architecture could support future scalability without extensive rework?

?

What challenges did the team encounter regarding data flow, and how did they resolve these to maintain system flexibility?

Topics

Read Full Article at Salesforce

More articles about Large Language Models

Explore Large Language Models engineering →

More from Salesforce Engineering

View Salesforce engineering blogs →
Salesforce
6m

Engineering Platform Trust: Cutting Customer Case Volume 20x with Petabyte-Scale Health Signals

The article details the development of a Technical Health Score system at Salesforce, aimed at quantifying platform trust through analytics pipelines that handle petabytes of telemetry data. By...

Salesforce
5m

How Data 360 Optimized Kubernetes Scheduling Architecture, Delivering 13% Cost Savings

The article discusses how the Data 360 Compute Fabric team at Salesforce optimized Kubernetes scheduling to enhance resource efficiency and reduce costs. By evolving the default kube-scheduler...

Salesforce
6m

Delivering Accurate, Low-Latency Voice-to-Form AI in Real-World Field Conditions

The article explores the development of a hybrid architecture for a voice-to-form AI system used in field service applications. It highlights the integration of on-device speech-to-text capabilities...

Salesforce
7m

Hyperforce Migration at Scale: How Deterministic Automation Replaced Manual Spreadsheets Across 95,000 Organizations

The article outlines the development of the Migration Intake and Processing Service (MIPS) at Salesforce, which automates the migration of over 95,000 organizations to Hyperforce. It highlights the...

Salesforce
5m

Building an AI-Accelerated Compliance Automation Platform for 24x Faster Audits

The article outlines the development of FastTrack, a compliance automation platform by Salesforce, which significantly reduces audit execution time through AI-assisted development and API-based...