Tích Hợp Salesforce Commerce Cloud + Brevo

Salesforce Commerce Cloud + Brevo

Kết nối dữ liệu cửa hàng Salesforce Commerce Cloud (SFCC) với nền tảng tương tác Brevo qua MCP. Đồng bộ khách hàng, theo dõi sự kiện vòng đời đơn hàng, nhắm mục tiêu lại dựa trên hành vi duyệt web và chạy chiến dịch đa kênh cấp doanh nghiệp.

Thiết Lập

Step 1: Configure Salesforce Connected App

  1. In Salesforce Setup, create a Connected App with OAuth enabled
  2. Grant scopes: api, refresh_token, offline_access
  3. 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"
}
}
}
}

Trường Hợp Sử Dụng: Customer Sync Agent

---
name: sfcc-customer-sync
description: Sync Salesforce Commerce Cloud customers to Brevo with order history
version: 1.0.0
temperature: 0.1
tools:
- salesforce
- brevo_contacts
- brevo_attributes
- brevo_lists
triggers:
- 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 SOQL
2. For each customer, query related order data
3. Create or update Brevo contact with profile + commerce attributes
4. 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

Các Bước Tiếp Theo

Trợ lý AI

Xin chào! Hãy hỏi tôi về tài liệu.

Bắt đầu miễn phí với Brevo