All posts

Agentforce vs n8n: where should your AI agent live?

Agentforce vs n8n for AI agents: data access, licensing, control, testing and lock-in compared, with a decision table and three typical situations.

Agentforce vs n8n is a question about where the agent lives: Agentforce runs inside Salesforce, next to your records, permissions and Flows. An n8n agent runs outside and reaches Salesforce through the API, alongside every other system you use. Choose Agentforce when the work starts and ends in Salesforce, and n8n with an LLM when Salesforce is one of several systems in the process.

Two different shapes of agent

Agentforce is Salesforce's own agent product. You build an agent in Agentforce Builder from subagents and actions. Subagents were called topics until April 2026, and Salesforce's developer guide says the rename changed nothing in how they work. Actions are the tools: a library of standard ones, plus custom actions built on Flows, prompt templates or Apex.

An n8n agent is a node in a workflow. You connect a chat model and tools to the AI Agent node, and the agent decides which tool to call. One of those tools can be the Salesforce node, which n8n documents as usable by an AI agent. Others can be your inbox, your ERP, a database or any HTTP API.

Data access

Agentforce sits on the data. It reads records, knowledge and related objects without an integration layer, and requests to the model pass through the Einstein Trust Layer. Salesforce lists what that layer does: grounding in CRM data, masking of sensitive data, toxicity detection, an audit trail, and zero data retention agreements with third-party model providers.

An n8n agent sees Salesforce through a connected integration user. It can do what that user's permissions allow, through the operations the node supports: create, update and upsert on the main objects, SOQL queries, and invoking a Flow. Two consequences follow.

First, every read and write is an API call. Salesforce counts calls against a daily allocation for the whole org, so a chatty agent has to be designed with that in mind.

Second, the protections the Trust Layer gives you inside Salesforce are yours to arrange outside it. You choose the model provider, sign its data processing terms, decide what is masked before a prompt is sent and where logs are kept. That is more work. It is also more choice, including running n8n on your own infrastructure.

Licensing model

Agentforce is a paid Salesforce product with its own pricing. As of November 2026, the Agentforce pricing page lists several ways to buy:

  • Flex Credits: $500 per 100,000 credits. A standard Agentforce action uses 20 credits, which works out to $0.10 per action.
  • Conversations: $2 per conversation, for customer-facing agents.
  • Per-user add-ons: $125 per user a month for unmetered employee-facing use in Sales, Service and Field Service.
  • Salesforce Foundations: a free starting tier.

Salesforce notes that the page is for information only and subject to change, so confirm with your account executive. Agent actions are available in Enterprise, Performance, Unlimited and Developer editions, and the add-on licences required vary by agent type.

n8n splits the cost differently. You pay n8n per workflow execution on its cloud plans, or nothing in licence fees on the self-hosted Community edition (n8n pricing). You pay the model provider for tokens. You pay for a server if you host it. And Salesforce API calls come out of the allocation you already have.

Neither is cheaper by default. Agentforce cost follows actions or conversations. n8n cost follows executions and tokens. To compare, count how many agent runs you expect a month and how many actions or model calls each one needs.

Control and testing

Agentforce gives you structure. Instructions, subagents and guardrails are configured in one builder, and Salesforce has added Agent Script for rules that must run the same way every time. For testing, Salesforce documents three routes: the Testing Center in the UI, Agentforce DX from the command line, and a Testing API.

n8n gives you the workflow itself. Every step between the trigger and the result is visible and editable. You can put fixed logic before and after the agent, require human approval before a specific tool runs, and use evaluations to score the agent against known test cases. You also choose and change the model yourself.

In our view the testing tools matter less than the test plan. Either way, somebody has to write the questions the agent must answer, the ones it must refuse, and the records it must never touch, then run them before launch and after every change. At Morningscale that is a dedicated QA step on every build.

Lock-in

An Agentforce agent is Salesforce configuration. Its actions are Flows and Apex in your org. If you already run the business on Salesforce, that is consistent with everything else you have built there. It also means the agent, its pricing and its roadmap are Salesforce's.

An n8n agent is portable in a different way. The workflow runs wherever n8n runs, and swapping the model is a change to one node. The lock-in is to your own build: someone has to host it, monitor it and keep it documented.

Decision table

QuestionPoints to AgentforcePoints to n8n with an LLM
Where does the work happen?Inside Salesforce screens and channelsAcross email, ERP, ATS, chat and Salesforce
Who talks to the agent?Salesforce users, or customers on Salesforce channelsBack-office processes, or users in other tools
Where is the knowledge?Salesforce records and KnowledgeDocuments and systems outside Salesforce
Who will maintain it?A Salesforce admin teamA team comfortable with workflows and APIs
How do you want to pay?Per action, conversation or userPer execution and per token
Must data stay on your servers?Not the deciding factorSelf-hosting is possible
Model choiceSalesforce's managed options are enoughYou want to pick and switch models

Three typical situations

1. A service team that lives in Salesforce

Cases, knowledge articles and customer history are all in Salesforce, and agents answer customers on Salesforce channels. Here Agentforce is the natural home. The data is already there, permissions already describe who may see what, and a handover to a human service rep stays inside Salesforce. Our Agentforce implementation page covers how we set that up and test it.

2. A process that crosses five systems

A CV arrives by email, gets parsed, is checked against the ATS, creates a record in Salesforce and triggers a message in Slack. Salesforce is one stop of several. In our view this belongs in n8n, with Salesforce as one of the agent's tools. Building it in Agentforce would mean pulling every outside system into Salesforce first.

3. Both, each doing its own job

This combination works when the split is clear. Agentforce handles conversations inside the CRM. n8n runs the cross-system work behind it. They can call each other: Salesforce documents an Agent API for talking to an agent over REST, a Flow can call an outside service with HTTP Callout, and the n8n Salesforce node can invoke a Flow. The rule that keeps this manageable: one owner per process, and a written note of which side changes which records. We describe the plumbing on our Salesforce and n8n integration page.

FAQ

Agentforce vs n8n: which is cheaper?

It depends on volume and on how many steps each agent run takes. Agentforce is priced by action, conversation or user, while n8n is priced by workflow execution with model tokens paid separately. Count your expected monthly runs and the actions in each, then price both.

Can n8n work with Agentforce?

Yes. n8n can read and write Salesforce records and invoke Flows through its Salesforce node, and Salesforce offers an Agent API for talking to an Agentforce agent from outside. A sensible split is Agentforce for in-CRM conversations and n8n for work that touches other systems.

Does an n8n AI agent respect Salesforce permissions?

It acts as the Salesforce user it is connected with, so it can do whatever that user's profile and permission sets allow. Create a dedicated integration user with the narrowest access the process needs. Do not connect an agent with an administrator account.

How much does Agentforce cost?

As of November 2026 Salesforce lists Flex Credits at $500 per 100,000 credits with 20 credits per standard action, conversations at $2 each, and per-user add-ons from $125 a month. Which model applies depends on the agent type and your contract. Salesforce sets these prices, and they are separate from any implementation fee.

Is Salesforce data safe with an external LLM?

It can be, but the safeguards are yours to set up. Inside Agentforce the Einstein Trust Layer handles masking and zero-retention agreements with model providers. With an external agent you choose the provider, agree its data terms, and decide what is sent in a prompt. Ask your data protection lead before personal data is involved.

Not sure which side your agent belongs on? Book a free 30-minute call and we will map the process with you.

Want this working in your business?

Morningscale builds business automation, AI solutions, Salesforce and AI agents. Tell us about one task and we will suggest a useful first step.

Book a free call