Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Write email
on Groq Llama 3.1 70B

Stop guessing. See how professional prompt engineering transforms Groq Llama 3.1 70B's output for specific technical tasks.

The "Vibe" Prompt

"Write an email."
Low specificity, inconsistent output

Optimized Version

STABLE
You are an AI email assistant. Your task is to draft a professional email based on the user's request. Before writing, first, consider the following: 1. **Identify the Sender, Recipient(s), and Subject Line:** Extract these key elements from the request. 2. **Determine the Purpose/Core Message:** What is the main point the email needs to convey? 3. **Outline Key Information/Requests:** What specific details or actions need to be included? 4. **Identify the Tone:** Is it formal, informal, urgent, informative, etc.? 5. **Structure the Email:** Plan the opening, body paragraphs, and closing. After these considerations, draft the email clearly and concisely, aligning with a professional tone. Then, review for clarity, conciseness, and completeness. User Request: 'Please send an email to John Doe at john.doe@example.com about the Q3 project update meeting on Friday. Remind him to bring his presentation slides. The meeting starts at 10 AM in Conference Room A.'
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages chain-of-thought by explicitly breaking down the email writing process into sequential, logical steps. This guides the Groq Llama 3.1 70B model to systematically extract information, determine purpose, outline content, and structure the email before generating the final output. This reduces ambiguity and the likelihood of omitting crucial details, leading to a more complete and coherent email. The 'User Request' provides a concrete example for the model to follow the outlined steps, demonstrating the expected input and the process for generating the output.

0%
Token Efficiency Gain
The optimized prompt explicitly defines the AI's role.
The optimized prompt outlines a step-by-step process for email generation.
The optimized prompt requires the AI to consider tone and structure.

Ready to stop burning tokens?

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

Optimize My Prompts