---
title: "Agentforce Actions: Where Should the Work Run?"
description: "Agentforce selects actions to complete a task; this explainer weighs native record updates against external services so engineers can place each responsibility sensibly."
---

# Agentforce Actions: Where Should the Work Run?

**Type:** [Trade-offs](https://yomu.fyi/visual-explainers/category/trade-offs.md)

![Trade-off diagram showing Agentforce choosing between Salesforce-native actions and external OpenAPI services, with benefits, costs, and decision conditions for each path.](https://yomufyi.s3.us-east-1.amazonaws.com/visual-explainers/c60ca77b-7d6f-4b34-a2a6-9366123455e3/image-ebdf93e5-000b-443e-ad04-32fa231f586f.webp)

> Agentforce selects actions to complete a task; this explainer weighs native record updates against external services so engineers can place each responsibility sensibly.

## Explanation

Agentforce can select discrete actions, while those actions may run in Salesforce or call external code through an OpenAPI-defined contract. Use Apex for transaction-critical record updates, and consider AppLink or a Heroku service when the work needs external integrations, intensive computation, elastic scaling, or existing Node.js, Python, or Java code. The key trade-off is control and proximity versus extensibility and reuse.

**Tags:** [Agentforce](https://yomu.fyi/topic/agentforce.md), [AI Agents](https://yomu.fyi/topic/ai-agents.md), [API](https://yomu.fyi/topic/api.md), [Salesforce](https://yomu.fyi/topic/salesforce.md)

## Related reading

### [Salesforce and Anthropic expand partnership](https://yomu.fyi/post/salesforce-and-anthropic-expand-partnership.md)
- Company: [Anthropic](https://yomu.fyi/company/anthropic.md)
- Published: Sep 10, 2026
- Type: Announcement

Salesforce and Anthropic announced an expanded partnership making Claude a preferred model for Salesforce’s Agentforce platform, with availability aimed at customers in regulated sectors including financial services, healthcare, cybersecurity, and life sciences. Through Amazon Bedrock, Claude traffic will remain within Salesforce’s virtual private cloud and trusted environment, while industry-specific solutions are being developed beginning with financial services. The companies are also deepening Claude’s Slack integration through a Model Context Protocol server that can access channels, messages, and files for summaries, decisions, drafts, searches, and connected Salesforce CRM and Tableau insights. Salesforce is deploying Claude Code across its global engineering organization, and Anthropic uses Claude in Slack for internal sales workflows. Agentforce powered by Anthropic and the Claude-Slack bidirectional integrations are available today, while the regulated industry collaboration and Agentforce 360 integration for Claude remain under development.


### [Donating MCP to the Agentic AI Foundation](https://yomu.fyi/post/donating-mcp-to-the-agentic-ai-foundation.md)
- Company: [Anthropic](https://yomu.fyi/company/anthropic.md)
- Published: Sep 10, 2026
- Type: Announcement

Anthropic is donating the Model Context Protocol (MCP) to the Agentic AI Foundation (AAIF), a directed fund under the Linux Foundation co-founded by Anthropic, Block, and OpenAI, with support from Google, Microsoft, AWS, Cloudflare, and Bloomberg. Introduced as an open standard for connecting AI applications to external systems, MCP now has more than 10,000 active public servers, adoption across major AI products, enterprise deployment support, and official SDKs with 97M+ monthly downloads across Python and TypeScript. The donation places MCP alongside Block’s goose and OpenAI’s AGENTS.md as AAIF founding projects, while its existing governance model remains unchanged. MCP also has a community-driven Registry, and the November 25th specification release added asynchronous operations, statelessness, server identity, and official extensions.


### [AppLink Fundamentals III: Building with AppLink – Development Flow and Language Choices](https://yomu.fyi/post/applink-fundamentals-iii-building-with-applink-development-flow-and-la.md)
- Company: [Heroku](https://yomu.fyi/company/heroku.md)
- Author: Ken W. Alger
- Published: Jul 31, 2025
- Type: Tutorial

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.


### [How to Create an AI Agent With Heroku and Agentforce](https://yomu.fyi/post/how-to-create-an-ai-agent-with-heroku-and-agentforce.md)
- Company: [Heroku](https://yomu.fyi/company/heroku.md)
- Author: Andrew Fawcett
- Published: Oct 17, 2024
- Type: Tutorial

The post shows how to extend Salesforce Agentforce with a Heroku-hosted custom action when customer information remains in older, unstructured cloud archives and requires scalable, real-time processing. It explains that Agentforce selects discrete actions, while Heroku exposes code through External Services using an OpenAPI description of the request and response. The sample uses Java and Spring Boot, an H2 in-memory database, springdoc.org for OpenAPI generation, and Spring AI to convert natural-language questions into SQL before returning results for an Agentforce response. The integration is identified as pilot-only and not intended for production, while the post also points to Heroku Postgres, Heroku Connect, Data Cloud, and pgvector as extensions for other agent use cases.
