High-velocity inbound selling for a B2B SaaS company
Inbound leads are de-duplicated, enriched and routed in seconds. An Agentforce engagement agent works the long tail while SDRs take hot leads, and product-usage signals score accounts. Closed-won deals flow to the billing platform.
Illustrative design parameters: about 250 sellers (SDRs, AEs, account managers) in three regions, tens of thousands of inbound leads a month, a freemium product generating usage events, and a separate subscription billing platform.
Marketing automation lead sync
The marketing platform creates and updates records in Salesforce through its connector: Remote Call-In. It's the vendor-supported path, and sync status is visible on both sides.
- Protocol / API
- Standard marketing connector (Salesforce APIs) for leads, contacts, campaigns and engagement
- Middleware
- None
- Frequency / volume
- Near real time; thousands of leads a day
- Error handling and retry
- Connector sync errors queue for retry; duplicate-rule blocks are logged and reviewed daily by marketing ops.
- Security / auth
- Dedicated connector user with a permission set scoped to marketing objects and fields
Lead enrichment at capture
Routing needs segment and region before assignment, so enrichment is a synchronous Request and Reply in the routing path, with a timeout so routing never stalls.
- Protocol / API
- Flow โ Apex invocable โ Named Credential โ provider REST API
- Middleware
- None
- Frequency / volume
- Per new lead; tens of thousands a month
- Error handling and retry
- 2-second timeout; on failure the lead routes on available data and a scheduled job retries enrichment.
- Security / auth
- API key held in an External Credential; only firmographic fields returned
Product usage signals
Sellers need daily signals, not raw events. A batch of aggregates keeps core Salesforce small while Data 360 computes scores and makes them available for agent grounding.
- Protocol / API
- Daily usage aggregates ingested into Data 360; calculated insights mapped to Account and Lead fields
- Middleware
- Data 360 connectors
- Frequency / volume
- Daily, per account
- Error handling and retry
- Ingestion monitoring with alerts on missing days; scores keep last good value and show a 'stale' flag after 48 hours.
- Security / auth
- Warehouse service account with read access to the aggregate tables only
Closed-won order hand-off
Closing a deal shouldn't wait for the billing platform. Fire and Forget with an idempotent event and a confirmation callback keeps quarter-end saves fast and makes failures visible.
- Protocol / API
- Order_Handoff__e (Platform Event) โ integration subscriber (Pub/Sub API) โ billing REST API; confirmation via REST callback
- Middleware
- Integration platform
- Frequency / volume
- Hundreds a month, peaking at quarter end
- Error handling and retry
- Idempotency key per opportunity; failed hand-offs go to an error queue with alerting; daily reconciliation of closed-won vs subscriptions.
- Security / auth
- Integration user with publish permission; callback user limited to subscription fields
Warehouse extract for revenue analytics
Funnel and cohort analysis combine CRM, product and billing data in the warehouse. A nightly batch is sufficient and cheap.
- Protocol / API
- Nightly Bulk API 2.0 extract (leads, opportunities, history, activities summary)
- Middleware
- ELT tool
- Frequency / volume
- Nightly delta
- Error handling and retry
- Row-count reconciliation; failed loads alert the data team.
- Security / auth
- Read-only integration user