Skip to main content
Gather a company’s logo, colors, fonts, and imagery, then turn them into an email template. Context.dev supplies the brand context; your application generates the content, renders the HTML, and sends the message. Start with an API key from the Quickstart, an email renderer, and a delivery provider. The four successful API calls below total 22 credits: Brand (10), Styleguide (10), Screenshot (1), and Images (1).

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 read CONTEXT_DEV_API_KEY from the environment:
Use each response for a specific purpose: 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
Approve contrast, image choice, font licensing, and fallback fonts before generation. A homepage screenshot is a reference, not an instruction to reproduce a site’s layout inside an email.

Generate the content

For production, have the model produce content and design choices as structured data. Keep executable HTML in a renderer you control.
Validate the output against a schema. Restrict links and images to an approved allowlist, and reject unsupported performance, customer, security, or legal claims.
A model can generate complete HTML for a prototype. A deterministic component renderer is safer in production because it controls markup, escaping, responsive behavior, and footer requirements.

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 alt text;
  • 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.
Do not place untrusted model output directly into an HTML string. Escape text and accept only typed components and approved URL schemes.

Test the message

Linting source HTML is not enough. Before sending:
  1. Render screenshots in the mailbox clients and modes your audience uses.
  2. Test with blocked images, dark mode, narrow screens, and long localized copy.
  3. Click every link and verify tracking parameters do not break the destination.
  4. Confirm the plain-text alternative remains understandable.
  5. Run accessibility and spam checks.
  6. Send a seed-list test through the same delivery path as production.
Record the source-evidence timestamp and template version. When the brand site changes, review the diff before changing an active template.

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.
An asset returned from a public webpage is not automatically licensed for email use. Confirm permission for logos, images, fonts, customer marks, and quoted language.

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.