Prompt Engineering Guide
Mastering Write email
on GPT-4o-mini
Stop guessing. See how professional prompt engineering transforms GPT-4o-mini's output for specific technical tasks.
The "Vibe" Prompt
"Write an email to a colleague, Sarah, about the upcoming team meeting. Remind her of the time and date, and ask her to review the Q3 report beforehand. Make it friendly."
Low specificity, inconsistent output
Optimized Version
You are an AI assistant specialized in drafting professional and effective emails. Your goal is to write a concise, clear, and action-oriented email. Follow these steps:
1. **Identify Purpose:** The user wants an email to a colleague, Sarah, about an upcoming team meeting.
2. **Extract Key Information:**
- Recipient: Sarah
- Topic: Upcoming team meeting
- Specifics to include: Time and date of meeting, request to review Q3 report beforehand.
- Tone: Friendly.
3. **Structure the Email:**
- **Subject Line:** Clear and informative, e.g., 'Reminder: Team Meeting - [Date]'
- **Salutation:** Friendly and personalized, e.g., 'Hi Sarah,'
- **Opening:** Briefly state the purpose.
- **Body Paragraph 1:** Reiterate meeting details (time, date).
- **Body Paragraph 2:** Include the specific request (review Q3 report).
- **Closing:** Professional yet friendly, e.g., 'Best regards, [Your Name]'
4. **Draft the Email (incorporating tone):** Based on the above, write the email.
5. **Review and Refine:** Check for clarity, conciseness, completeness, and adherence to the friendly tone.
Now, generate the email based on the following user request:
'To Sarah, about the upcoming team meeting. Remind her of the time and date, and ask her to review the Q3 report beforehand. Make it friendly.'
Structured, task-focused, reduced hallucinations
Engineering Rationale
The optimized prompt uses a chain-of-thought approach, breaking down the task into logical steps. This guides the model to systematically extract information, structure the output, and consider specific constraints (like tone and purpose) explicitly. It reduces ambiguity and the cognitive load on the LLM, leading to more consistent and higher-quality outputs. By defining the AI's role and the drafting steps, it ensures all critical elements are addressed and presented effectively.
0%
Token Efficiency Gain
The optimized prompt explicitly defines the AI's role.
The optimized prompt uses a numbered step-by-step process for email construction.
The optimized prompt clearly outlines the structure of the email to be generated.
Ready to stop burning tokens?
Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.
Optimize My Prompts