Salesforce Commerce Cloud + Brevo 集成

Salesforce Commerce Cloud + Brevo

通过 MCP 将 Salesforce Commerce Cloud(SFCC)商店数据连接到 Brevo 的互动平台。同步客户、追踪订单生命周期事件、根据浏览行为进行再营销,并运行企业级多渠道营销活动。

配置步骤

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"
}
}
}
}

用例: 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

后续步骤

AI 助手

你好!关于文档有任何问题都可以问我。

免费开始使用Brevo