AgentSkillsCN

email-templates

潜在客户生成表单的事务邮件模板。潜在客户通知+客户确认。兼容重新发送。

SKILL.md
--- frontmatter
name: email-templates
description: Transactional email templates for lead generation forms. Lead notification + customer confirmation. Resend compatible.

Email Templates Skill

Purpose

Produces HTML + plain text email templates for form submissions. Transactional only.

Scope

✅ Transactional❌ NOT Supported
Form confirmationsMarketing campaigns
Lead notificationsNewsletters
Quote resultsNurture sequences
System alertsPromotional emails

This skill is for transactional emails only. No marketing.

Skill Output

For each form, this skill produces:

TemplateToRequired
Lead NotificationBusiness
Customer ConfirmationCustomer
Quote ResultCustomerIf calculator

Rule: Every form needs BOTH business + customer email. No exceptions.

Core Rules

  1. Two emails per form — Business notification + customer confirmation
  2. HTML + plain text — Both versions required
  3. No external images — Inline styles only
  4. Mobile-first — 600px max width, large text
  5. Brand colors from design-tokens — No hardcoded colors
  6. Reply-to = business email — Never noreply-only

Required Fields

Lead Notification

typescript
interface LeadNotificationData {
  name: string;        // Required
  email: string;       // Required
  phone?: string;
  message?: string;
  source: string;      // Required - page URL
  timestamp: string;   // Required
  utm?: { source?: string; medium?: string; campaign?: string; };
}

Customer Confirmation

typescript
interface ConfirmationData {
  name: string;           // Required
  businessName: string;   // Required
  businessPhone: string;  // Required
  businessEmail: string;  // Required
  responseTime: string;   // Required - e.g., "within 2 hours"
}

Quote Result

typescript
interface QuoteData {
  name: string;         // Required
  businessName: string; // Required
  resultUrl: string;    // Required
  summary: string;      // Required
  priceRange?: string;
  validUntil?: string;
}

Blocking Conditions (STOP)

Do NOT send email if:

ConditionCheck
Missing required fieldname, email, businessName
No plain text versionBoth versions required
Invalid email formatBasic validation
No reply-to setBusiness must be reachable

Missing required field = email NOT sent. Log error.

Email Structure

Lead Notification (to Business)

SectionContent
Header"🎉 New Lead!" + accent color
BodyName, Email, Phone, Message
ActionsCall button, Reply button
FooterSource URL, UTM data, Timestamp

Customer Confirmation (to Customer)

SectionContent
Header"Thanks, {name}!"
BodyConfirmation message
Next StepsNumbered list
FooterBusiness contact info

Quote Result (to Customer)

SectionContent
Header"Your Quote is Ready"
BodyPrice range, Summary
CTA"View Full Quote" button
FooterValidity date

Subject Lines

TypePatternExample
Lead notification🎉 New lead: {name}"🎉 New lead: John Smith"
ConfirmationThanks for your enquiry - {business}"Thanks for your enquiry - Bristol Removals"
QuoteYour quote from {business}"Your quote from Bristol Removals"

Plain Text Rules

  • Max 70 characters per line
  • No HTML references
  • Same content as HTML
  • Clear section breaks with blank lines

Testing Checklist

  • Renders on Gmail (web + mobile)
  • Renders on Outlook
  • Renders on Apple Mail
  • Plain text readable
  • Links work
  • Reply-to correct
  • From name = business name

Forbidden

  • ❌ External image URLs
  • ❌ HTML-only (no plain text)
  • ❌ Generic "noreply@" without business name
  • ❌ Marketing content in transactional
  • ❌ Sending with missing required fields
  • ❌ Only business OR only customer email

References

Definition of Done

  • Lead notification template (HTML + text)
  • Customer confirmation template (HTML + text)
  • Quote template if calculator (HTML + text)
  • Both emails sent per form submission
  • Tested on Gmail, Outlook, Apple Mail
  • From name = business name
  • Reply-to = business email