Özel API + Brevo entegrasyonu
Özel API + Brevo
Her platformun bir MCP sunucusu yoktur. WooCommerce, BigCommerce, Magento, kurum içi CRM’ler veya REST API’si olan herhangi bir sistem için, verilerinizi Brevo’ya köprüleyen bir bağlayıcı agent oluşturun.
İki yaklaşım
Yaklaşım 1: Topluluk MCP sunucusu
Platformunuz için bir topluluk MCP sunucusu olup olmadığını kontrol edin:
| Platform | Topluluk MCP | Durum |
|---|---|---|
| WooCommerce | woocommerce-mcp-server | Topluluk tarafından sürdürülüyor |
| BigCommerce | MCP sunucu dizinine bakın | Değişken |
| Magento | MCP sunucu dizinine bakın | Değişken |
| Salesforce | Birden fazla seçenek mevcut | Etkin topluluk |
| Zendesk | Composio/Zapier üzerinden kullanılabilir | Etkin |
Bir topluluk sunucusu varsa, onu resmi sunucularla aynı şekilde kullanın: Brevo MCP’nin yanına Claude yapılandırmanıza ekleyin.
Yaklaşım 2: HTTP araçlarına sahip agent
MCP sunucusu olmayan platformlar için, REST API’leri doğrudan çağırmak üzere Claude’un yerleşik HTTP yeteneklerini kullanan ve ardından MCP aracılığıyla Brevo’ya yazan bir agent oluşturun.
Özel bağlayıcı agent oluşturma
Adım 1: Kaynak API’yi anlayın
Agent’ınızın ihtiyaç duyduğu temel uç noktaları belgeleyin:
# Example: WooCommerce REST APIsource_api: base_url: "https://your-store.com/wp-json/wc/v3" auth: Basic (consumer_key:consumer_secret) endpoints: - GET /customers # List customers - GET /customers/{id} # Get customer details - GET /orders # List orders - GET /orders/{id} # Get order details - GET /products # List products - GET /coupons # List couponsAdım 2: Agent’ı tanımlayın
---name: woocommerce-brevo-syncdescription: Sync WooCommerce customers and orders to Brevoversion: 1.0.0temperature: 0.1tools: - brevo_contacts - brevo_attributes - brevo_lists - brevo_email_campaign_managementtriggers: - schedule: "0 */6 * * *" - webhook: /agents/woocommerce/sync method: POST---
# WooCommerce → Brevo Sync Agent
Connect WooCommerce store data to Brevo for engagement campaigns.
## Source API
- **Base URL**: https://your-store.com/wp-json/wc/v3- **Authentication**: Basic Auth with consumer key/secret- **Key endpoints**: /customers, /orders, /products
## Sync Strategy
### Customer Sync1. GET /customers?modified_after={last_sync_time}2. For each customer: - Map WooCommerce fields to Brevo attributes - Create or update Brevo contact - Add to appropriate list based on order history
### Order Event Sync1. GET /orders?after={last_sync_time}&status=completed2. For each order: - Track "order_completed" event in Brevo - Update contact attributes (order_count, total_spent) - Trigger post-purchase campaign if applicable
## Field Mapping
| WooCommerce | Brevo Attribute ||-------------|-----------------|| email | EMAIL || first_name | FIRSTNAME || last_name | LASTNAME || billing.phone | SMS || orders_count | ORDER_COUNT || total_spent | TOTAL_SPENT || date_created | CUSTOMER_SINCE || role | CUSTOMER_TYPE |
## API Call Pattern
For each sync operation, the agent should:1. Call WooCommerce REST API to fetch data2. Transform the response to Brevo's expected format3. Call Brevo MCP tools to create/update contacts4. Log sync results for monitoring
## Rules- Respect WooCommerce API rate limits (default: 25 req/10 seconds)- ONLY sync customers with valid email addresses- Implement incremental sync using modified_after parameter- Store last sync timestamp for next runAdım 3: Brevo MCP’yi yapılandırın
Yalnızca agent’ınızın ihtiyaç duyduğu Brevo modüllerini bağlayın:
{ "mcpServers": { "brevo_contacts": { "url": "https://mcp.brevo.com/v1/brevo_contacts/mcp", "headers": { "Authorization": "Bearer your-brevo-token" } }, "brevo_email": { "url": "https://mcp.brevo.com/v1/brevo_email_campaign_management/mcp", "headers": { "Authorization": "Bearer your-brevo-token" } }, "brevo_lists": { "url": "https://mcp.brevo.com/v1/brevo_lists/mcp", "headers": { "Authorization": "Bearer your-brevo-token" } } }}Adım 4: Agent’ı çalıştırın
You: "Sync all WooCommerce customers from the last week to Brevo and add new customers to the Welcome Series list."
Claude: I'll sync your WooCommerce customers to Brevo.
Fetching customers modified in the last 7 days from WooCommerce...[Makes HTTP GET to your-store.com/wp-json/wc/v3/customers?modified_after=...]
Found 67 customers. Syncing to Brevo...[Uses brevo_contacts to create/update contacts][Uses brevo_lists to add 23 new customers to "Welcome Series"]
Sync complete:- 67 customers processed- 44 existing contacts updated- 23 new contacts created → added to Welcome Series- 0 skipped (all had valid emails)Şablon: genel REST API bağlayıcısı
Bu şablonu her REST API için kullanın:
---name: {platform}-brevo-connectordescription: Sync {platform} data to Brevo for engagementversion: 1.0.0temperature: 0.1tools: - brevo_contacts - brevo_attributes - brevo_liststriggers: - schedule: "0 */6 * * *"---
# {Platform} → Brevo Connector
## Source API Configuration- **Base URL**: {api_base_url}- **Auth**: {auth_method} ({details})- **Rate Limit**: {rate_limit}
## Data to Sync
### Contacts- Source endpoint: {endpoint}- Brevo mapping: {field_map}- Sync frequency: Every 6 hours- Incremental: Use modified_after / updated_since parameter
### Events- Source endpoint: {endpoint}- Brevo event name: {event_name}- Trigger: When {condition}
## Sync Logic1. Fetch changed records from source since last sync2. Transform to Brevo format3. Upsert contacts via brevo_contacts4. Track events for campaign triggers5. Log results and update sync cursor
## Error Handling- Retry failed API calls 3 times with exponential backoff- Skip individual records that fail validation- Report errors in sync summary- NEVER stop entire sync for single record failureNe zaman tam bir MCP sunucusu oluşturmalı
Aynı platforma tekrar tekrar bağlandığınızı fark ederseniz, düzgün bir MCP sunucusu oluşturmayı değerlendirin:
| Sadece agent kullanın | MCP sunucusu oluşturun |
|---|---|
| Tek seferlik veya seyrek senkronizasyonlar | Günlük üretim senkronizasyonu |
| Entegrasyonun prototipini çıkarma | Ekip veya kurum genelinde paylaşım |
| Basit okuma işlemleri | Karmaşık, çok adımlı işlemler |
| 5’ten az API uç noktası gerekiyor | Tam API kapsamı gerekiyor |
Özel bir MCP sunucusu oluşturmak için MCP belirtimine ve OpenAPI belirtimlerinden sunucu üretme konusunda Tajo’nun Integration Builder’ına bakın.
Sonraki adımlar
- Entegrasyon katmanına genel bakış, mevcut tüm entegrasyonlar
- Shopify + Brevo, resmi MCP örneği
- Agent belirtimi, agent markdown biçimi
- Brevo MCP sunucusu, mevcut Brevo modülleri