Recipe workbench
Paste a transform template, from Sparrow, an AI draft, or a recipe starter, and edit its message while you watch what SendGrid receives.
Transform template
The Go template Sparrow stores on the subscription. Paste your own, or edit this SendGrid starter.
JSON body, 3 message fields and 4 other values
Message
Every value in the template. Write placeholders like {{.payload.x}}, or click one below to insert
it where you last typed. A value inside an {{if}} is listed once per branch.
if .payload.alert_recipients › range $i, $r := .payload.alert_recipients
4 other values: structure, parameters, envelope
else (not: .payload.alert_recipients)
Sample event
The event Sparrow delivers. Pick a preset or paste a payload; its fields become the placeholders above.
Valid JSON
Parameters
Asked once when you apply the recipe. Secrets are encrypted at rest.
Setting up SendGrid
Where the parameters above come from.
- Settings → API Keys → Create API Key; pick Restricted Access and enable Mail Send.
- Copy the key immediately (shown only once) into api_key.
- Settings → Sender Authentication → verify a Single Sender (or authenticate your domain).
- Use that verified address as from_email; from_name is the display name.