twilio-sendgrid-email-settings
Configure SendGrid dynamic templates (Handlebars), tracking settings (opens, clicks, subscriptions), link branding for custom tracking domains, and content types (HTML, plain text, AMP). Use when customizing SendGrid email content, tracking behavior, or branded links. Requires a SendGrid API key (SG.-prefix) — not applicable to the Twilio Email API (comms.twilio.com).
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- twilio-sendgrid-email-settings
- description
- Configure SendGrid dynamic templates (Handlebars), tracking settings (opens, clicks, subscriptions), link branding for custom tracking domains, and content types (HTML, plain text, AMP). Use when customizing SendGrid email content, tracking behavior, or branded links. Requires a SendGrid API key (SG.-prefix) — not applicable to the Twilio Email API (comms.twilio.com).
02 资源文件 1
- 参考文档agents/openai.yaml241 B
03 SKILL.md 正文
Overview
SendGrid email settings control how your messages are constructed, personalized, and tracked. Most configuration happens in the SendGrid Console, but templates and tracking can also be managed via API.
Dynamic Templates
Templates use Handlebars syntax and are managed in Console > Email API > Dynamic Templates. Template IDs start with d-.
Supported Handlebars helpers:
| Helper | Use | Example |
|---|---|---|
if / unless |
Conditional | {{#if premium}}Welcome back!{{/if}} |
each |
Iteration | {{#each items}}{{this.name}}{{/each}} |
equals / notEquals |
Comparison | {{#equals status "active"}}...{{/equals}} |
and / or |
Boolean logic | {{#and premium verified}}...{{/and}} |
greaterThan / lessThan |
Numeric | {{#greaterThan count 5}}...{{/greaterThan}} |
length |
Array/string | {{length items}} |
formatDate |
Date format | {{formatDate date "MM/DD/YYYY"}} |
insert |
Module insert | {{insert "module_name"}} |
NOT supported: Custom helpers, inline partials, lookup, log, with, blockHelperMissing. SendGrid implements a subset of Handlebars.js.
Template Versions
- Dynamic templates (IDs starting with
d-): Support Handlebars - Legacy transactional templates: Use
-substitution-syntax — not interchangeable with Handlebars
Tracking Settings
| Setting | What it does | Caveat |
|---|---|---|
| Open tracking | Inserts a tracking pixel | Unreliable: Apple Mail Privacy Protection inflates opens; image-blocking clients produce false negatives |
| Click tracking | Rewrites URLs through SendGrid's redirect | Can trigger spam filters on some domains |
| Subscription tracking | Adds unsubscribe footer | Required for CAN-SPAM compliance |
| Google Analytics | Adds UTM parameters | Only for marketing campaigns |
Configure per-message or account-wide in Console > Settings > Tracking.
Link Branding (Custom Tracking Domains)
By default, click-tracked links route through url####.ct.sendgrid.net. Link Branding lets you use your own domain (e.g., links.yourdomain.com) instead, which improves deliverability and builds trust.
Setup: Console > Settings > Sender Authentication > Link Branding
Requires a CNAME DNS record pointing your subdomain to sendgrid.net. Validate via API: GET /v3/whitelabel/links/{id}/validate
Content Type Priority
When sending multiple content types, email clients display in this priority:
text/x-amp-html(AMP — only in supporting clients, requires sender registration)text/html(standard — most clients)text/plain(fallback)
Always include at least text/plain and text/html.
CANNOT
- Cannot use custom Handlebars helpers — Only the built-in set listed above.
- Cannot guarantee open tracking accuracy — Pixel-based tracking is fundamentally unreliable. Do not use for business-critical logic.
- Personalizations
subjectis a plain string override — It bypasses the template subject. To use dynamic subjects, set Handlebars variables (e.g.,{{{subject}}}) in the Dynamic Template's subject field and pass values viadynamic_template_data. - Undefined template variables are silent — Missing keys in
dynamic_template_datarender as empty strings with no error.
Next Steps
- Send email:
twilio-sendgrid-email-send - Delivery tracking:
twilio-sendgrid-webhooks - Manage bounces/unsubscribes:
twilio-sendgrid-suppressions
04 同仓库更多 Skills
skill-installer
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
skill-creator
Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.
review-agent
Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.
plugin-creator
Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.
openai-docs
Use for Codex models/pricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs/products and ChatGPT Work. Also use for model choice/migration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat/Work/Codex comparisons. Do not use for generic app/software tasks that merely mention Codex.
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.