0
0
GenaiHow-ToBeginner · 3 min read

How to Use Prompts for Email Writing with AI

To use prompts for email writing, clearly describe the email's purpose, tone, and key points you want included. Use simple, direct instructions in your prompt to guide the AI in generating a relevant and well-structured email.
📐

Syntax

A prompt for email writing usually includes these parts:

  • Purpose: What the email is about.
  • Tone: Formal, friendly, or casual style.
  • Details: Key points or information to include.
  • Length: Short or detailed email.

Example prompt structure:

"Write a [tone] email to [recipient] about [purpose] including [details]."
text
"Write a formal email to a client about project delay including apology and new timeline."
💻

Example

This example shows how to use a prompt with an AI model to generate an email about scheduling a meeting.

python
from openai import OpenAI

client = OpenAI()

prompt = (
    "Write a friendly email to a coworker to schedule a meeting next week. "
    "Include a suggestion for Tuesday or Wednesday afternoon."
)

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": prompt}]
)

print(response.choices[0].message.content)
Output
Subject: Meeting Next Week Hi there, I hope you're doing well! I wanted to check if you're available for a meeting next week. Would Tuesday or Wednesday afternoon work for you? Let me know what suits you best. Best regards, [Your Name]
⚠️

Common Pitfalls

Common mistakes when using prompts for email writing include:

  • Being too vague, which leads to unclear or generic emails.
  • Not specifying the tone, causing the email to sound inappropriate.
  • Including too many details, making the prompt confusing.
  • Ignoring the recipient, which can affect the email's relevance.

Always keep prompts clear, concise, and focused on the main message.

text
Wrong prompt:
"Write an email about the project."

Right prompt:
"Write a polite email to the project manager updating them on the project status and next steps."
📊

Quick Reference

Tips for effective email prompts:

  • Start with the email's purpose.
  • Specify the tone (formal, casual, friendly).
  • Mention the recipient type (client, coworker, manager).
  • Include key points to cover.
  • Keep prompts simple and direct.

Key Takeaways

Clearly state the email's purpose and tone in your prompt.
Include key details to guide the AI's content generation.
Avoid vague or overly complex prompts for better results.
Specify the recipient type to tailor the email style.
Keep prompts simple, direct, and focused on the message.