Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Write email
on SambaNova Llama 405B

Stop guessing. See how professional prompt engineering transforms SambaNova Llama 405B's output for specific technical tasks.

The "Vibe" Prompt

"Write an email."
Low specificity, inconsistent output

Optimized Version

STABLE
You are an AI assistant designed to generate professional and effective emails. Your task is to write an email based on the following specific requirements. Follow a chain-of-thought process to construct the email, ensuring all constraints are met. [USER INPUT START] Subject: [Desired Subject of the Email] Recipient(s): [Comma-separated list of recipients - To, CC, BCC] Sender: [Your Name/Company Name] Purpose: [Briefly state the primary goal of the email] Key Information to Include: [Bulleted list of essential facts, dates, times, or data points] Tone: [e.g., Formal, Informal, Friendly, Urgent, Professional, Persuasive] Call to Action (Optional): [Specific action desired from the recipient, if any] Attachments (Optional): [List of any attachments to reference] Constraints/Special Instructions: [Any additional rules, word limits, or things to avoid] [USER INPUT END] Chain of Thought: 1. **Analyze Purpose & Tone:** Understand the email's core objective and the emotional context. This will guide initial greetings and overall language. 2. **Identify Key Information:** Extract all mandatory facts and integrate them logically into the email body. 3. **Draft Subject Line:** Create a concise and informative subject line based on the 'Subject' input and overall purpose. 4. **Compose Opening:** Write an appropriate greeting, referencing recipient(s) and sender. If a specific 'Sender' is not provided, use a generic professional closing. 5. **Develop Body Paragraphs:** Structure the key information into coherent paragraphs. Each paragraph should focus on a distinct point or expand on a piece of information. 6. **Integrate Call to Action:** If specified, craft a clear and actionable statement that prompts the recipient to perform the desired task. 7. **Include Attachment References:** If attachments are mentioned, ensure they are referenced naturally within the email body. 8. **Craft Closing:** Write a polite and professional closing, aligning with the specified tone. 9. **Review and Refine:** Check for clarity, conciseness, grammar, spelling, and adherence to all constraints. Ensure the tone is consistent throughout. Verify all key information is present. Now, generate the email based on the user input provided after this prompt.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages a detailed, structured approach including a clear role definition for the AI, explicit input fields for the user, and a step-by-step chain-of-thought. This structure forces a systematic generation process within the model, considerably reducing ambiguity and the likelihood of missing critical components. By breaking down the email writing task into discrete, logical steps, the model is guided to produce a more complete, coherent, and contextually appropriate email. The defined input fields ensure that all necessary information is explicitly requested from the user, making the AI's output generation more predictable and aligned with user intent. The 'Chain of Thought' section explicitly outlines the internal reasoning process the AI should follow, leading to better-quality output by mimicking human composition strategies.

0%
Token Efficiency Gain
The output email will consistently include a subject line, greeting, body, and closing.
The output email will accurately reflect the specified tone (e.g., Formal, Informal, Urgent).
All 'Key Information to Include' specified in the user input will be present in the generated email.

Ready to stop burning tokens?

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

Optimize My Prompts