AI agents that work in Salesforce
Salesforce holds the account, opportunity and case history your teams depend on, but a lot of the work around it is still manual: researching leads, logging calls, fixing duplicates and writing handover notes. Gepton builds custom AI agents that work inside that system through Salesforce's documented APIs and hosted MCP servers. They read the records a task needs, draft updates, and write back only where you have approved it. The agents fit alongside Agentforce rather than replacing it, and handle work that spans Salesforce and your other systems.
What we build in Salesforce
Agents designed around how your team already works in Salesforce, built and tested in a sandbox first.
Lead research and enrichment
Reads new leads, looks up the company from approved sources, fills missing fields and drafts a first-touch note, then leaves the record for a rep to review before any outreach.
Account and opportunity briefs
Before a call, pulls the account, open opportunities, recent cases and activity history into a one-page brief with open risks and suggested next steps.
Case triage and routing
Classifies incoming cases by product, intent and urgency, suggests the queue and priority, and links related cases or known issues for the service agent.
Call and email logging
Turns meeting transcripts and email threads into activity records, next steps and field updates that the rep confirms in one click.
Duplicate and data hygiene checks
Scans for duplicate accounts and contacts, stale opportunities and missing required fields, and produces a review list instead of merging records on its own.
Cross-system order and billing answers
Answers questions that need Salesforce plus an ERP, billing or support tool, such as contract status or overdue invoices, without copying that data into Salesforce.
How it connects. Official APIs, the narrowest access.
Agents authenticate through OAuth with a dedicated integration user, so Salesforce profiles, permission sets and field-level security limit what they can see and change. We design so that agents request only the scopes a task needs, start read-only, and log every write with the record ID and the reason. Sandbox testing comes before any production access. Data sent to a model is limited to the fields a task requires. This page describes independent integration work on Salesforce's public APIs and does not imply a partnership with or endorsement by Salesforce.
- SalesforceLead research and enrichment
- HubSpotUsed by the inbound lead qualifier agent
- Zoho CRMUsed by the CRM record enrichment agent
- Google CalendarUsed by the meeting prep and follow-up agent
From sandbox to your live Salesforce
A fixed-scope plan first, then weekly releases you can test.
-
1
Scope the task and access
We map the objects, fields and actions each agent needs and set up an External Client App with the narrowest OAuth scopes and a dedicated integration user and permission set.
-
2
Connect through APIs or MCP
Agents use the REST, Bulk or Pub/Sub APIs, or Salesforce hosted MCP servers where they fit, with Change Data Capture events to react to record changes instead of polling.
-
3
Test in a sandbox
We build and evaluate in a sandbox with realistic data, check outputs against test cases, and measure API consumption against your org's daily allocation.
-
4
Roll out with approvals
Agents start read-only or draft-only for a pilot group. Write actions are enabled step by step, with approval steps, logging and an owner for each agent.
Agents that often connect to Salesforce
Examples from our agent catalog, each built for one team's process.
Browse the agent catalog-
Inbound Lead Qualifier
Replies to new web and form leads within minutes, asks a few qualifying questions, scores fit against your criteria and books a meeting with the right rep.
See inbound lead qualifier -
CRM Record Enrichment Agent
Fills gaps in account and contact records from approved data sources, flags duplicates and stale fields, and writes changes back with a source note.
See CRM record enrichment agent -
Meeting Prep and Follow-Up Agent
Builds a one-page brief before each sales call and drafts the follow-up email, next steps and CRM notes from the call transcript afterward.
See meeting prep and follow-up agent -
RFP and Security Questionnaire Responder
Drafts answers to RFPs and security questionnaires from your approved answer library and past responses, citing the source for each answer.
See RFP and security questionnaire responder -
Deal Desk Quote Assistant
Checks draft quotes against discount rules, approval thresholds and standard terms, and routes exceptions to the right approver with context.
See deal desk quote assistant
How agents connect to Salesforce
Salesforce exposes the REST API, the Bulk API 2.0 for large data jobs, and the gRPC-based Pub/Sub API for streaming Platform Events and Change Data Capture. For most agent work we use REST for single-record reads and writes, Bulk for backfills and cleanup, and Change Data Capture so an agent reacts when a record changes. Salesforce's Spring '26 release stopped the creation of new connected apps by default, so new integrations use External Client Apps with OAuth 2.0.
In April 2026 Salesforce made its hosted MCP servers generally available for Enterprise Edition orgs and above. They expose data, flows and Apex actions to MCP clients using OAuth 2.0 with PKCE, inside Salesforce's own security perimeter. Where a hosted server covers the task, we use it. Where an agent needs a custom action or a mix of Salesforce and other systems, we build a small MCP server or API layer around it.
Limits worth planning for
API requests are counted per org over a rolling 24 hours. According to Salesforce's developer limits reference, Enterprise Edition starts at 100,000 requests per day plus an allocation per user license. Platform Event and Change Data Capture delivery uses a separate event allocation. An agent that polls records every few seconds can use up that budget quickly, so we design around events, batching and caching, and we monitor usage from the first day.
What stays read-only
By default, agents read opportunities, accounts, cases and activity history, and write only drafts: suggested field values, activity records and notes marked for review. Changes to amounts, stages, ownership, contract terms or anything that triggers downstream automation stay with people unless you decide otherwise after the pilot.
How this fits with Agentforce
Salesforce's own AI platform, branded Agentforce 360 since Dreamforce 2025, includes prebuilt sales and service agents, the Atlas reasoning engine, Data 360 and the Einstein Trust Layer for masking and audit. If your team already uses Agentforce, a custom agent does not compete with it. It usually covers what sits outside Salesforce: a workflow that spans your ERP, a support desk and email, a model you already run, or a process specific to your business. Agents can also call Agentforce actions or flows where that is the cleaner design. Related work on CRM data quality is covered in CRM enrichment.
How we deliver it
The services our engineers use to build it.
-
Sales & Lead Qualification Agents
We build agents that qualify inbound leads as they arrive, enrich them with data and route the best opportunities to your sales team.
See sales & lead qualification agents -
CRM Enrichment
AI that cleans, enriches and summarizes your CRM data so teams act on better information.
See CRM enrichment -
MCP Server & Connector Development
We build Model Context Protocol servers that let Claude, ChatGPT, Copilot and your own agents use your systems safely, with scoped tools, OAuth sign-in, rate limits and audit logs, including for Indian systems such as Tally and Zoho.
See MCP server & connector development -
Agent Access Governance
Control what your AI agents can reach and do: an inventory of every agent, its own identity, least-privilege OAuth scopes, secrets in a vault, human approval for sensitive actions, a kill switch and full audit trails.
See agent access governance
AI agents and Salesforce in depth
The architecture of a Salesforce agent
A production Salesforce agent has four parts, and keeping them separate is what makes it safe to run. An event intake receives Change Data Capture or Platform Event messages through the Pub/Sub API, or a scheduled trigger for batch work. An orchestrator holds the task logic, calls the model and decides which tools to use. A tool layer wraps the Salesforce calls the agent is allowed to make, such as a SOQL query on Opportunity or an update to three named fields on Lead. A review and log store keeps every proposed change, every approval and every write.
The model never receives raw API credentials. It asks the tool layer for an action, and the tool layer checks that action against the agent's policy before calling Salesforce. That boundary is where we enforce field allowlists, record limits and the read-only or draft-only mode for each task. It is also where the agent stops if Salesforce returns a validation rule error, rather than retrying with different values until something passes.
Identity, flows and permission sets
For agents that run in the background, we use an External Client App with the OAuth 2.0 JWT bearer flow or the client credentials flow, tied to a dedicated integration user. For agents that act on behalf of a rep, such as drafting a brief inside a Lightning page, the rep's own session and permissions apply instead, so the agent cannot show a rep a record they could not open themselves.
The integration user gets a permission set built for the task, not a copy of an admin profile. In practice that means object-level read on Account, Contact, Opportunity and Case, edit on only the fields the agent writes, and no "Modify All Data" or "View All Data". Field-level security hides sensitive fields, such as personal phone numbers or national ID fields, so they never reach the agent at all. Credentials for downstream systems sit in Named Credentials or your secrets manager, not in Apex code or prompts.
A worked example: post-call logging
Example: a rep finishes a discovery call recorded in your meeting tool. The workflow below shows where the agent acts and where a person decides.
- The meeting tool sends the transcript to the orchestrator, along with the rep's email and the meeting time.
- The agent finds the matching Contact and open Opportunity with a SOQL query scoped to records that rep owns.
- It drafts a call summary, next steps and suggested values for fields such as Next Step and Close Date, with a short reason for each.
- The draft appears to the rep as a pending item. The rep edits, accepts or rejects each field separately.
- On acceptance, the tool layer writes a Task record and the accepted field values in one composite request, and records the record IDs, the old and new values, and who approved.
If the query returns two possible opportunities, the agent asks the rep to choose instead of guessing. Ambiguity is a normal outcome, and the design treats it as one.
Approval rules and audit logging
We agree approval rules per action before building, and write them into the tool layer rather than the prompt.
| Agent action | Default mode | Who approves |
|---|---|---|
| Read records for a brief or answer | Automatic | No approval; access limited by permission set |
| Create a Task, Note or activity | Draft | The record owner |
| Fill an empty field from an approved source | Draft, later automatic | Owner during pilot, then sampled review |
| Change stage, amount or owner | Suggestion only | The owner or sales manager, in Salesforce |
| Merge or delete records | Out of scope | Stays a manual admin task |
The agent's own log records the trigger, the queries it ran, the model's proposed change, the approval decision and the Salesforce response. Salesforce adds its own records: field history tracking on the objects you choose, the Setup Audit Trail for configuration changes and, if you have Shield, Field Audit Trail and Event Monitoring. Because every write comes from the integration user, filtering Salesforce history by that user shows exactly what the agent changed.
Reliability: events, retries and duplicates
Change Data Capture events carry a replay ID, so an agent that restarts can resume from the last event it processed instead of missing changes or reprocessing a day of them. We store that position and treat each event as something that may arrive twice. Writes use upsert on an external ID field where possible, so a retried request updates the same record instead of creating a duplicate Task or Contact.
API consumption is a shared budget across every integration in your org, so the agent reports its own call counts and backs off when Salesforce signals limits. Large backfills, such as enriching every Account once, go through Bulk API 2.0 jobs scheduled outside working hours rather than thousands of single REST calls.
Sandbox testing and rollout
We build in a Developer or Developer Pro sandbox, then evaluate in a Partial Copy or Full sandbox where data looks like production. Masking personal data in the sandbox is worth doing before any model sees it. The evaluation set is a list of real situations, such as a lead with no website, an account with two similar names or a case written in Hinglish, each with the expected output, and we rerun it whenever the prompt, model or field mapping changes.
Rollout then follows a fixed order: read-only for a pilot team, drafts with approval, then selected low-risk writes made automatic with sampled review. Each step has an owner on your side who can switch the agent back to the previous mode. Before starting, it helps to have a Salesforce admin available, a list of the fields and automations that must not be touched, and agreement on who reviews drafts during the pilot. Data quality work that often runs alongside this is described under sales lead qualification, and the policy side of agent access under agent access governance.
Questions about AI agents and Salesforce
Something else? Send us your question and an engineer replies with next steps.
Do you replace Agentforce?
No. Agentforce is Salesforce's own agent platform and works well for tasks that live inside Salesforce. We build custom agents for work that crosses systems, needs your own model or logic, or runs in tools outside Salesforce. Where Agentforce already handles a task, we recommend keeping it and connecting to it.
What access do you need to our org?
A sandbox first, then a dedicated integration user in production with a permission set limited to the objects and fields the agent needs. We create an External Client App with narrow OAuth scopes. We do not need a system administrator login for the agent to run.
Will the agent use up our API limits?
It uses some, so we plan for it. We estimate calls per task during the sandbox phase, prefer Change Data Capture events and bulk jobs over polling, and set alerts well below your daily allocation.
Can the agent update records on its own?
Only if you choose that after a pilot. By default it drafts changes for a person to accept. Low-risk updates, such as logging an activity or filling an empty field, are usually the first to move to automatic, with logging.
Which Salesforce editions and clouds do you work with?
We work with Sales Cloud and Service Cloud orgs on Enterprise Edition and above most often, since API access and hosted MCP servers depend on edition. We confirm what your edition allows during the discovery sprint.
Can the agent see records that a rep is not allowed to see?
Not when it acts for that rep. Agents that run inside a rep's session use that user's profile, permission sets and sharing rules, so they only see what the rep can open. Background agents use a dedicated integration user whose permission set we design for the task, and field-level security hides sensitive fields from it entirely. We document both identities so your Salesforce admin can review exactly what each one can read and edit.
How do we see everything the agent changed in Salesforce?
Every write comes from the integration user, so filtering field history and record history by that user shows the agent's changes. The agent also keeps its own log with the trigger, the proposed change, the approval decision and the Salesforce response. If you use Shield, Field Audit Trail and Event Monitoring add longer retention and API event detail. We agree log retention with you during setup.
Will the agent conflict with our flows, validation rules and Apex triggers?
It can if nobody checks, so we map existing automation before building. Agent writes go through the same validation rules and triggers as any user, which is useful because your business rules still apply. We test each write type in a sandbox with your automation switched on, and we keep the agent away from fields that start approval processes or downstream integrations unless you decide otherwise.
What happens if the model drafts something wrong?
During the pilot every draft is reviewed by a person before it is written, so a wrong draft is rejected rather than saved. Rejections and edits are logged and become new test cases for the evaluation set. If a pattern of errors appears, we fix the prompt, the data the agent receives or the field mapping, rerun the evaluation, and only then continue the rollout.
Can the same agent also work with our ERP or support tool?
Yes. The orchestrator can call tools for other systems, such as an ERP, a billing platform or a helpdesk, each with its own credentials and scopes. Salesforce stays the place where account and opportunity data is updated, while other data is read when the task needs it. This is often the main reason to build a custom agent rather than rely only on features inside Salesforce.
Other tools we connect agents to
All integrations-
HubSpot
Custom AI agents for HubSpot that qualify inbound leads, log activity, summarize deals and clean CRM data through HubSpot's APIs and MCP server, with scoped access and a review step before writes.
See HubSpot -
Zoho CRM
Custom AI agents for Zoho CRM that qualify leads, summarize deals, log activity and connect Zoho to your other systems, using the Zoho CRM API with scoped OAuth, data-center aware setup and human review.
See Zoho CRM -
Slack
Custom AI agents that work in Slack: answer questions from your systems, run approvals, triage requests and post summaries, built on Slack's APIs and MCP server with narrow scopes and clear audit trails.
See Slack -
Microsoft Teams
Custom AI agents that work in Microsoft Teams: internal help desks, approvals, request intake and meeting follow-ups, built with the Teams SDK and Microsoft Graph, with Entra ID permissions and admin control.
See Microsoft Teams -
WhatsApp
Custom AI agents on the WhatsApp Business Platform for order status, bookings, lead capture and support in English and Indian languages, built on the Cloud API with approved templates, opt-in and human handoff.
See WhatsApp -
Google Workspace
Custom AI agents that work across Gmail, Drive, Calendar, Sheets and Chat: inbox triage, document drafting, scheduling and report building, using Google's official APIs with scoped OAuth and admin control.
See Google Workspace