brevo-automation
通过Rube MCP(Composio)自动化Brevo(Sendinblue)任务:管理邮件营销活动、创建/编辑模板、追踪发件人状态,并监控活动表现。请始终优先搜索工具以获取最新架构信息。
Brevo Automation via Rube MCP
Automate Brevo (formerly Sendinblue) email marketing operations through Composio's Brevo toolkit via Rube MCP.
Prerequisites
RUBE_MANAGE_CONNECTIONS with toolkit brevoRUBE_SEARCH_TOOLS first to get current tool schemasSetup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
RUBE_SEARCH_TOOLS respondsRUBE_MANAGE_CONNECTIONS with toolkit brevoCore Workflows
1. Manage Email Campaigns
When to use: User wants to list, review, or update email campaigns
Tool sequence:
BREVO_LIST_EMAIL_CAMPAIGNS - List all campaigns with filters [Required]BREVO_UPDATE_EMAIL_CAMPAIGN - Update campaign content or settings [Optional]Key parameters for listing:
type: Campaign type ('classic' or 'trigger')status: Campaign status ('suspended', 'archive', 'sent', 'queued', 'draft', 'inProcess', 'inReview')startDate/endDate: Date range filter (YYYY-MM-DDTHH:mm:ss.SSSZ format)statistics: Stats type to include ('globalStats', 'linksStats', 'statsByDomain')limit: Results per page (max 100, default 50)offset: Pagination offsetsort: Sort order ('asc' or 'desc')excludeHtmlContent: Set true to reduce response sizeKey parameters for update:
campaign_id: Numeric campaign ID (required)name: Campaign namesubject: Email subject linehtmlContent: HTML email body (mutually exclusive with htmlUrl)htmlUrl: URL to HTML contentsender: Sender object with name, email, or idrecipients: Object with listIds and exclusionListIdsscheduledAt: Scheduled send time (YYYY-MM-DDTHH:mm:ss.SSSZ)Pitfalls:
startDate and endDate are mutually required; provide both or neitherstatus is not passed or set to 'sent'htmlContent and htmlUrl are mutually exclusivesender email must be a verified sender in BrevosubjectA, subjectB, splitRule, winnerCriteria) require abTesting: truescheduledAt uses full ISO 8601 format with timezone2. Create and Manage Email Templates
When to use: User wants to create, edit, list, or delete email templates
Tool sequence:
BREVO_GET_ALL_EMAIL_TEMPLATES - List all templates [Required]BREVO_CREATE_OR_UPDATE_EMAIL_TEMPLATE - Create a new template or update existing [Required]BREVO_DELETE_EMAIL_TEMPLATE - Delete an inactive template [Optional]Key parameters for listing:
templateStatus: Filter active (true) or inactive (false) templateslimit: Results per page (max 1000, default 50)offset: Pagination offsetsort: Sort order ('asc' or 'desc')Key parameters for create/update:
templateId: Include to update; omit to create newtemplateName: Template display name (required for creation)subject: Email subject line (required for creation)htmlContent: HTML template body (min 10 characters; use this or htmlUrl)sender: Sender object with name and email, or id (required for creation)replyTo: Reply-to email addressisActive: Activate or deactivate the templatetag: Category tag for the templatePitfalls:
templateId is provided, the tool updates; when omitted, it createstemplateName, subject, and sender are requiredhtmlContent must be at least 10 characters{{contact.ATTRIBUTE}} syntaxhtmlContent and htmlUrl are mutually exclusive3. Manage Senders
When to use: User wants to view authorized sender identities
Tool sequence:
BREVO_GET_ALL_SENDERS - List all verified senders [Required]Key parameters: (none required)
Pitfalls:
sender.id fields for campaigns and templates4. Configure A/B Testing Campaigns
When to use: User wants to set up or modify A/B test settings on a campaign
Tool sequence:
BREVO_LIST_EMAIL_CAMPAIGNS - Find the target campaign [Prerequisite]BREVO_UPDATE_EMAIL_CAMPAIGN - Configure A/B test settings [Required]Key parameters:
campaign_id: Campaign to configureabTesting: Set to true to enable A/B testingsubjectA: Subject line for variant AsubjectB: Subject line for variant BsplitRule: Percentage split for the test (1-99)winnerCriteria: 'open' or 'click' for determining the winnerwinnerDelay: Hours to wait before selecting winner (1-168)Pitfalls:
abTesting: true) before setting variant fieldssplitRule is the percentage of contacts that receive variant AwinnerDelay defines how long to test before sending the winner to remaining contactsCommon Patterns
Campaign Lifecycle
1. Create campaign (status: draft)
Set recipients (listIds)
Configure content (htmlContent or htmlUrl)
Optionally schedule (scheduledAt)
Send or schedule via Brevo UI (API update can set scheduledAt) Pagination
limit (page size) and offset (starting index)offset by limit each pagecount in response to determine total availableTemplate Personalization
- First name: {{contact.FIRSTNAME}}
Last name: {{contact.LASTNAME}}
Custom attribute: {{contact.CUSTOM_ATTRIBUTE}}
Mirror link: {{mirror}}
Unsubscribe link: {{unsubscribe}} Known Pitfalls
Date Formats:
startDate and endDate must be used togetherSender Verification:
Rate Limits:
Response Parsing:
data or data.dataQuick Reference
| Task | Tool Slug | Key Params |
|---|---|---|
| List campaigns | BREVO_LIST_EMAIL_CAMPAIGNS | type, status, limit, offset |
| Update campaign | BREVO_UPDATE_EMAIL_CAMPAIGN | campaign_id, subject, htmlContent |
| List templates | BREVO_GET_ALL_EMAIL_TEMPLATES | templateStatus, limit, offset |
| Create template | BREVO_CREATE_OR_UPDATE_EMAIL_TEMPLATE | templateName, subject, htmlContent, sender |
| Update template | BREVO_CREATE_OR_UPDATE_EMAIL_TEMPLATE | templateId, htmlContent |
| Delete template | BREVO_DELETE_EMAIL_TEMPLATE | templateId |
| List senders | BREVO_GET_ALL_SENDERS | (none) |