by Brew
Generate an email
Generates an on-brand email design from a plain-language prompt and returns its emailId, version id and HTML.
Description
Usage-metered in credits, and the brand must be ready first. Pass `emailVersionId` to a send or an automation to pin the exact version.
generate-email.md
Generate an email
Generates an on-brand email design from a plain-language prompt and returns its emailId, version id and HTML.
Usage-metered in credits, and the brand must be ready first. Pass
emailVersionId to a send or an automation to pin the exact version.
Set up
Use the first option your agent supports.
MCP (official, remote)
Add this server to your agent's MCP settings, then sign in when asked.
{ "mcpServers": { "brew": { "url": "https://brew.new/api/mcp" } } }
Call the MCP tool create_email.
Server URL: https://brew.new/api/mcp
CLI (official)
Install the command, then confirm it runs.
brew install getbrew/tap/brew-cli
brew-cli --version
Run brew-cli emails generate.
Set $BREW_API_KEY in your environment first (get a key: https://brew.new/settings/api).
API (official)
- Base URL: https://brew.new/api
- Endpoint:
POST /v1/emails - Auth: send the header
Authorization: Bearer $BREW_API_KEY - Get a key: https://brew.new/settings/api
- Docs: https://docs.brew.new/api-reference/api/api-introduction
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.
Ways in
Workflows using Generate an email
TContributed by thedogwiththedataonitFollow up when accounts research a competitorCombine what a competitor just shipped with which of your accounts are looking, then draft a focused comparison.
F
G
A+1
TContributed by thedogwiththedataonitTurn content downloads into useful conversationsPersonalise the follow-up around what someone read instead of dropping every lead into the same sequence.
HB
N
TContributed by thedogwiththedataonitCreate a webinar follow-up that reflects attendanceSend different next steps to attendees, no-shows and highly engaged viewers without manual list work.
ZB
H
TContributed by thedogwiththedataonitGuide active free users toward their first paid momentCombine behavioural milestones with timely education so promising users find the value before momentum fades.
P
SB
TContributed by thedogwiththedataonitSpot and recover at-risk customer accountsDetect meaningful usage drops, assemble the account story, and trigger a human check-in before renewal risk grows.
M
S
S+1