Agentforce Actions: Where Should the Work Run?
Agentforce selects actions to complete a task; this explainer weighs native record updates against external services so engineers can place each responsibility sensibly.
Loading…
Topic
25 posts about Salesforce. Every summary links to the original.
See the idea
Agentforce selects actions to complete a task; this explainer weighs native record updates against external services so engineers can place each responsibility sensibly.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
MuleSoft’s observability platform faced operational challenges with nearly 3,000 monitoring clusters and 153 services. The team rebuilt the platform on Salesforce’s Hyperforce, consolidating clusters to 24 and reducing services to 43. They standardized on OpenTelemetry and built a translation layer to preserve existing customer APIs and UI. Automated end-to-end validation compared queries and alerts across both environments during the migration of 39 petabytes of telemetry. The rollout was sequenced across more than 12 regions in customer batches over a year, achieving a 5x gain in infrastructure efficiency and 2X improvement in query latencies.
Salesforce built the Second Brain, a Git-based engineering knowledge framework, to address scattered engineering decisions that caused AI agents to act on outdated or contradictory information. The system uses LLM-powered skills and a plugin to create domain-specific repositories connected by a knowledge graph, preserving architectural decisions, source evidence, and implementation details. An initial attempt with a single repository failed due to slow retrieval and high token consumption, leading to a shift to 21 smaller, domain-specific brains. The framework helps automate approximately 80% of Kubernetes upgrades, reducing human effort from three months to three weeks. The post provides a tutorial to create an initial Git-based knowledge repository in about 20 minutes, starting with one engineering domain.
AI agents retrieving customer context from fragmented enterprise systems face latency and accuracy tradeoffs, with traditional approaches like runtime calls or warehouse joins adding seconds to responses; one tenant had over 1,000 SKUs and 800 cancelled orders. Salesforce addressed this by building Data 360 data graphs that precompute identity resolution, entitlement calculations, and joins before agent queries, moving complex data preparation out of the conversational critical path. Production graph lookups achieved a median latency below 200 milliseconds, down from early benchmarks of approximately 400 milliseconds. Storing scores in Data 360 reduced average latency by approximately 48% at five concurrent callers and 40% at 30 compared to zero-copy views. The team automated deployment and validation, uncovering 2,765 tenants with missing account IDs during testing and reducing sandbox recovery from days to about eight minutes.
Salesforce’s release team faced a dangerous scenario where an AI agent could approve a production change without verifying required signoffs. To solve this, the team built ROAM (Release Operations Agentic Manager), an Agentforce-pattern agent that automates CAB reviews across 18 Salesforce products. ROAM uses deterministic code gates to independently verify each approval requirement, such as QA test runs and architect signoffs, while the LLM only narrates the result. The system reduced median review turnaround from approximately 24 hours to 12 seconds, with the 95th percentile below 45 seconds. Over 550 CAB reviews in 10 weeks, ROAM recorded zero incorrect approvals, leading release engineering to make it mandatory for every production patch.
Salesforce’s team faced the challenge of building predictive AI models for IT service management without real customer incidents to learn from. They generated synthetic training data by asking product managers for sample scenarios, varying features, and using open-source LLMs to produce additional records. Validation was difficult because SLA breaches are rare, making aggregate accuracy misleading; the team instead tested whether predictions responded correctly to isolated risk factors and whether explanations matched what a service manager would flag. The solution was to ship a training contract—Data Model Object API names, transformation logic, and model structure—so each customer’s incident history determines the learned XGBoost parameters. Data 360 connects data preparation, model training, inference, and presentation through the same template, enabling reusable customer-specific pipelines without sharing trained models.
Salesforce’s retirement of its SOAP API login mechanism deliberately triggered more than 600 test failures, creating a blast radius where genuine regressions could hide among expected failures. The existing manual triage workflow could process only 50 failures at a time, often created duplicate work items, and sometimes misrouted failures, requiring two or three days of effort by multiple engineers. The team built AI-Assisted Test Failure Buddy as a Python and FastMCP process exposing eight tools to Claude Code or Cursor, connecting to Salesforce’s internal GUS workflow system. Deterministic code handles API operations and regex parsing, while AI interprets novel stack traces and resolves ambiguous ownership across teams. One engineer processed 600 failures in approximately 90 minutes using the tool, which has since been adopted by three or four teams.
Salesforce’s AI Research team built EGI-Bench to evaluate whether an AI agent is truly ready for enterprise deployment. The framework combines eight independently developed enterprise benchmarks into a single scoring system organized around six skill dimensions: task outcomes, tool actioning, planning, grounding, safety, and engineering. EGI-Bench spans more than 20 subdomains and more than 1,500 test tasks, and it provides both a deep mode for comprehensive evaluation and a quick mode for a faster directional signal. Testing 14 LLMs revealed that no single model excelled across all dimensions, that multi-step planning remains a challenge, and that cost-efficient models are increasingly competitive. The framework is available on GitHub with customizable weights so practitioners can prioritize the capabilities most relevant to their use case.
Salesforce’s Hyperforce Runtime Platform (HRP) organization faced scattered AI experiments across 500 engineers in 70-80 scrum teams, with overlapping efforts and tight delivery commitments. The team established a federated AI adoption model with an AI Steering Committee, AI Champions, and the HRPDX shared Claude Code plugin to distribute AI instructions and skills. Teams contributed capabilities by solving their own pain points, with ownership assigned to the building team for end-to-end delivery and support. Within three months, AI adoption approached 100%, yielding a 26% gain in team throughput, a 32% improvement in inner-loop efficiency, and cycle time cut from 22 days to 11 days. The AI paved path model sustains adoption by continuously connecting emerging bottlenecks to available capabilities through metrics and a feedback loop.
Salesforce has integrated Anthropic’s Claude models (Claude 3.5 Sonnet, Claude 3 Opus, and Claude 3 Haiku) into its AI platform via Amazon Bedrock. Customers access Claude through the Bring Your Own Large Language Model feature in Einstein Studio, allowing selection within prompt templates and custom actions for Agentforce Agents. Use cases span sales, marketing, customer service, healthcare, finance, legal, technology, and media, including tasks like generating pitches, summarizing cases, and analyzing contracts. Admins and developers configure models by connecting to Amazon Bedrock, testing in the Model Playground, and creating prompt templates in Prompt Builder without advanced coding. All interactions maintain enterprise security through the Einstein Trust Layer, which applies dynamic grounding and toxicity detection, alongside existing LLM options since Summer ’24.
Intercom announced new HubSpot and Marketo apps that sync customer data to help sales and marketing teams nurture and convert more leads. The apps sync leads and conversations across tools, allowing teams to avoid switching tabs or losing sales opportunities. They integrate with Intercom’s Operator bot to automatically qualify and send leads to HubSpot, Marketo, or Salesforce, or manually send with one click. Users can view lead data from these tools by hovering over external profile links in Intercom Inbox, and basic information updates automatically. Every Intercom conversation is sent to the lead’s profile in HubSpot, Marketo, or Salesforce, providing a complete history of interactions for continued nurture campaigns.
Twilio announced general availability of its Salesforce Partner Contact Center Integration, embedding its global Super Network with over 4,800 direct carrier relationships into the native Salesforce workspace. The integration unifies omnichannel orchestration across voice, SMS, and WhatsApp using Twilio TaskRouter, routing conversations into Salesforce’s omnichannel widget while preserving existing skills-based routing rules and syncing agent presence across channels. Real-time event metadata streams into the widget before a call connects, showing recent customer activity and sentiment to reduce average handling times and eliminate repeated information requests. Carrier-grade telephony with native real-time transcription and recording splits caller and agent voices for precise transcriptions, sentiment scoring, and post-call summaries. By pairing Salesforce’s familiar interface with Twilio’s communications engine, the integration gives agents a seamless workspace with a single source of truth, eliminating tab-switching and lost context.
Enterprise AI agents without persistent memory suffer from the “Groundhog Day” problem, repeatedly asking users to re-explain themselves. Agentforce Memory addresses this by giving agents persistent memory that retains user preferences, conversation history, and context across sessions. The team first established a shared terminology document to define concepts like semantic and episodic memory before architectural discussions could proceed. The architecture evolved incrementally, starting with conversation history injection and later adding semantic retrieval to find relevant past information regardless of recency. Memory retrieval uses keyword search during pre-orchestration to balance context quality with low latency, and moving memory into the Reasoner simplified configuration for administrators. Privacy and user trust were treated as architectural requirements from the start, enabling individual user controls over memory creation and management.
Salesforce’s Assistive Authoring aimed to reduce prompt-template creation from 25 minutes to under a minute by using Agent Graph. A router node dispatches natural-language requests to specialized sub-agents for creation, refinement, or clarification while state variables carry context. Deterministic controls prevent the LLM from corrupting routing, record identity, or structured output through guarded transitions and a server-side transpose layer. A discovery service normalizes available data fields into an allowlist, and the LLM can only select from validated references. A human-in-the-loop gate ensures the agent never saves or executes, presenting output as an accept-or-reject diff only.
Agentforce Health Monitoring (AHM) addresses silent availability failures in production AI agents that traditional monitoring misses because agents can appear healthy even when unreachable. The team unified telemetry from approximately five or six locations across sessions, reasoning steps, tool calls, errors, and escalations into a coherent representation. End-to-end alerting latency was reduced from roughly 20 minutes to several minutes by converting Data 360 ingestion to streaming and simplifying query complexity. AHM provides 16+ built-in metrics including agent availability, error rate, response/escalation rate, engagement, and latency, with a drill-down interface connecting alerts to session context. The roadmap includes cost, TTFT/TTLT, toxicity, feedback metrics, RAG Quality Monitoring integration, and eventually a runtime insight agent for root-cause analysis and automated remediation.
Heroku Connect’s built-in CLI diagnostic utility addresses troubleshooting when Salesforce records lag or fields fail to update as expected, replacing manual dashboard searches with a focused health check. After installing the Heroku Connect CLI plugin, engineers can run heroku connect:diagnose --verbose to inspect connection-level settings and mapping or field configurations. The output reports sequential GREEN, YELLOW, RED, or SKIPPED statuses, with checks covering Salesforce API version, permissions, database plan, schema changes, field types, unique identifiers, and other constraints. Examples include an outdated API version, missing View All Data or Modify All Data permissions, binary or calculated fields, and Salesforce or Postgres schema drift; the text pairs these warnings with actions such as recreating or refreshing a connection, removing binary fields, or realigning mappings. Running the command before migrations or Salesforce schema changes provides an immediate view of configuration mismatches and sync bottlenecks.
The article describes Heroku’s effort to unify Salesforce and data from more than 20 applications in a real-time analytics warehouse after traditional ETL created API, freshness, performance, and maintenance problems. Its architecture uses Heroku Postgres as an operational warehouse and staging layer, AWS Redshift for historical analytics, Heroku Connect for direct Salesforce replication, follower databases for read-only source access, and Apache Airflow for orchestration. Template-driven Python jobs and 200+ JSON definitions support incremental, bulk, and date-range loads, while 30+ DAGs and monitoring across 12 regional Heroku Connect instances provide automated retries and consistency. Reported outcomes include over 10 TB processed monthly, sub-minute freshness, 99.99% pipeline uptime, 60% lower integration costs, and 40% better customer analysis accuracy. Tableau and Dataclips provide real-time, historical, and ad hoc reporting, while planned or newly described capabilities include Postgres Advanced, expanded Connect synchronization, and zero-copy Data Cloud ingestion in beta.
Heroku Connect customers needing current Salesforce data for applications such as custom quoting have faced stale records because legacy synchronization could lag, with Opportunity Line Items among unsupported objects for Accelerated Polling. Heroku is rolling out support for Salesforce Change Data Capture (CDC), allowing Accelerated Polling to listen for changes instead of relying only on the Salesforce Streaming API. That change adds more than 170 Salesforce standard objects to Accelerated Polling, including Opportunity Line Items, Pricebook2, Asset, and OpportunityLineItem, so critical data can synchronize more quickly. To enable it, a Salesforce administrator turns on CDC for selected objects, after which the corresponding Heroku Connect mappings expose the “Uses Accelerated Polling” option.
Salesforce integrations commonly use Connected Apps or External Services, but long-lived OAuth tokens and public vendor endpoints can expose org data to replay and misuse. Heroku AppLink provides a managed bridge in which a service mesh admits requests only from explicitly connected Salesforce orgs, validates context, and exposes services as native Salesforce actions. For calls back to Salesforce, its SDK obtains short-lived, scoped credentials at runtime through user, user-plus, or authorized-user modes, avoiding refresh-token storage in vendor systems. The mesh uses the x-client-context header to convey org and user information, while the SDK keeps bearer credentials out of application code. The post describes setup commands for the AppLink add-on, service-mesh buildpack, External Service publication, and authorizations, concluding that AppLink improves governance, least privilege, and replay resistance.
AppLink Fundamentals III describes how to build Salesforce extensions on Heroku, covering local testing, OpenAPI contract management, deployment workflows, and programming-language selection. For applications that receive Salesforce requests, the supplied invoke.sh script simulates production headers using Salesforce CLI data, can activate session-based permission sets, and accepts JSON payloads for testing; Pattern 1 applications that call Salesforce APIs do not require this special setup. The OpenAPI specification serves as the shared contract for endpoints and Salesforce consumers, with publish-time validation intended to catch misalignment. AppLink also supports Agentforce actions through x-sfdc agent extensions, enabling topics, publishing, input and display settings, privacy controls, and outputs such as generated PDFs in the automotive finance example. The comparison positions Apex for transaction-critical record updates and AppLink languages such as Node.js, Python, and Java for external integrations, intensive computation, elastic scaling, and reuse of existing code.
Heroku AppLink lets connected Heroku applications extend Salesforce through Data Cloud, Flow, Apex, and Agentforce, bringing external logic, real-time data processing, and automation into Salesforce orgs. It uses an OpenAPI YAML or JSON specification, including x-sfdc metadata for authentication and permissions, to generate strongly typed Apex classes, Flow External Service definitions, Agent Actions, and related Connected App and Permission Set configurations. Developers can invoke services synchronously or asynchronously from Apex, use operations as no-code Flow actions, and configure Agentforce to call endpoints for specialized processing; callbacks support longer-running work. AppLink uses User Mode authentication by default, while administrator-controlled Permission Sets can temporarily elevate access during execution without changing a user’s permanent permissions.
The best engineering reads, once a week.