Retail / D2Cโ—† Realistic composite#ai#integration#messaging#routing

D2C retail omnichannel service

Messaging (web, in-app, WhatsApp), an OMS/ERP integration for orders and returns, and an Agentforce service agent deflecting 'where is my order' and returns, built for seasonal peaks.

Illustrative design parameters: a direct-to-consumer brand selling online in several countries. Contact volume multiplies in peak season. Order-status questions are the largest single contact reason.

Your confidence:Not rated
Request and Reply ร— 1Fire and Forget ร— 1Remote Call-In ร— 1Batch Data Synchronization ร— 1Data Virtualization ร— 1
1

Order status and timeline

Salesforce (AI agent and console) โ†’ OMS Outbound
Request and Reply
Why this pattern

Customers ask now, and status changes constantly, so it's synchronous Request and Reply. A cache in the Experience API absorbs peak load. Replicating orders would add storage and staleness for no gain.

Protocol / API
Flow/Apex action โ†’ Named Credential โ†’ MuleSoft Order Experience API (REST) with cache
Middleware
MuleSoft
Frequency / volume
Very high, especially in peak; cached for a short TTL
Error handling and retry
Timeout with a graceful message. The AI agent offers a human or a callback, and the console shows the last cached status with its timestamp.
Security / auth
OAuth 2.0 client credentials; the API enforces that an order belongs to the verified customer
2

Return and refund creation

Salesforce โ†’ OMS / ERP Outbound
Fire and Forget
Why this pattern

Return creation involves the OMS, warehouse and payments, and needn't block the conversation. Fire and Forget with a confirmation callback gives the customer an immediate 'return started' while the back end completes.

Protocol / API
Return_Request__c insert โ†’ Platform Event โ†’ MuleSoft Returns Process API โ†’ OMS; confirmation callback updates Oms_Return_Id__c
Middleware
MuleSoft
Frequency / volume
High after peak (returns season)
Error handling and retry
Idempotency on the Return_Request__c ID. A rejection callback sets status and creates a human task. Nightly reconciliation with the OMS.
Security / auth
Value limits enforced in the Process API as well as in Salesforce; integration user publish-only
3

Carrier tracking webhooks

Carriers โ†’ Salesforce Inbound
Remote Call-In
Why this pattern

Carriers know about delays first and push them in, so it's Remote Call-In through events. Salesforce then contacts the customer proactively, which removes 'where is my order?' contacts before they happen.

Protocol / API
Carrier webhooks โ†’ MuleSoft โ†’ Pub/Sub API publish Shipment_Delay__e โ†’ Flow sends WhatsApp template / email
Middleware
MuleSoft
Frequency / volume
Bursty; spikes during weather or peak disruption
Error handling and retry
De-duplication per order and ETA change. Quiet hours and frequency caps per customer.
Security / auth
Webhook signatures verified in MuleSoft; only opted-in customers are messaged
4

Customer profile unification

Commerce, OMS, loyalty โ†’ Data 360 Inbound
Batch Data Synchronization
Why this pattern

Unifying large historical datasets from several systems is a Batch Data Synchronization job (with streaming for recent events), done in Data 360 rather than copying everything into core CRM objects.

Protocol / API
Data 360 data streams (batch connectors and streaming ingestion) with identity resolution
Middleware
Data 360 connectors
Frequency / volume
Batch daily for history; near real time for engagement events
Error handling and retry
Data stream monitoring and alerts. Identity-resolution rules tuned with Data & Privacy.
Security / auth
Consent attributes respected in activation; field-level access to profile data in the console
5

Product information for agents

PIM โ†’ Salesforce (console) Inbound
Data Virtualization
Why this pattern

Agents occasionally need size guides and materials. The PIM owns them and changes them often, so Data Virtualization avoids copying a large catalogue.

Protocol / API
Salesforce Connect OData โ†’ Product_Info__x
Middleware
PIM OData endpoint
Frequency / volume
On demand in the console
Error handling and retry
Read-only. An inline error if unavailable.
Security / auth
Named principal, read-only