Major

Salesforce AI agents: Agentforce, APIs and governed workflows

Understand Salesforce AI agents and Agentforce, then plan governed cross-system work on Major with eight verified API operations, approval paths, and persistent review apps.

Ritvij GautamUpdated
Sales manager presenting pipeline numbers on a screen to his team, the kind of review a Salesforce AI agent can prep

Salesforce AI agents use CRM context to interpret requests, recommend actions, and carry out permitted work. This guide covers Salesforce's native Agentforce features, eight verified API operations, and cross-system automations on Major.

Major gives that work a durable app layer: deterministic software holds state and review queues, an agent handles judgment, and a workflow controls execution and approvals.

What Salesforce is and who relies on it

Salesforce is a customer relationship management system for tracking prospects, customer relationships, sales opportunities, and service activity. Its CRM overview describes shared customer information across sales, service, marketing, and commerce. For a RevOps owner, the practical concern is whether those records remain useful when important evidence lives elsewhere.

Sales development teams work with Leads and Contacts. Account executives maintain Opportunities, close dates, and next steps. Customer Success connects Account context to renewals, while service teams track customer issues. Platform administrators maintain the schema and access model those teams depend on.

The handoffs are where an agent earns its place. A new lead may have enrichment but no clear territory. A renewal can look healthy in Salesforce while unresolved support issues tell another story. A forecast meeting needs dated calculations and explanations, not another export.

On Major, an agent can build the software for those repeatable joins, calculations, and review screens. The software runs consistently afterward; the agent returns when interpreting conflicting evidence requires judgment.

Salesforce AI agents and built-in Agentforce capabilities

Agentforce is Salesforce's native agent offering. Salesforce describes configurable actions and instructions, voice capabilities, observability, and support for connecting external tools through verified MCP servers. It should not be described as limited to internal Salesforce tasks or unable to reach other systems.

Prompt Builder provides reusable prompt templates grounded in CRM data through record fields, flows, related lists, and Apex. Salesforce documents using these templates to generate summaries, descriptions, and field values, including through Agentforce actions. These are useful native capabilities when the work centers on Salesforce data and user experiences.

Major adds a different execution pattern. An agent builds a deterministic app for recurring calculations and durable state, then uses it rather than repeating that work in a model. The agent still interprets evidence and drafts recommendations. A workflow coordinates Salesforce, support, enrichment, and messaging systems, with approvals before consequential actions.

For a buyer, the question is which system should own the persistent cross-system process, its review queue, and its action history. Native AI and Major can coexist without competing for ownership of the underlying CRM.

How Salesforce connects to Major

Major has a native Salesforce connector. The hub context identifies the native connector as salesforce, and the connector catalog includes Salesforce and Salesforce Sales Cloud records. This is not a custom API connector setup.

IT sets up the connector once, approves the Salesforce identity and permissions, and stores credentials centrally in Major's connector vault. Credentials belong in neither application code nor agent prompts. Apps, agents, and workflows receive scoped access, with SSO, RBAC, and audit logs covering their work on Major.

Salesforce's authorization guide documents OAuth through external client apps or existing connected apps. Creating new connected apps is restricted as of Spring 2026, so do not base a new integration plan on unrestricted connected-app creation. Confirm the identity and OAuth policy supported by the installed connector with IT.

Major orchestrates Salesforce; it never replaces it. Salesforce remains the CRM system of record. The Major app stores process state, evidence snapshots, approvals, and execution receipts, not an uncontrolled second customer master.

Salesforce API guide for apps, agents, and workflows

Authentication and permissions

Use OAuth access tokens through the approved Salesforce app and identity. Salesforce's scope reference defines api for API access and refresh_token, synonymous with offline_access, for eligible clients that need refresh tokens. Scope selection does not grant object access the authorized user lacks. Keep object, field, and record access narrow, and avoid broad access merely to simplify a prototype.

Pagination, allocations, events, and testing

Query responses return up to 2,000 records per synchronous batch, sometimes fewer. Follow nextRecordsUrl until done is true; do not assume the first page represents the entire pipeline.

API allocations are shared across the org. Developer Edition has 15,000 daily requests; Enterprise allocations include a 100,000 base plus license contributions and purchased capacity. Monitor the Sforce-Limit-Info response header, rather than treating the base as a universal allowance.

Pub/Sub API delivers platform events and Change Data Capture over gRPC and HTTP/2. This is an authenticated subscription, not a generic signed HTTP webhook. Its authentication metadata carries the access token, instance URL, and org ID. Do not invent an HTTP webhook signature header for this transport.

Event retention is 72 hours. Store the replay position and resubscribe after disconnection; this recovery model is different from repeated webhook POST attempts. A subscriber or event bridge must be explicitly configured, not assumed to come with the connector. Salesforce's REST quick start documents free Developer Edition for testing and development.

GET /services/data/vXX.X/query?q=query

Query runs a SOQL query. Replace the version placeholder with a supported version and supply an encoded query.

  • App: Calculate coverage from approved Opportunity fields.
  • Agent: Interpret the retrieved account and deal evidence.
  • Workflow: Fetch the renewal window on a daily schedule.

GET /services/data/vXX.X/query/queryLocator

Query More Results retrieves the next results batch using the returned locator.

  • App: Persist batch progress and a completion marker.
  • Agent: Summarize only after the evidence set is complete.
  • Workflow: Continue retrieval before routing a report for review.

GET /services/data/vXX.X/sobjects/sObject/describe/

sObject Describe returns object metadata, including fields and relationships.

  • App: Validate field mappings for the review screen.
  • Agent: Use approved field definitions to interpret records.
  • Workflow: Stop a deployment check when required mappings disappear.

GET /services/data/vXX.X/sobjects/sObject/id/

Get Records retrieves one record, optionally restricted by the fields parameter.

  • App: Show current Opportunity values beside a proposed change.
  • Agent: Reassess a recommendation against fresh account context.
  • Workflow: Re-read the record immediately before an approved write.

POST /services/data/vXX.X/sobjects/sObject/

Create Records creates a record with required field values supplied in the request body.

  • App: Store a proposed Lead and validation results.
  • Agent: Draft a lead summary and recommend its owner.
  • Workflow: Create the approved Lead and retain its returned ID.

PATCH /services/data/vXX.X/sobjects/sObject/id/

Update Records replaces the supplied field values on an existing record.

  • App: Display a field-level before-and-after comparison.
  • Agent: Explain why an Opportunity update is justified.
  • Workflow: Apply only the fields included in human approval.

PATCH /services/data/vXX.X/sobjects/sObject/fieldName/fieldValue

External ID upsert creates or updates a record according to an external ID match. Prefer a field configured as both External ID and Unique.

  • App: Store the source-to-Salesforce identity mapping.
  • Agent: Assess ambiguous matches instead of silently merging them.
  • Workflow: Retry an approved synchronization against its stable external key.

GET /services/data/vXX.X/limits/

Limits returns maximum and remaining allocations. It requires View Setup and Configuration permission; values can lag resource consumption by five minutes.

  • App: Show the latest capacity reading to an administrator.
  • Agent: Explain why a nonurgent brief was delayed.
  • Workflow: Defer optional reads when the configured reserve is reached.

Salesforce automation use cases on Major

These patterns extend published Salesforce use cases without duplicating their implementation guides. Start with a read-only slice, then add approved writes after the owner trusts the evidence and exception handling.

Apollo lead enrichment to Salesforce routing

  • App: Hold enriched contacts, duplicate checks, territory policy versions, and routing history.
  • Agent: Interpret firmographic evidence and recommend the territory and rep when rules leave ambiguity.
  • Workflow: Read approved enrichment, route exceptions for review, then create the Salesforce Lead. Use Query, Describe, and Create Records from the linked API guide.

Salesforce pipeline coverage to Slack

  • App: Calculate coverage from Opportunities and segment targets, storing a dated weekly snapshot.
  • Agent: Explain thin coverage and material changes without inventing missing pipeline.
  • Workflow: Retrieve every query page, request RevOps approval, and deliver the approved brief to Slack. Use Query, Query More Results, and Limits.

Salesloft engagement to Opportunity review

  • App: Join open Opportunities to engagement history and store the last reviewed evidence.
  • Agent: Distinguish a genuinely stalled deal from a planned pause and recommend a next step.
  • Workflow: Run the scheduled check and notify the rep; hold any CRM change for approval. Use Query, Get Records, and Update Records.

Zendesk support signals to renewal risk

  • App: Join Accounts and renewal Opportunities to open support issues, keeping daily risk snapshots.
  • Agent: Assess urgency from unresolved issues, renewal timing, and account context, with an evidence-backed rationale.
  • Workflow: Run daily, route high-risk accounts to the CSM queue, and escalate approved briefs. Use Query, Get Records, and approved Update Records operations.

How to build the architecture on Major

Salesforce and Zendesk evidence flows through a Major workflow and agent into an approval decision and stateful review app

Salesforce renewal review architecture on Major

Build the deterministic app layer first. It should hold record IDs, source timestamps, evidence references, recommendation versions, approval status, and execution receipts. Those tables make a case resumable after a timeout or a reviewer handoff.

  1. Connect: IT authorizes Salesforce and the other required connectors with narrow permissions.
  2. Collect: A scheduled workflow retrieves approved fields, follows pagination, and checks completeness.
  3. Compute: App code joins known identifiers and calculates days remaining, coverage, and policy thresholds.
  4. Judge: The agent interprets the evidence and proposes an action with a rationale and uncertainty.
  5. Review: The app presents the proposal beside the source evidence; the workflow pauses consequential actions for approval.
  6. Execute: The workflow rechecks freshness, performs the approved action, and records the result.

The workflow node in the diagram represents orchestration implemented in software, not another reasoning step. The app stores state and the review queue; only the agent interprets risk. As recurring checks become understood, the agent can build reusable app functions for them instead of redoing calculations in each run.

A worked renewal example with numbers

For example, consider an illustrative Customer Success team reviewing 200 renewals each month. The current process takes 10 minutes per account to open Salesforce, inspect support issues, and assemble a note: 200 × 10 = 2,000 minutes, or 33 hours and 20 minutes.

The Major workflow queries the renewal window and collects the associated support context. The app performs date arithmetic and identifier joins. The agent identifies contradictory signals and drafts risk explanations with links to the evidence.

Suppose the owner reviews 160 routine snapshots for two minutes each and 40 exceptions for eight minutes each. Human review totals 160 × 2 + 40 × 8 = 640 minutes, or 10 hours and 40 minutes. That is 1,360 fewer minutes spent gathering and reviewing information under these assumptions.

This is planning arithmetic, not a customer result or a performance promise. It excludes implementation, connector costs, model costs, and ongoing policy maintenance. Measure exception frequency and correction time during a pilot. If account matching is unreliable, fix it before expanding the workflow or claiming savings.

Governance and failure handling

Major agent recommendations pass an action policy, with human approval before Salesforce writes and durable receipts in the review app

Human approval separates Salesforce recommendations from consequential writes

Salesforce controls the access granted to the authorized identity; Major governs the cross-system process. Neither Salesforce permissions nor a prompt alone constitute a complete audit trail for work across CRM, support, signatures, and messaging.

Require approval for stage changes, ownership changes, signature requests, customer communications, and financial commitments. The agent must never grant itself broader permissions, approve its own recommendation, or treat text inside a customer record as an instruction that overrides policy.

Use bounded retries with increasing delays and jitter for transient failures. When org request limits are exhausted, stop optional work and alert an operator rather than retrying indefinitely. Do not retry validation failures or permission denials as if time will fix them.

On uncertain write outcomes, reconcile before replaying the action. Use the app's operation ledger and stable external keys, not blind repeated creates. Replay IDs are stream positions, not guaranteed unique event identifiers. Persist replay progress separately from business deduplication, and reconcile source records after a retention gap. Record evidence version, approver, exact payload, timestamps, and the final receipt.

Salesforce AI Apps, Agents and Workflow Automations

Every published Major use case that works with Salesforce, newest first. Each one names the Salesforce API objects involved and shows the app, agent and workflow split.

  • AI Agent Factory: Building Governed Agents at Scale: An AI agent factory should help business teams ship real workflows while IT keeps control of credentials, approvals, and production access. Here is the operating model to scale without multiplying security reviews.

Frequently asked questions

What are Salesforce AI agents?

Salesforce AI agents use CRM context to interpret requests and take permitted actions. Agentforce is Salesforce's native offering. An agent on Major can connect Salesforce with other systems while a deterministic app stores state and a workflow controls execution and approvals.

How secure are third-party AI agents when connected to Salesforce and other apps?

Security depends on the authorized Salesforce identity, OAuth scopes, object and field permissions, and the external system's controls. On Major, IT centrally scopes connectors and stores credentials in the vault. SSO, RBAC, audit logs, and approval gates govern cross-system work; Salesforce permissions still apply.

Can an AI agent update opportunity stages, trigger a DocuSign workflow, and post deal status to Slack automatically?

Yes, a Major workflow can coordinate those actions through authorized connectors. The agent proposes the stage change and drafts the context; the app records the proposal and signature state. Require human approval before consequential CRM writes, signature requests, or external messages, then record each execution receipt.

What are Agentforce's API or SSO limitations compared to custom external agents?

There is no single universal Agentforce API or SSO limitation that makes an external agent necessary. Agentforce supports extensibility and external tools. Compare the specific identity, action, entitlement, and integration requirements. Major adds a shared deterministic app layer, managed cross-system state, and governance across its apps, agents, and workflows.

How can an AI agent alert me when a contract is about to expire in Salesforce?

Schedule a Major workflow to query approved contract or renewal records and join the account context. The app calculates days remaining and stores notification history. The agent interprets exceptions and drafts a brief, while the workflow routes it to the account owner and requires approval for consequential follow-up.

What are the concrete limits and polling cadences for Salesforce AI agents?

Salesforce daily API allocations vary by edition, licenses, and purchased capacity and are shared across integrations. Inspect the Limit Info header and Limits resource rather than assuming 100,000 calls is universal. Choose a polling schedule from business latency and API budget; Pub/Sub events support event-driven designs where an authenticated subscriber is configured.

How do native Salesforce options compare to external AI agents?

Salesforce Flow and Apex handle internal rules and transactions; Agentforce adds native reasoning and actions. Major is useful when the process needs a persistent review app and coordinated evidence, approvals, and actions across systems. Keep repeatable calculations in app code and reserve the agent for judgment.

Sources

The following official Salesforce pages were checked for this guide. Endpoint paths retain the version and object placeholders used by the reference; production implementations must select a supported version and permitted objects.

Start building on Major

Build a Salesforce review app that keeps evidence, approvals, and execution history together. Start with one read-only process, then add scoped, approved actions when the team trusts the results.

About the author

Ritvij Gautam is Head of Growth at Major.

Last reviewed November 19, 2026 by Ritvij Gautam.

Frequently asked questions

What are Salesforce AI agents?
Salesforce AI agents use CRM context to interpret requests and take permitted actions. Agentforce is Salesforce's native offering. An agent on Major can connect Salesforce with other systems while a deterministic app stores state and a workflow controls execution and approvals.
How secure are third-party AI agents when connected to Salesforce and other apps?
Security depends on the authorized Salesforce identity, OAuth scopes, object and field permissions, and the external system's controls. On Major, IT centrally scopes connectors and stores credentials in the vault. SSO, RBAC, audit logs, and approval gates govern cross-system work; Salesforce permissions still apply.
Can an AI agent update opportunity stages, trigger a DocuSign workflow, and post deal status to Slack automatically?
Yes, a Major workflow can coordinate those actions through authorized connectors. The agent proposes the stage change and drafts the context; the app records the proposal and signature state. Require human approval before consequential CRM writes, signature requests, or external messages, then record each execution receipt.
What are Agentforce's API or SSO limitations compared to custom external agents?
There is no single universal Agentforce API or SSO limitation that makes an external agent necessary. Agentforce supports extensibility and external tools. Compare the specific identity, action, entitlement, and integration requirements. Major adds a shared deterministic app layer, managed cross-system state, and governance across its apps, agents, and workflows.
How can an AI agent alert me when a contract is about to expire in Salesforce?
Schedule a Major workflow to query approved contract or renewal records and join the account context. The app calculates days remaining and stores notification history. The agent interprets exceptions and drafts a brief, while the workflow routes it to the account owner and requires approval for consequential follow-up.
What are the concrete limits and polling cadences for Salesforce AI agents?
Salesforce daily API allocations vary by edition, licenses, and purchased capacity and are shared across integrations. Inspect the Limit Info header and Limits resource rather than assuming 100,000 calls is universal. Choose a polling schedule from business latency and API budget; Pub/Sub events support event-driven designs where an authenticated subscriber is configured.
How do native Salesforce options compare to external AI agents?
Salesforce Flow and Apex handle internal rules and transactions; Agentforce adds native reasoning and actions. Major is useful when the process needs a persistent review app and coordinated evidence, approvals, and actions across systems. Keep repeatable calculations in app code and reserve the agent for judgment.