AI in the Editor
Generate subject lines, preview text, and image alt-text in multiple languages, and reference existing broadcasts or templates with @mentions.
The Sendry dashboard ships with inline AI assistance for marketing email composition. AI features are powered by Anthropic Claude and run on the Sendry API server; nothing is sent directly from the browser to the model.
What it can do
- Generate subject lines — sparkles button next to any Subject input. The model returns up to four alternatives based on your body copy, tone, and target language.
- Generate preview text (preheader) — the sparkles button next to the Preview Text input drafts inbox snippets that complement, not echo, the subject.
- Generate alt-text — accessible one-line descriptions for any image used in a template.
@mentionreferences — type@in any AI prompt to pull in an existing broadcast, template, or automation as context. For example,Match the tone of @onboarding-welcomewill inject that broadcast's subject and body before the model generates a response.
Where to find it
| Location | What you can generate |
|---|---|
| Templates → New Template | Subject line |
| Compose | Subject line |
| Campaign detail → Edit dialog | Subject line, preview text |
Each entry point shows a small sparkles icon next to the relevant input. Clicking it opens a compact popover with a prompt textarea, tone/language selectors, and an @ mention picker.
Languages
The popover ships with quick-pick presets for English, Spanish, French, German, Brazilian Portuguese, Japanese, Chinese, and Arabic, but the underlying API accepts any free-form language string (ISO code or name). Pass language: "Welsh" or language: "ko" to the API directly if you need a language not in the dropdown.
API endpoints
All AI endpoints require an API key with full_access scope (the mention-search endpoint allows read_only):
POST /v1/ai/generate-subject
POST /v1/ai/generate-preview
POST /v1/ai/generate-alt-text
GET /v1/ai/mention-search?q=welcome&types=broadcast,template
Example:
curl https://api.sendry.online/v1/ai/generate-subject \
-H "Authorization: Bearer $SENDRY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Announce our Q3 product launch",
"tone": "professional",
"language": "en",
"count": 4
}'
Response:
{
"suggestions": [
"Introducing the Q3 release",
"What's new in Sendry this quarter",
"Three new ways to ship faster",
"Your Q3 update from Sendry"
],
"model": "claude-haiku-4-5-20251001"
}
Configuration
Set ANTHROPIC_API_KEY in the API server environment. When unset, the dashboard buttons still appear but show a clear "AI features are not enabled" error when clicked, and the API endpoints return 503 ai_not_configured. No other configuration is required.
Privacy
- Prompts and any body content you include as context are sent to Anthropic for inference.
- Sendry does not store AI prompts, responses, or generated suggestions server-side.
@mentionresolution runs in the API process — the model only sees the resolved content of resources that belong to your organization.