Automate Brevo Email Campaigns and Templates
A skill for automating Brevo email campaigns, templates, senders, and A/B testing through Composio's Brevo toolkit via Rube MCP.
Maintainer of this project? Claim this page to edit the listing.
13.1.0Add to Favorites
Why it matters
Streamline your email marketing by automating campaign management, template creation, and sender configuration within Brevo. This asset leverages Rube MCP to efficiently handle your email operations.
Outcomes
What it gets done
Manage and update existing email campaigns.
Create, update, and delete email templates.
Configure A/B testing for email campaigns.
List and verify sender identities.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/ag-brevo-automation | bash Overview
Brevo Automation via Rube MCP
This skill automates Brevo email marketing via Rube MCP and Composio's Brevo toolkit: campaign listing/updating, template CRUD, verified sender lookup, and A/B test configuration on classic campaigns. Use it to manage Brevo campaigns, templates, senders, or A/B tests through Rube MCP. Requires an ACTIVE Brevo connection via RUBE_MANAGE_CONNECTIONS before running any workflow.
What it does
This skill automates Brevo, formerly Sendinblue, email marketing through Composio's Brevo toolkit via Rube MCP, across four core workflows. Managing email campaigns: BREVO_LIST_EMAIL_CAMPAIGNS filters by type (classic or trigger), status (draft, queued, sent, and others), date range, and requested statistics, with pagination; BREVO_UPDATE_EMAIL_CAMPAIGN edits name, subject, HTML content or a URL to it, sender, recipients, and scheduling. Creating and managing templates: BREVO_GET_ALL_EMAIL_TEMPLATES lists templates filtered by active status; BREVO_CREATE_OR_UPDATE_EMAIL_TEMPLATE creates a template, requiring name, subject, and sender, or updates one by including templateId, using {{contact.ATTRIBUTE}} personalization syntax; BREVO_DELETE_EMAIL_TEMPLATE removes an inactive template. Managing senders: BREVO_GET_ALL_SENDERS lists verified sender identities, which must be verified through Brevo's own web interface, not the API, before they can be used in campaigns or templates. Configuring A/B testing: setting abTesting to true on a classic-type campaign along with subjectA and subjectB variants, a splitRule percentage, winnerCriteria of open or click, and a winnerDelay in hours before the winning variant is sent to the rest of the list.
When to use - and when NOT to
Use it to list or update Brevo email campaigns, create, edit, or delete templates, check verified senders, or configure A/B tests, all through Rube MCP. Setup requires Rube MCP connected with RUBE_SEARCH_TOOLS available and an ACTIVE Brevo connection via RUBE_MANAGE_CONNECTIONS - if not active, complete the returned Brevo authentication link first, and always call RUBE_SEARCH_TOOLS first to get current tool schemas. Known pitfalls to respect: startDate and endDate must be passed together or not at all, in ISO 8601 format with milliseconds; htmlContent and htmlUrl are mutually exclusive; unverified sender emails cause campaign or template failures; A/B testing only works on classic campaigns; and Brevo enforces rate limits requiring backoff on 429 responses, with template operations more tightly limited than read operations.
Inputs and outputs
Given a workflow - campaign management, template CRUD, sender lookup, or A/B configuration - it calls the matching BREVO_* tool with the documented parameters and returns campaign, template, or sender data, parsed defensively since response data may be nested under data or data.data, with numeric integer IDs for campaigns and templates.
Integrations
Rube MCP at https://rube.app/mcp, which needs no API keys for the MCP endpoint itself, bridges to Composio's Brevo toolkit, which in turn calls Brevo's own email marketing API.
Who it's for
Marketing operations teams and developers automating Brevo campaign management, template creation, and A/B testing through an AI assistant connected via Rube MCP, rather than using Brevo's dashboard directly for routine tasks.
Source README
Brevo Automation via Rube MCP
Automate Brevo (formerly Sendinblue) email marketing operations through Composio's Brevo toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Brevo connection via
RUBE_MANAGE_CONNECTIONSwith toolkitbrevo - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
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.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkitbrevo - If connection is not ACTIVE, follow the returned auth link to complete Brevo authentication
- Confirm connection status shows ACTIVE before running any workflows
Core 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: Settrueto reduce response size
Key parameters for update:
campaign_id: Numeric campaign ID (required)name: Campaign namesubject: Email subject linehtmlContent: HTML email body (mutually exclusive withhtmlUrl)htmlUrl: URL to HTML contentsender: Sender object withname,email, oridrecipients: Object withlistIdsandexclusionListIdsscheduledAt: Scheduled send time (YYYY-MM-DDTHH:mm:ss.SSSZ)
Pitfalls:
startDateandendDateare mutually required; provide both or neither- Date filters only work when
statusis not passed or set to 'sent' htmlContentandhtmlUrlare mutually exclusive- Campaign
senderemail must be a verified sender in Brevo - A/B testing fields (
subjectA,subjectB,splitRule,winnerCriteria) requireabTesting: true scheduledAtuses full ISO 8601 format with timezone
2. 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 orhtmlUrl)sender: Sender object withnameandemail, orid(required for creation)replyTo: Reply-to email addressisActive: Activate or deactivate the templatetag: Category tag for the template
Pitfalls:
- When
templateIdis provided, the tool updates; when omitted, it creates - For creation,
templateName,subject, andsenderare required htmlContentmust be at least 10 characters- Template personalization uses
{{contact.ATTRIBUTE}}syntax - Only inactive templates can be deleted
htmlContentandhtmlUrlare mutually exclusive
3. 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:
- Senders must be verified before they can be used in campaigns or templates
- Sender verification is done through the Brevo web interface, not via API
- Sender IDs can be used in
sender.idfields for campaigns and templates
4. 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 totrueto 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:
- A/B testing must be enabled (
abTesting: true) before setting variant fields splitRuleis the percentage of contacts that receive variant AwinnerDelaydefines how long to test before sending the winner to remaining contacts- Only works with 'classic' campaign type
Common Patterns
Campaign Lifecycle
1. Create campaign (status: draft)
2. Set recipients (listIds)
3. Configure content (htmlContent or htmlUrl)
4. Optionally schedule (scheduledAt)
5. Send or schedule via Brevo UI (API update can set scheduledAt)
Pagination
- Use
limit(page size) andoffset(starting index) - Default limit is 50; max varies by endpoint (100 for campaigns, 1000 for templates)
- Increment
offsetbylimiteach page - Check
countin response to determine total available
Template Personalization
- First name: {{contact.FIRSTNAME}}
- Last name: {{contact.LASTNAME}}
- Custom attribute: {{contact.CUSTOM_ATTRIBUTE}}
- Mirror link: {{mirror}}
- Unsubscribe link: {{unsubscribe}}
Known Pitfalls
Date Formats:
- All dates use ISO 8601 with milliseconds: YYYY-MM-DDTHH:mm:ss.SSSZ
- Pass timezone in the date-time format for accurate results
startDateandendDatemust be used together
Sender Verification:
- All sender emails must be verified in Brevo before use
- Unverified senders cause campaign creation/update failures
- Use GET_ALL_SENDERS to check available verified senders
Rate Limits:
- Brevo API has rate limits per account plan
- Implement backoff on 429 responses
- Template operations have lower limits than read operations
Response Parsing:
- Response data may be nested under
dataordata.data - Parse defensively with fallback patterns
- Campaign and template IDs are numeric integers
Quick 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) |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.