BigCommerce + Brevo 集成

BigCommerce + Brevo

通过 MCP 将 BigCommerce 商店数据连接到 Brevo 的互动平台。同步客户、触发基于订单的营销活动、恢复废弃购物车,并推动重复购买, 全部由 Claude 中的 AI 代理协调完成。

使用的 MCP 服务器

服务器包/URL认证方式用途
BigCommerce MCP社区 MCP 服务器API 令牌 (V3)客户、订单、产品、购物车、渠道
Brevo MCPmcp.brevo.com/v1/brevo/mcpToken联系人、邮件营销活动、短信、WhatsApp、事件追踪

Tip

BigCommerce 提供全面的 V3 REST API。使用社区 MCP 服务器或 自定义 API + Brevo 模式将 BigCommerce 数据与 Brevo MCP 一同连接到 Claude。

配置步骤

第一步:创建 BigCommerce API 凭证

  1. 在 BigCommerce 管理后台,进入 Settings > API > API Accounts
  2. 创建 V3 API 账户,配置权限范围:Customers (read)、Orders (read)、Products (read)、Carts (read)
  3. 记录 Store Hash、Client ID 和 Access Token

第二步:连接两个 MCP 服务器

{
"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"
}
},
"bigcommerce": {
"command": "npx",
"args": ["-y", "bigcommerce-mcp-server"],
"env": {
"BIGCOMMERCE_STORE_HASH": "your-store-hash",
"BIGCOMMERCE_ACCESS_TOKEN": "your-access-token"
}
}
}
}

第三步:验证连接

询问 Claude:

> 我的 BigCommerce 商店有多少客户?
> 我的 Brevo 账户中有多少联系人?

Claude 应使用 BigCommerce MCP 回答第一个问题,使用 Brevo MCP 回答第二个问题。

用例一:客户同步代理

将 BigCommerce 客户与购买历史同步到 Brevo 联系人:

---
name: bigcommerce-customer-sync
description: Sync BigCommerce customers to Brevo contacts with order data
version: 1.0.0
temperature: 0.1
tools:
- bigcommerce
- brevo_contacts
- brevo_attributes
- brevo_lists
triggers:
- schedule: "0 */6 * * *"
- event: customer_created
- event: order_completed
---
# BigCommerce Customer Sync Agent
Synchronize customer data from BigCommerce to Brevo contacts.
## Strategy
1. Query BigCommerce for customers modified since last sync
2. For each customer, fetch order history from BigCommerce
3. Create or update Brevo contact with profile + commerce attributes
4. Segment into Brevo lists:
- New registrations → "Welcome Series" list
- Repeat buyers (2+ orders) → "Loyal Customers" list
- High-value (>$500 LTV) → "VIP" list
- Inactive (no order in 90 days) → "Win-Back" list
## Field Mapping
| BigCommerce Field | Brevo Attribute |
|------------------|-----------------|
| email | EMAIL |
| first_name | FIRSTNAME |
| last_name | LASTNAME |
| phone | SMS |
| company | COMPANY |
| date_created | SIGNUP_DATE |
| orders_count (computed) | ORDER_COUNT |
| total_spent (computed) | TOTAL_SPENT |
| last_order_date (computed) | LAST_ORDER |
| customer_group_id | BC_SEGMENT |
| accepts_product_review_abandoned_cart_emails | OPT_IN |
## Rules
- ONLY sync customers who have accepted marketing emails
- NEVER overwrite Brevo data if BigCommerce field is empty
- ALWAYS validate phone numbers to E.164 format before sync
- Track events: bc_sync_success, bc_sync_error

用例二:购后营销活动代理

根据 BigCommerce 订单数据触发个性化购后序列:

---
name: bigcommerce-post-purchase
description: Orchestrate post-purchase campaigns based on BigCommerce order events
version: 1.0.0
temperature: 0.3
tools:
- bigcommerce
- brevo_contacts
- brevo_email_campaign_management
- brevo_templates
- brevo_sms_campaigns
triggers:
- event: order_completed
- event: order_shipped
---
# BigCommerce Post-Purchase Agent
When a BigCommerce order completes or ships, trigger the appropriate engagement sequence in Brevo.
## Sequence Logic
### First-Time Buyers
1. Immediate: Order confirmation (transactional)
2. Day 3: Welcome email with brand story and product care tips
3. Day 7: How-to guide for purchased product category
4. Day 14: Review request with direct link
5. Day 30: Cross-sell based on purchased category
### Repeat Buyers
1. Immediate: Order confirmation
2. Day 3: Loyalty reward notification
3. Day 14: "Restock" reminder if consumable product
4. Day 21: Early access to new arrivals in preferred category
### High-Value Orders (>$200)
1. Immediate: Premium order confirmation
2. Day 1: Personal thank-you email
3. Day 3: SMS with tracking + styling/usage tips
4. Day 7: VIP program invitation
### Order Shipped
1. Immediate: Shipping confirmation with tracking link
2. +2 days: SMS tracking update
3. +5 days (estimated delivery): "How's your order?" check-in
## Rules
- ALWAYS check order status before sending, skip if cancelled/refunded
- NEVER send marketing to customers who haven't opted in
- Personalize with: product name, order number, customer first name
- Use Brevo template variables for dynamic content

用例三:废弃购物车恢复

将 BigCommerce 购物车数据与 Brevo 消息系统对接:

---
name: bigcommerce-cart-recovery
description: Recover BigCommerce abandoned carts via Brevo email, SMS, and WhatsApp
version: 1.0.0
temperature: 0.2
tools:
- bigcommerce
- brevo_contacts
- brevo_email_campaign_management
- brevo_templates
- brevo_sms_campaigns
triggers:
- event: cart_abandoned
conditions:
- cart_value: "> 30"
- time_since_activity: "> 1h"
---
# BigCommerce Cart Recovery Agent
Monitor BigCommerce abandoned carts and execute recovery sequences through Brevo.
## Recovery Sequence
1. **+1 hour**: Reminder email with cart contents and product images
2. **+24 hours**: If no open → SMS with short link to cart
3. **+48 hours**: If no recovery → Email with 10% discount code
4. **+72 hours**: If cart > $150 and no recovery → WhatsApp with personal message
## Cart Data to Include
- Product images and names (from BigCommerce)
- Cart total with currency formatting
- Direct checkout recovery URL
- Discount code (generated dynamically for step 3)
## Rules
- NEVER send to customers who already completed checkout
- ALWAYS check cart status before each step
- Maximum 4 touchpoints per abandoned cart
- Respect opt-out preferences per channel

示例:自然语言协调

连接两个 MCP 服务器后:

您:"找出 BigCommerce 中过去 3 个月购买超过两次,
但不在我 Brevo 的'Loyal Customers'名单中的客户。
将他们加入并发送忠诚度奖励邮件。"
Claude:正在查询 BigCommerce 中的重复购买客户...
[使用 BigCommerce MCP 获取过去 90 天内有 2+ 订单的客户]
找到 67 名重复购买客户。
正在检查 Brevo 列表成员资格...
[使用 brevo_contacts 检查"Loyal Customers"列表]
29 名客户不在列表中。正在处理...
[创建/更新 29 个联系人,添加 ORDER_COUNT 和 TOTAL_SPENT 属性]
[将 29 人加入"Loyal Customers"列表]
[触发忠诚度奖励邮件模板]
完成:
- 29 名客户已加入"Loyal Customers"列表
- 忠诚度奖励邮件已发送给全部 29 人
- ORDER_COUNT 和 TOTAL_SPENT 属性已更新
- 38 人已在列表中(已跳过)

后续步骤

AI 助手

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

免费开始使用Brevo