SolutionsProductPricingResourcesCompanyLoginBook Demo →
Guides · Integrations · Salesforce

Salesforce, Done Right.

Field mapping, custom objects, OAuth scopes and the round-trip latency tips that keep mid-call writes under 200ms.

Read · 14 min · 6 chapters Audience · Salesforce Admin · Engineer Version · v 4.2.0
01
Chapter 01 · OAuth

OAuth scopes, just enough.

AICall's Salesforce connector ships with three scope profiles. Most customers never need anything beyond standard. Pick the narrowest profile that does the job.

Standardapi · refresh_token · offline_access — handles 95% of CRM writes
Extended+ web · full — needed only for record-page UI surfaces
Privileged+ chatter_api — only for Chatter posts on opportunities
02
Chapter 02 · Field Map

Map by intent, not by field.

Most teams map field-to-field on day one and regret it on day thirty. Instead, map by intent: when the agent classifies a caller as "ready to demo", write to the canonical "demo_requested_at" field, regardless of which Salesforce edition the team is on.

// agent-side field map (intent-driven)
{
  "demo_requested": "Opportunity.Demo_Requested_At__c",
  "qualified": "Lead.Status",
  "call_summary": "Task.Description"
}
03
Chapter 03 · Custom Objects

Two hundred custom fields, zero code.

Our largest customers run with 200+ custom fields. The connector handles them natively — no code, no Apex, no Flow. The trick is to define field metadata once, in our connector UI, with type hints. We auto-map type-compatible fields; everything else fails at config time, not at runtime.

04
Chapter 04 · Latency

Round-trip under 200ms.

Mid-call writes only work if Salesforce responds in time. Three tricks:

  1. Region pinning — pin our agent to the same Salesforce instance region. EU agents to EU2, US agents to NA130, etc.
  2. Composite calls — write Account + Contact + Opportunity in one composite REST call, not three sequential ones.
  3. Async non-blockers — non-critical writes (Task creation, Chatter posts) queue async and never block call completion.
05
Chapter 05 · Rollback

When the write fails.

Salesforce has a 100% uptime SLA. Reality is 99.95%. When a write fails, the connector retries five times with exponential backoff, then queues the payload for human review with a complete audit log.

Rollback checklist

  • Five-attempt retry with backoff 200ms → 1s → 5s → 30s → 5min
  • Composite call atomicity preserved — partial writes rolled back
  • Failed writes queue to aicall-salesforce-deadletter
  • Slack alert to admin channel on dead-letter entry
  • Manual replay endpoint available · audit log immutable
06
Chapter 06 · 47 Minutes

The 47-minute deploy.

Our fastest production Salesforce deployment ran in 47 minutes — 200+ custom fields, three custom objects, zero Apex. The customer's IT director kept his day. The two non-negotiable preconditions: API user provisioned ahead of time, and a sample call recording with the full happy-path script.

Outside those two, everything is configurable from our UI. We have not written Apex against a customer's org since 2024.

Questions · Answered

Frequently Asked.

Yes — AICall reads and writes Salesforce in real time: it looks up records mid-call, logs every call as an activity, creates and updates leads, and triggers routing.
Real-time. The agent queries and updates Salesforce during the call, so reps and dashboards see accurate data the moment a call ends.
No — AICall configures the Salesforce connection for you. Custom objects and advanced flows are supported via the API where you want them.
Ready when you are

The LineIs Open.

Get a free AI audit. Live in under 24 hours.