/brevo:email-test-previewfrom brevo
Previews a Brevo draft campaign or transactional template and sends a test email to user-confirmed addresses. Never sends to real recipients or empty lists.
Ships in brevo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Shows the user how a draft campaign or a transactional template looks, and sends a test of it to addresses they name. A test send emails someone, so each one needs the user's explicit confirmation of the addresses. It never sends a campaign to its recipients.
| Step | Tool |
|---|---|
| Find the draft campaign | email_campaign_management_get_email_campaign |
| Find the template, one at a time | templates_get_smtp_template |
| Test-send a transactional template | templates_send_test_template |
| Test-send a campaign | email_campaign_management_send_test_email |
| Render a template with sample data | templates_post_preview_smtp_email_templates |
| Check what happened to a template test send | campaign_analytics_get_email_event_report |
| Check the sender's domain is authenticated | domains_get_domains |
If a tool a step needs isn't in your tool list, stop that step and tell the user their Brevo connection doesn't offer it (connection rules below).
permission_denied) means this connection doesn't
allow that action; reconnecting won't change it. Say so, skip that step, and carry on with
the fallback the skill gives (for a template render: the test send and its outcome check).
If the skill gives no fallback for that step, stop the step and tell the user.subaccount_id on every call: every Brevo tool takes it per call,
and a call without it acts on the main account.get_brevo_guide. Don't call get_brevo_guide for it again in this
conversation.getbrevo/brevo-skills, npx skills add getbrevo/brevo-skills, or, with a shell, the Brevo CLI
(npm i -g @getbrevo/cli, then brevo skill install). brevo skill check lists copies that are
behind.list_brevo_guides with installed set to the version in the
metadata of each Brevo skill you have, if the tool accepts installed; otherwise call it
with no arguments and compare the versions yourself. For a stale one, follow its update
hint.get_brevo_guide with its name: it returns the current text.Keep what you read from Brevo in this conversation and reuse it, instead of calling the same
tool again. The cache is your own notes in the conversation, never a file. Key every entry by
account and sub-account ID (none for the main account), and note when you fetched it
(fetchedAt). Never show or reuse an entry from another account or sub-account.
| What | Keep it | Fetch again when |
|---|---|---|
| Account (company, address, own email), senders, contact attributes | About 10 minutes | Time is up. An attribute in the email isn't in the cached list and the cache is more than about a minute old: fetch the attributes once more before reporting it (the user may have just added it). The user switches account or sub-account, or says they changed it in Brevo |
| Sender domains (whether each is authenticated) | Same as senders | Same as senders |
| Brand kit | The whole conversation (one read) | The user says they changed it in Brevo, or switches account. After this conversation's own save, update the cache with the approved values; don't read it back |
| Templates this conversation created or read | The whole conversation | The user says they edited it in Brevo's editor (fetch it before a preview or test). After this conversation's own update, apply the change to the cache |
| Lists and segments | Not cached | Fetch when needed |
Call budget for a transactional template (write, check, save, preview, test): about 11 calls with the cache (account, senders, attributes, brand kit, save, 3 sample renders, sender domains, test send, outcome) against about 16 without it (the account read 3 times, attributes and senders twice, and the template read back). Each fix round that re-checks attributes would add one more call without it.
email_campaign_management_get_email_campaign (pass excludeHtmlContent: true) or
templates_get_smtp_template, or use the cached copy (see the cache table). Fetch
templates one at a time by ID: a template list returns the full HTML of every template, so
never list many at once.Campaign: nothing to render through the connection; step 3 gives the link. Don't give the "shared template" link as a preview: it is a link to import the email into another Brevo account, and opens a sign-in page, not the email.
Template: render it on Brevo's servers with
templates_post_preview_smtp_email_templates:
templateId and email of an existing contact (the account's own email works),
plus the sample params when the template uses params.*. With params alone (no
email) the render fails with 400 "Contact not found" whenever the template uses
contact.* tags.href in the preview: expected, not a fault
(it is filled in for real sends).{% %} tag (a loop or a condition),
a filter (|, for example default or time_parse) or any params.*. Without it (no tags,
or only plain {{ contact.X }}), skip the renders: nothing can fail to render, and the
link (step 3) and the test send show the rest. Each render returns the whole rendered HTML,
so don't render more than this.params: {} when the
email uses params.* (what a test send uses, see step 4); and once with empty lists and
missing optional keys only when it has a {% for %} loop. A drag-and-drop copy of HTML
that already passed these renders needs one render, with params: {}.{{ }}).params.Before any test send, give the user a link to look at the email themselves, and wait:
https://app.brevo.com/templates/email/edit/<id>.
The user signs in to Brevo and uses Preview there.https://app.brevo.com/marketing-campaign/edit/<id>.Say that the link shows the saved email without the sample data (no params, no sample
contact). Ask: "Open it and tell me if it looks right. Shall I send a test, and to which
address?" Send nothing until the user answers yes in this conversation. If they ask for
changes, go back to email-template-write; after the update, the cached template carries
the change. Then render once with params: {} (when it has template logic), give the link again, and wait for a new yes:
an earlier yes doesn't cover the changed template.
A template test send carries no params. Every {{ params.* }}, in the body and in the
subject, renders blank, and a filter that needs a value (for example time_parse on an empty
date) fails the whole email, so nothing arrives. Tell the user before sending that the test
shows the layout and contact data only, not their sample order; the params: {} render in
step 2 shows what the test will look like. A test works on an inactive template.
Check the sender's domain first. Read the sender (template or campaign) and look for the sender's email domain in the account's domains (cached with the senders). When the domain isn't there or isn't authenticated, or it is a free or shared mailbox domain (gmail.com, yahoo.com and the like), warn: Gmail and Yahoo reject or bounce mail from unauthenticated domains (DMARC), so the test may never arrive. Suggest authenticating the domain in Brevo (Senders, Domains) or using a sender on an authenticated domain. Let the user decide; don't block the test.
Show, and ask "Send it?":
Send a test:
- Email: <campaign or template name> (ID <id>)
- From: <sender email> (domain authenticated: yes | no | not checked)
- To: <address 1>, <address 2>
Test sends carry no params and are limited to 50 a day.
On a yes in this conversation:
templates_send_test_template with templateId and emailTo = exactly the
confirmed addresses.email_campaign_management_send_test_email with campaignId and emailTo =
exactly the confirmed addresses.Never call a test send with an empty or missing emailTo: Brevo then sends the test to
the account's whole test list. A new address, or a second test, needs a new confirmation.
A success response (204) only means Brevo queued the test. The send can still fail afterwards (a render error, a missing sender, a bounce). Never say "sent" or "delivered" on the response alone.
campaign_analytics_get_email_event_report with templateId, email = one test address
and days: 1. Report the newest events for this send: delivered means it reached the
mail server; error, softBounces, hardBounces, blocked or invalid mean it didn't.
Quote the reason and explain it in plain words ("the date filter got an empty value", "the
sender email is missing", "Gmail refused the unauthenticated sender domain"). An empty
report, or only requests: not logged yet; say it is still queued and offer to check again.
Never read either as success or failure.Then say to whom it went and that test sends are limited to 50 a day.
| Response | Meaning | Tell the user |
|---|---|---|
| 400 listing addresses not found, blocked, or in no list | The test address must exist as a contact, not be blocked, and belong to a list | Which address and why; they can add it as a contact in Brevo |
| 400 "Contact not found" on a preview | The email passed isn't a contact, or params were sent alone for a template with contact attributes | Pass an existing contact's email plus the params |
| A cached template returns 404 | It was deleted in Brevo | Drop it from the cache; tell the user it no longer exists |
| Daily limit reached | 50 test sends a day | Try again tomorrow, or preview instead |
Event error with a template error (for example time_parse) | The template failed to render without params | Guard the line with {% if params.x %} (email-template-check), save, test again |
Event error "From field is missing" | The template has a sender ID but no sender email | Set the sender on the template (email-template-to-dnd step 2), or in Brevo |
| Soft or hard bounce mentioning DMARC or authentication | The sender's domain isn't authenticated | Authenticate the domain in Brevo, or use a sender on an authenticated domain |
| 403 "required scope not present" on a render | The connection doesn't allow template renders | Skip the renders (step 2); the test send's outcome check stands in |
Don't retry a refused call in a loop: one retry at most, after the user fixed the cause.
email_campaign_management_send_test_email: campaign test send.templates_post_preview_smtp_email_templates: render a template with an existing
contact's email and sample params.campaign_analytics_get_email_event_report: events of a template test send, with the
error or bounce reason.domains_get_domains: the account's domains and whether each is authenticated.subaccount_id.No tool reads the outcome of a campaign test send: the user checks their inbox.
No browser or screenshot step: the preview is a link the user opens, or a server render.
The shared template link (email_campaign_management_get_shared_template_url) isn't used:
it is an import link for another account, not a preview.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub getbrevo/brevo-skills --plugin brevo10 skills in this plugin
/automation-createCreates a Brevo automation workflow as a draft, in one call, from its triggers and steps. Use when the user asks for an automation or a workflow in Brevo, for example "send a welcome email when someone joins my newsletter list", "email customers 2 days after their order", "if they opened it, add them to a list" or "remind contacts on their birthday". Confirms the account, reads which triggers and steps the account can use and the fields of each, looks up every ID with Brevo tools, generates filters from the user's words, validates the whole workflow, shows the plan, and creates the draft only after a yes. Also edits an existing automation ("change the delay to 3 days", "swap the email", "add a step") by sending its whole new definition, after showing what changes and who is affected. Uses only the trigger and step types the account's catalog lists. Never activates without the user's explicit go-ahead./brevo-cliUse when working in a project that uses the Brevo Developer CLI (the `brevo` binary from `@getbrevo/cli`) — managing OAuth apps, UI apps, and Brevo Functions, scaffolding integrations, running the local OAuth test server, or invoking any `brevo …` command. Activates on: brevo, brevo cli, brevo app, brevo function, app-config.json, OAuth Brevo, BREVO_API_KEY, getbrevo./brevo-guideUse when the user asks for something in Brevo (email, SMS, WhatsApp, contacts, CRM and so on) and you don't already have a Brevo skill for the job, or when they ask what Brevo skills or guides exist, or where to get, install or update them. Loads the current skill text from the Brevo MCP server with its get_brevo_guide tool, which works in every client with nothing to install, and says where to install the skills once if the user wants them without a tool call. Never asks for an API key./emailEntry point for Brevo email work. Use when the user asks to write, check, preview, test-send or prepare a Brevo email campaign or email template, or to use or change their brand kit (for example "create a Black Friday campaign for my VIP list and send me a test"). Confirms the Brevo account, splits the request into steps, names the email skill for each step, and sets the safety rules every email action follows - drafts only, and nothing sent to real recipients without an explicit yes./email-brand-kitUse when the user wants an email in their brand (logo, colours, fonts, social links), asks what their Brevo brand kit holds, wants to set up or refresh their brand kit from their website, or wants to change one part of it (logo, colours, fonts, social links, custom social icons, brand website). Reads the account's brand kit and turns it into concrete email styles for email-template-write. Suggests a kit from the user's website (a limited lookup that changes no brand values), shows the current kit next to the suggestion, and saves only the parts the user approves, in as few calls as the hourly limit needs. Never invents brand values./email-campaign-createCreates a Brevo email campaign as a draft. Use when the user wants finished email HTML turned into a campaign for one of their contact lists or segments, with a verified sender (for example "create the campaign for my VIP list"). Picks the list and an active sender, confirms, creates the draft, and reports its ID and link. Never sends or schedules - it shows a "Ready to send" summary and the user sends it from Brevo. Use after email-template-write and email-template-check.Other plugins' skills for the same job