Macha

How to Build an AI Agent for Salesforce Service Cloud (2026): API, Agentforce or Fin

Abbas, Customer Support & AI, Macha

Written by

Ankeet Guha, Co-founder & CTO, Macha

Reviewed by

Published July 30, 2026

Updated October 14, 2026

You can put an AI agent on Salesforce Service Cloud by building it on the REST API, buying Agentforce on Flex Credits at about $0.10 an action, or running Fin at $0.99 per outcome. Teams whose tickets live in another help desk can instead call Salesforce as a tool from an agent layer.

Key takeaways

  • An AI agent for Salesforce Service Cloud can be built on the REST API, bought as Agentforce on Flex Credits at about $0.10 an action, or run as Fin at $0.99 per outcome.
  • Building on the Salesforce REST API means creating CaseComment records through the sObject endpoint, triggering on Platform Events, and owning token refresh, API limits and hosting yourself.
  • Agentforce Flex Credits cost $500 per 100,000 credits with a standard action at 20 credits, and the Service add-on costs $125 per user per month.
  • Salesforce completed its acquisition of Fin on 10 September 2026; Fin carries a 50-outcome monthly minimum when it runs on a help desk other than Intercom.
  • Macha does not run on Salesforce Service Cloud as a help desk; for teams whose tickets live elsewhere, the Macha team builds Custom Tools on the Salesforce REST API and the agent for them, at about $0.40 a ticket.
How to Build an AI Agent for Salesforce Service Cloud (2026): API, Agentforce or Fin

There are three ways to put an AI agent on Salesforce Service Cloud: build it yourself on the Salesforce REST API (weeks of work, full control), buy Salesforce's own Agentforce (Flex Credits, about $0.10 per standard action), or run a third-party agent such as Fin, which Salesforce now owns and which charges $0.99 per outcome. If your tickets live in a different help desk and only your customer data lives in Salesforce, a fourth option applies: an agent platform like Macha that calls Salesforce as a tool.

RoutePrice basisEffort
Build on the Salesforce REST APIYour model and hosting costsWeeks, plus upkeep
Agentforce (Salesforce)Flex Credits (about $0.10 an action) or $125 per user/month add-on; $2 per conversation for existing Conversations customers only (as of October 2026)Configured inside Salesforce
Fin on Salesforce$0.99 per outcome, 50-outcome monthly minimum off IntercomVendor-led setup
Macha with Salesforce as a Custom Tool (tickets in another help desk)About $0.40 a ticket, from $299/month for 750 ticketsDone for you by the Macha team, with a dedicated success manager, included

What does a Salesforce Service Cloud AI agent do?

The loop is the same as any support agent, wired to Service Cloud: a new case arrives, the agent reads it and the contact's history, it calls tools (look up the account, search your knowledge base, check a policy), then it posts a reply as a case comment or feed item, or routes the case to a human queue. The hard part is doing that reliably against real cases. (New to agents generally? Start with AI agents for customer service.)

How do you build one on the Salesforce REST API?

Salesforce has a full REST API, so you can build the agent yourself. The pieces:

  • Read cases: the Salesforce REST API sObject and Query (SOQL) endpoints pull the Case, its CaseComment/feed history, and the related Contact and Account.
  • Reply or act: create a CaseComment or FeedItem, or PATCH the Case record (status, owner) via the sObject REST API.
  • Trigger on new cases: a Platform Event, streaming subscription, or outbound message fires your endpoint when a case is created.

A reply tool against the Salesforce REST API looks like this:

import requests

INSTANCE = "https://yourco.my.salesforce.com"   # from the OAuth token response
API_VERSION = "v60.0"   # GET {INSTANCE}/services/data/ lists the versions your org supports
API = f"{INSTANCE}/services/data/{API_VERSION}"
HEADERS = {"Authorization": f"Bearer {ACCESS_TOKEN}", "Content-Type": "application/json"}

def reply_to_case(case_id: str, body: str):
    r = requests.post(f"{API}/sobjects/CaseComment",
        json={"ParentId": case_id, "CommentBody": body, "IsPublished": True},
        headers=HEADERS, timeout=10)
    r.raise_for_status()          # handle 401 token refresh, API-limit errors
    return {"status": "sent", "id": r.json()["id"]}

Wrap that (and a get_contact, a search_knowledge) as tools in an agent loop on the model of your choice. Our from-scratch walkthrough is how to build an AI agent: from scratch vs. platform.

What does the production part involve?

The API calls are the easy bit. A Service Cloud agent you'd trust also needs: an event endpoint (Platform Events or outbound messages, with verification and idempotency so a retried event doesn't double-reply), API-limit handling (Salesforce enforces per-org daily request limits), grounding in your Knowledge base or help center (embed the articles, keep them fresh), guardrails (escalate refunds, don't leak PII), OAuth token refresh and 24/7 hosting, observability, and an eval harness over real historical cases. That's weeks of work plus upkeep.

What do Agentforce and Fin cost?

If you'd rather buy than build, Salesforce sells two agents for Service Cloud. Agentforce pricing (checked 24 September 2026; as of October 2026 its $2-per-conversation card is for existing Conversations customers only) offers new buyers Flex Credits at $500 per 100,000 credits with a standard action costing 20 credits (about $0.10), or a Service add-on at $125 per user per month with unmetered usage. Salesforce also completed its acquisition of Fin on 10 September 2026; Fin runs on Salesforce among other help desks, costs $0.99 per outcome, and carries a 50-outcome monthly minimum when it runs outside Intercom. Salesforce cites a 76% average resolution rate for Fin.

Where does Macha fit with Salesforce?

Macha is an AI agent layer that runs on top of the help desk you already use: Zendesk, Freshdesk, Gorgias, Front, HubSpot or Intercom. Salesforce Service Cloud is not one of them, so if your cases live in Service Cloud, the build route, Agentforce or Fin are the direct options. Macha fits the common split where tickets live in one of those help desks and the customer record lives in Salesforce:

  • Salesforce as a tool: Custom Tools turn the Salesforce REST API into agent capabilities by describing them, so the agent can pull the account, opportunity and owner into the ticket or log the ticket back to the CRM timeline. Custom tools are included in every plan.
  • Built for you: the Macha team builds and tests the Salesforce tools and the agent, then runs it in safe mode, with drafts as internal notes in your help desk, until the drafts are right. That's included on the trial and every plan at about $0.40 a ticket, along with a dedicated success manager who handles your changes.
  • Ground on your help center: add your knowledge base or public help center as a Source so replies quote real articles.
  • Runs and grades: Agent Analytics show every run, and simulations grade the agent against real historical tickets before it goes live.
Macha's Custom Tools turn any REST API into an agent capability: describe the endpoint and the agent can call it.
Macha's Custom Tools turn any REST API into an agent capability: describe the endpoint and the agent can call it.

Grounding matters as much as the connection: pointing the agent at your real Knowledge articles as a Source is what keeps replies accurate instead of invented.

Macha's Agent Analytics logs every run: what the agent read, which tools it called, and how it replied.
Macha's Agent Analytics logs every run: what the agent read, which tools it called, and how it replied.

Which route should you pick?

Build on the Salesforce APIAgentforce or FinMacha + Salesforce Custom Tool
Where cases liveService CloudService CloudZendesk, Freshdesk, Gorgias, Front, HubSpot, Intercom
Salesforce data accessYou write the API clientNativeCustom Tool on the REST API
Trigger on new ticketsYou build a Platform Event listenerHandledHandled by the help-desk connector
Ground on help centerYou embed and host a vector storeVendor knowledge toolsAdd it as a Source
Hosting, token refresh, observabilityYour infrastructureVendorBuilt in
Model choiceAnyVendor'sSet per agent

Build on the API if you need a fully custom runtime, have strict data-residency needs, or the agent is your product. Buy Agentforce or Fin if your cases live in Service Cloud and you want the shortest path. If your support runs in another help desk and Salesforce is your CRM, you can start free on Macha with $50 of free usage and no credit card; the Macha team builds the Salesforce tools and the agent and tests it on your own tickets. After the trial it's about $0.40 a ticket, setup and a dedicated success manager included. If you're weighing a Salesforce partner against Salesforce's own services team, our Service Cloud AI implementation guide compares weeks, published costs and partner tiers.

FAQ

Is a Salesforce Service Cloud AI agent the same as Salesforce's own Agentforce? Not necessarily. Agentforce is Salesforce's built-in agent, priced in Flex Credits at about $0.10 per standard action. You can also build a model-agnostic agent on the Service Cloud API yourself, or run Fin, which Salesforce acquired on 10 September 2026.

Does Macha run on Salesforce Service Cloud? Not as a help desk. Macha runs on Zendesk, Freshdesk, Gorgias, Front, HubSpot and Intercom, and reaches Salesforce through Custom Tools that call its REST API, so it suits teams whose tickets live in one of those desks and whose customer data lives in Salesforce. The Macha team builds those Custom Tools and the agent for you, included on every plan.

Can the agent take actions, not just answer? Yes. Via the Salesforce API it can update case status, reassign an owner or add comments, and your own systems' APIs (order lookups, refunds) can be tools too, with guardrails on what it does unattended.

How do I make sure it's accurate before it replies to customers? Ground it in your Knowledge base and grade it against real historical cases first, start in a draft-and-approve mode, and widen autonomy per case type as it earns trust.

Macha

About Macha

Macha is an AI agent platform that works on top of the help desk you already use (Zendesk, Freshdesk, Gorgias, Front, Intercom or HubSpot) and connects to the rest of your stack, even your own internal systems. It is done for you: the Macha team analyzes your past tickets, builds the knowledge base and the agents, and runs them in safe mode until the drafts are right. Pricing is about $0.40 a ticket, and that includes setup and a dedicated success manager who handles your changes. Learn more about Macha →

Zendesk
5.0 on Zendesk Marketplace

Loved by support teams worldwide

See what support teams are saying about Macha AI.

The application seems excellent to me! We are still testing, and we need support for some details and they were extremely efficient too!

Daniela Costa

Daniela Costa

Head of Support, Seabra

Macha has been a great addition to our support toolkit. It generates clear, well-organized responses that fit naturally into our workflow. One feature we particularly appreciate is its ability to automatically reply in the same language as the ticket.

Marius F

Marius F

Support Head, Zentana

We've been using Macha for a little while now and it's been really great addition so far! It's powerful, convenient, and makes getting work done a lot easier for our agents.

Alexander Wedén

Alexander Wedén

Head of Support

Support team is very helpful and responsive. Really enjoy how lightweight this is within Zendesk itself vs other more intrusive tools.

Cathleen Wright

Cathleen Wright

Zendesk Admin, Cortex IO

So far it's pretty good! Our queries are a little nuanced, so we can't always use it, but it's got enough utility for us. It can even incorporate our bilingual country with greetings in a second language.

Jae Oliver

Jae Oliver

Head of Support, Wise

Really enjoying using Macha, it has made a noticeable difference to our support team in a short amount of time. I really like the ticket summary feature, saves us a lot of time.

Harry Jackson

Harry Jackson

Head of Support, Crumb

Macha AI is a great addition to my workspace! It's powerful, convenient, and it really makes productivity so much easier for our agents!

Dave G

Dave G

Head of Support, Cyber Power Systems

Very impressed! AI integration for Zendesk has certainly come a long way and Macha seems to set the standard for now. This will for sure save lot of time in our support team.

Pauli Juel

Pauli Juel

Head of CS, Dokument24

Macha has been working great for us so far! The auto-responses are accurate and our resolution time has dropped significantly.

Lana T

Lana T

Zendesk Admin, Swotzy

Macha AI is a great addition. The knowledge base feature means our agents always have the right answers at their fingertips.

Mischa Wolf

Mischa Wolf

Head of Support, Topi

We're enjoying this integration so far. It's made our support team more efficient and our customers get faster responses.

Paula G

Paula G

Head of Customer Support, Xly Studio

The team enjoys using it. It saves considerable time on common questions and the integration options are excellent.

Kilian Leister

Kilian Leister

Support Head, Didriksons

Get your AI agents set up for you.

Book a 20-minute call with our team. We'll show you where we would start on your help desk and how the setup works. Setup and a dedicated success manager come with the trial and every plan.

Live in under a week
Safe mode until you approve
About $0.40 a ticket