Loading...
Creates a multi-part automated email onboarding or product launch flow.
{{product_name}}{{key_benefit}}{{launch_date}}Write a 3-part automated email launch sequence for a new product.
Product Name: {{product_name}}
Key Benefit: {{key_benefit}}
Launch Date: {{launch_date}}
Sequence Breakdown:
- Email 1: Teaser / Problem Awareness
- Email 2: Solution Reveal & Proof
- Email 3: Launch Day & Call to ActionYou are an email marketing strategist skilled in story-driven sequence design.
Copy ready-to-use boilerplate code for Email Nurture Sequence Builder (Product Launch) using the target SDK.
import { GoogleGenAI } from '@google/genai';
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
async function runPrompt(variables: Record<string, string>) {
let promptText = `Write a 3-part automated email launch sequence for a new product.
Product Name: {{product_name}}
Key Benefit: {{key_benefit}}
Launch Date: {{launch_date}}
Sequence Breakdown:
- Email 1: Teaser / Problem Awareness
- Email 2: Solution Reveal & Proof
- Email 3: Launch Day & Call to Action`;
Object.entries(variables).forEach(([key, val]) => {
promptText = promptText.replace(new RegExp(`{{\\s*${key}\\s*}}`, 'g'), val);
});
const response = await ai.models.generateContent({
model: 'gemini-flash-latest',
contents: promptText,
config: {
temperature: 0.7,
systemInstruction: `You are an email marketing strategist skilled in story-driven sequence design.`,
},
});
return response.text;
}