Skip to main content

Claude Prompt to Build an AI Email Assistant with Smart Drafting

Build an AI email assistant: classification, multi-variant reply drafting, style learning, action-item extraction, and provider integration.

Füllen Sie die Platzhalter aus

Edit the values, then copy your finished prompt.

Ihr Prompt
prompt.txt

                                

What this prompt does

This prompt asks the AI to build an AI email assistant for a [user_role] using [model_provider]. It classifies incoming mail into [categories] with confidence scores, drafts [reply_variants] reply variants (brief, detailed, formal), and adapts to the user's writing style by learning from [sample_count] sent emails. It extracts action items, deadlines, and follow-ups, detects scheduling requests, scores priority from sender importance and urgency signals, and summarizes threads longer than [thread_threshold] messages.

The structure works because it splits the inbox problem into discrete, testable capabilities rather than one vague "AI for email" feature. Pairing a fast model for classification with a stronger one for drafting (as [model_provider] suggests) keeps cost and latency sane. PII detection flags sensitive information before it leaves your draft, and integration with [email_provider] via API or IMAP, implemented in [language] with background processing, makes it safe enough to point at a real inbox. Priority scoring is the quiet workhorse here: by weighing sender importance, urgency signals, and content together, it surfaces the few emails that actually need a reply now, which is the difference between an assistant that saves time and one that just adds another queue to read.

When to use it

  • You spend too long triaging and replying to email and want classification plus draft variants to speed it up.
  • You want the assistant to learn your tone from [sample_count] past emails instead of sounding generic.
  • You need action items and deadlines pulled out of threads automatically.
  • You want priority scoring so urgent and important mail surfaces first.
  • You handle sensitive data and need PII flagged before anything is sent.
  • You are integrating against [email_provider] and want background classification rather than blocking the UI.

Example output

Expect a classification module tagging mail into [categories] with confidence, a drafting module producing [reply_variants] tonal variants, an action-item extractor, a thread summarizer triggered past [thread_threshold] messages, a priority scorer, and a PII detector. You also get the drafting system prompt, [email_provider] integration code in [language], and evaluation metrics for classification accuracy.

Pro tips

  • Set [model_provider] as a split — a fast model for [categories] classification, a stronger one for drafting — to balance latency and quality.
  • Tune [categories] to your actual workflow; generic buckets produce generic routing, so name the categories you really triage by.
  • For style learning, more [sample_count] is not always better — use representative sent emails, since a few off-tone samples can skew the voice.
  • Treat PII detection as advisory, not a guarantee; flag and warn, but keep a human in the loop before sensitive drafts send.
  • Calibrate confidence thresholds so low-confidence classifications route to manual review instead of silently mis-filing mail.
  • Start with [reply_variants] as draft suggestions a human edits, not auto-send, until you trust the tone on your own inbox.

Frequently Asked Questions

Why does this prompt use two different models?
The `[model_provider]` default pairs a fast, cheap model for high-volume classification with a stronger model for drafting replies. Classification runs on every email, so speed and cost matter there, while drafting is less frequent and benefits from a more capable model's nuance.
How does it learn my writing style?
It analyzes `[sample_count]` of your sent emails to infer tone, length, and phrasing, then conditions the drafting prompt on that style. Use representative samples, since a handful of off-tone emails can skew the learned voice in directions you did not intend.
Is the PII detection reliable enough to trust?
Treat it as advisory rather than a guarantee. The prompt flags and warns about sensitive information, which catches many cases, but you should keep a human reviewing drafts before sending anything that touches personal or confidential data.
Can it connect to my actual inbox?
Yes. It integrates with your `[email_provider]` via API or IMAP, with background processing so classification does not block the interface. Start with drafts as suggestions a human approves rather than auto-send until you trust its behavior on real mail.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

Mehr in AI Chatbot & Agent Building Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support