تكامل Salesforce Commerce Cloud + Brevo
Salesforce Commerce Cloud + Brevo
اربط بيانات متجر Salesforce Commerce Cloud (SFCC) بمنصة التفاعل في Brevo عبر MCP. زامن العملاء، تتبع أحداث دورة حياة الطلب، أعد الاستهداف بناءً على سلوك التصفح، وشغّل حملات متعددة القنوات على مستوى المؤسسة.
الإعداد
Step 1: Configure Salesforce Connected App
- In Salesforce Setup, create a Connected App with OAuth enabled
- Grant scopes:
api,refresh_token,offline_access - Note your Consumer Key and Consumer Secret
Step 2: Connect Both MCP Servers
{ "mcpServers": { "brevo": { "command": "npx", "args": [ "mcp-remote", "https://mcp.brevo.com/v1/brevo/mcp", "--header", "Authorization: Bearer ${BREVO_MCP_TOKEN}" ], "env": { "BREVO_MCP_TOKEN": "your-brevo-mcp-token" } }, "salesforce": { "command": "npx", "args": ["-y", "@anthropic/salesforce-mcp"], "env": { "SALESFORCE_INSTANCE_URL": "https://your-instance.salesforce.com", "SALESFORCE_CLIENT_ID": "your-consumer-key", "SALESFORCE_CLIENT_SECRET": "your-consumer-secret" } } }}حالة الاستخدام: Customer Sync Agent
---name: sfcc-customer-syncdescription: Sync Salesforce Commerce Cloud customers to Brevo with order historyversion: 1.0.0temperature: 0.1tools: - salesforce - brevo_contacts - brevo_attributes - brevo_liststriggers: - schedule: "0 */4 * * *" - event: customer_created - event: order_completed---
# SFCC Customer Sync Agent
Synchronize customer data from Salesforce Commerce Cloud to Brevo contacts.
## Strategy
1. Query SFCC for customer profiles updated since last sync via SOQL2. For each customer, query related order data3. Create or update Brevo contact with profile + commerce attributes4. Segment into Brevo lists based on purchase behavior
## Field Mapping
| SFCC Field | Brevo Attribute ||-----------|-----------------|| Email | EMAIL || FirstName | FIRSTNAME || LastName | LASTNAME || Phone | SMS || MailingCountry | COUNTRY || Account.Name | COMPANY || Total Orders (computed) | ORDER_COUNT || Total Revenue (computed) | TOTAL_SPENT || Last Order Date | LAST_ORDER |
## Rules- ONLY sync contacts with valid email and marketing consent- NEVER overwrite Brevo data if SFCC field is null- Track events: sfcc_sync_success, sfcc_sync_error