Examples
Examples Library
Example 1: Welcome Email with Hero Image
Code
contacted.send(
subject="Welcome to DevTools Pro - Let's get you started!",
from_email="welcome@devtools.com",
to_email="sarah.johnson@example.com",
prompt="""
Welcome email for a new DevTools Pro subscriber. Use welcome_hero as a prominent
banner image showcasing our platform. Include their subscription details and
next steps to get started. Keep the tone friendly and encouraging with clear
action items for getting started.
""",
data={
"user_name": "Sarah Johnson",
"company_name": "Acme Corp",
"plan_name": "DevTools Pro",
"monthly_price": "49",
"trial_days": "14",
"welcome_hero": "https://devtools.com/assets/welcome-hero.jpg",
"dashboard_url": "https://app.devtools.com/dashboard",
"support_url": "https://devtools.com/support",
"setup_guide": "https://docs.devtools.com/getting-started"
}
)What makes this interesting:
Example 2: E-commerce Order Confirmation
Code
What makes this interesting:
Example 3: Security Alert - Password Reset
Code
What makes this interesting:
Example 4: Event Invitation with Rich Media
Code
What makes this interesting:
Example 5: Executive Business Report with Data Visualization
Code
What makes this interesting:
Last updated