Templated

AI Template Generation

Generate complete email templates from natural language prompts.

AI Template Generation

Templated's AI generation endpoint lets you describe an email in plain English and receive a complete, styled template. The AI uses your brand kit (colors, logos, fonts) to create on-brand designs.

Generate a template

curl -b cookies.txt -X POST \
  https://app.templated.email/api/accounts/{slug}/ai/generate \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Create a welcome email for new users of a project management tool. Include a hero section, 3 feature highlights, and a CTA to start a free trial."
  }'

Request body

FieldTypeRequiredDescription
promptstringYesNatural language description of the email you want

Response

The endpoint returns a generated template object with full HTML and block-based design JSON.

Tips for better prompts

Be specific about structure

Good: "Create a product launch email with a hero image area, 3 feature cards in a row, customer testimonial, and a CTA button"

Vague: "Make a marketing email"

Mention your audience

Good: "Write a re-engagement email for users who haven't logged in for 30 days. Tone should be friendly and helpful, not pushy."

Reference email types

The AI understands common email patterns:

  • Welcome / onboarding emails
  • Product launch announcements
  • Newsletter digests
  • Promotional / sale emails
  • Transactional confirmations
  • Re-engagement campaigns
  • Event invitations

Brand kit integration

The AI automatically pulls from your account's brand kit:

  • Logo — placed in the header
  • Brand colors — applied to buttons, headings, accents
  • Typography — used for font selections

Make sure your brand kit is configured before generating for the best results.

Rate limits

AI generation has a stricter rate limit than other endpoints:

LimitWindow
10 requestsPer minute

See Rate Limits for retry strategies.

Next steps

On this page