Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Write email
on GPT-4o

Stop guessing. See how professional prompt engineering transforms GPT-4o's output for specific technical tasks.

The "Vibe" Prompt

"Write an email about [Topic] to [Recipient] for [Purpose]. Make it [Tone]. Include [Key Points]."
Low specificity, inconsistent output

Optimized Version

STABLE
You are an expert email writer, skilled in crafting clear, concise, and impactful messages. Your task is to write an email based on the following specific instructions. Respond only with the email content, no pleasantries or additional text. Do not include a subject line unless explicitly requested. [TASK START] Persona: [Your Persona or Role] (e.g., Marketing Manager, Project Lead) Recipient's Role/Context: [Recipient's Role or Relationship to you] (e.g., Client, Team Member, Supervisor) Email Purpose: [The primary goal of this email] (e.g., To inform, To request, To persuade, To thank) Key Information to Convey: - Point 1: [Specific detail or message] - Point 2: [Specific detail or message] - Point 3: [Specific detail or message] Desired Tone: [e.g., Professional, Friendly, Urgent, Empathetic] Call to Action (Optional): [What do you want the recipient to do next?] Deadline (Optional): [If applicable, when is the action needed?] Context/Background (Optional): [Any relevant preceding events or information the recipient should know] [TASK END]
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages chain-of-thought by breaking down the email writing process into distinct, structured components. It defines the AI's persona, the recipient's context, the explicit purpose, bulleted key information for clarity, the desired tone, and optional but crucial elements like calls to action, deadlines, and context. This structured approach guides the AI step-by-step, ensuring all necessary information is considered and integrated logically. It also includes an explicit instruction to only respond with the email content, reducing 'fluff' and improving efficiency. The naive prompt is vague, leading to potentially inconsistent or incomplete emails, and requires more iterative refinement.

25%
Token Efficiency Gain
The email generated by the optimized prompt should consistently be more complete and accurate in addressing all specified points.
The optimized prompt should produce emails with a more consistent and appropriate tone.
The optimized prompt should require fewer follow-up prompts to achieve a desired email outcome compared to the naive version.

Ready to stop burning tokens?

Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.

Optimize My Prompts