How it works
Context.dev gathers source evidence. Your application still owns copy approval, asset rights, email markup, client testing, and delivery.Gather visual context
Call the APIs from your server and readCONTEXT_DEV_API_KEY from the environment:
All nested fields and asset lists can be absent. The TypeScript function keeps successful responses and names the calls that failed; the other tabs show the underlying requests. Apply the same independent error handling in your language, and also check for empty fields in fulfilled responses.
Validate the submitted domain on your server, cache the gathered bundle, and avoid requesting the same source context for every recipient.
Create an email brief
Do not treat extracted website styles as email-ready CSS. Convert them into a small set of approved decisions:TypeScript model
Generate the content
For production, have the model produce content and design choices as structured data. Keep executable HTML in a renderer you control.Render for email clients
Web layouts do not transfer directly to email. Your renderer should:- use semantic, email-compatible table layouts where needed;
- inline critical styles and avoid JavaScript, forms, and remote stylesheets;
- include explicit image dimensions and meaningful
alttext; - constrain content to a readable single-column layout on small screens;
- supply system-font fallbacks when custom fonts are unavailable;
- encode and validate all URLs;
- preserve the required sender identity, unsubscribe controls, and legal footer;
- keep the final message below your delivery provider’s and mailbox clients’ size limits.
Test the message
Linting source HTML is not enough. Before sending:- Render screenshots in the mailbox clients and modes your audience uses.
- Test with blocked images, dark mode, narrow screens, and long localized copy.
- Click every link and verify tracking parameters do not break the destination.
- Confirm the plain-text alternative remains understandable.
- Run accessibility and spam checks.
- Send a seed-list test through the same delivery path as production.
Reuse a theme across email types
Sequenzy uses brand context for personalized marketing emails. Reuse the approved visual brief while keeping message purpose and sender identity explicit:
Keep recipient personalization separate from the brand theme. Save logo, color, and font overrides against the sending brand, and retain those overrides when refreshing automatic candidates. A source-site change should create a draft template revision rather than changing messages already approved for a campaign.
Retrieve brand data
Find company profiles and logo candidates.
Extract a styleguide
Inspect a website’s colors and typography.
Capture a screenshot
Capture a rendered page for visual reference.
Extract page images
Find candidate image URLs for your template.