Connectors

Connectors

Connectors are pre-built integrations that sync data between your platforms and Brevo. They handle authentication, data mapping, and real-time synchronization.

What are Connectors?

A Connector is a bi-directional data bridge that:

  • Authenticates securely with external platforms
  • Syncs Data in real-time or batch mode
  • Maps Fields between platform schemas and Brevo
  • Enables Skills to act on synchronized data

Available Connectors

E-commerce Platforms

CRM Systems

Payments

Connector Architecture

graph LR
A[Your Platform] <-->|OAuth/API Key| B[Tajo Connector]
B <-->|Real-time Webhooks| C[Event Processing]
C --> D[Field Mapping]
D --> E[Brevo API]
B <-->|Batch Sync| F[Scheduled Jobs]
F --> D

Data Flow

  1. Authentication: Secure connection via OAuth 2.0 or API keys
  2. Real-time Events: Webhooks capture changes instantly
  3. Batch Sync: Scheduled jobs for historical data
  4. Field Mapping: Configurable mapping to Brevo attributes
  5. Brevo API: Data synced to contacts, events, and lists

Configuration

Basic Setup

connectors:
shopify:
enabled: true
shop_url: "your-store.myshopify.com"
api_key: "${SHOPIFY_API_KEY}"
api_secret: "${SHOPIFY_API_SECRET}"
# Data sync settings
sync:
customers: true
orders: true
products: true
carts: true
# Field mappings
field_mapping:
email: email
first_name: FIRSTNAME
last_name: LASTNAME
total_spent: TOTAL_SPENT

Sync Modes

ModeDescriptionUse Case
Real-timeInstant sync via webhooksCritical customer updates
BatchScheduled sync (hourly/daily)Historical data, reports
HybridReal-time + batch fallbackBest of both worlds

Quick Start

1. Choose Your Connector

Select the connector for your platform from the catalog above.

2. Authenticate

Connect your platform using OAuth or API credentials:

Terminal window
tajo connectors connect shopify \
--shop-url your-store.myshopify.com \
--api-key $SHOPIFY_API_KEY

3. Configure Field Mapping

Map platform fields to Brevo contact attributes:

field_mapping:
email: email
firstName: FIRSTNAME
lastName: LASTNAME
totalOrders: ORDER_COUNT
totalSpent: TOTAL_REVENUE
lastOrderDate: LAST_ORDER_DATE

4. Enable Data Sync

Start syncing data:

Terminal window
tajo connectors sync shopify --full

5. Activate Skills

Enable skills that use the synced data:

Terminal window
tajo skills enable abandoned-cart
tajo skills enable customer-sync

Custom Connectors

Build your own connector for platforms not in the catalog:

Custom Connector

Any Platform

Build a custom connector using the Tajo Connector SDK

Custom Data

Connector SDK

import { ConnectorSDK } from '@tajo/connector-sdk';
const connector = new ConnectorSDK({
name: 'my-platform',
version: '1.0.0',
// Authentication
auth: {
type: 'oauth2',
authorizationUrl: 'https://api.myplatform.com/oauth/authorize',
tokenUrl: 'https://api.myplatform.com/oauth/token'
},
// Data mappings
resources: {
customers: {
endpoint: '/api/customers',
mapping: {
email: 'contact.email',
name: 'contact.full_name'
}
}
},
// Webhooks
webhooks: {
customer_created: '/webhooks/customer',
order_placed: '/webhooks/order'
}
});
export default connector;

Next Steps

Asistente AI

¡Hola! Pregúntame lo que quieras sobre la documentación.

Empieza gratis con Brevo