Compose Dynamic Email
compose_dynamic_emailCompose responsive HTML emails using a DSL that defines block structure for hero, text, button, and other components.
Instructions
Compose responsive HTML emails using DSL notation for block structure. Common patterns: ε[ħ, τ] = hero + text, ε[ħ, τx2, Ƀ] = hero + 2 text blocks + button. DSL structure using symbols. Symbols: ε=EmailSpec, ħ=HeroBlock, τ=TextBlock, Ƀ=ButtonBlock, ɨ=ImageBlock, ¢=ColumnsBlock, ©=Column, Ħ=HeaderBlock, ƒ=FooterBlock, ą=AccordionBlock, ȼ=CarouselBlock. Read skill://mjml-email/ for full reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | myself | |
| bcc | No | ||
| action | No | 'draft' (default, safe) or 'send' to deliver immediately | draft |
| email_params | No | REQUIRED for content — all block text/titles/URLs go here, keyed by symbol or class name. Example: {"ħ": {"title": "Welcome!", "subtitle": "Hi there"}, "τ": {"_items": [{"text": "Your message here"}]}, "Ƀ": {"_items": [{"text": "Click", "url": "https://..."}]}}. Also accepts 'subject' and 'preheader' keys. | |
| email_description | Yes | ONLY the DSL structure + email subject line. Format: 'ε[ħ, τ] My Subject Here'. Do NOT put block content here — use email_params for that. Examples: 'ε[ħ, τ] Welcome aboard', 'ε[ħ, τx2, Ƀ] Monthly Newsletter'. Text after the DSL becomes the email subject (keep it short). DSL structure using symbols. Symbols: ε=EmailSpec, ħ=HeroBlock, τ=TextBlock, Ƀ=ButtonBlock, ɨ=ImageBlock, ¢=ColumnsBlock, ©=Column, Ħ=HeaderBlock, ƒ=FooterBlock, ą=AccordionBlock, ȼ=CarouselBlock. Read skill://mjml-email/ for full reference. | |
| user_google_email | No | Use 'me' or 'myself' for auto-resolution to authenticated user, or provide specific email address. If None, uses current authenticated user (auto-injected by middleware). |