Workflow

Create Draft Email for Unread Emails

Automatically draft professional AI-powered replies for all your unread emails and save them as Gmail drafts ready for review and sending.

Needle Team

Last updated

November 16, 2025

Connectors used

Google Mail

Tags

Email AutomationGmailAI DraftsProductivityInbox Management

Key Takeaways

  • AI-generated draft replies - GPT-4.1 reads each unread email and writes a professional, context-aware response saved as a Gmail draft
  • Human review before sending - Drafts are never sent automatically, so you always have the final say before anything leaves your inbox
  • Scheduled scanning - The workflow runs on a schedule (default: every minute) and processes up to 20 unread emails per run
  • Works with any Gmail account - Connects through a Gmail connector to read emails and create drafts

What This Workflow Does

This workflow finds unread emails in your Gmail inbox, sends the content to an AI model that generates a professional reply, and saves that reply as a Gmail draft addressed to the original sender. You then review, edit if needed, and send each draft yourself. It is designed for people who want to speed up email responses without losing control over what gets sent.

Use cases:

  • Quickly drafting replies to customer inquiries
  • Keeping up with a high-volume inbox during busy periods
  • Creating starting-point drafts for sales follow-ups or partnership replies

How It Works

StepWhat Happens
1. Scheduled TriggerThe workflow runs on a cron schedule (default: every minute)
2. Find Unread EmailsThe Gmail Find Email node searches for unread messages (query: is:unread, limit: 20)
3. TransformExtracts the email results into a list for per-item processing
4. AI Draft GenerationGPT-4.1 reads each email and generates a concise, polite reply using structured output
5. MergeCombines the original email data with the AI-generated response
6. Create Gmail DraftCreates a reply draft in Gmail addressed to the original sender with the AI-generated body

Workflow Nodes

NodeRole
Scheduled TriggerFires the workflow on a cron schedule
Find Email (Gmail)Searches Gmail for unread emails with a configurable query and limit
TransformExtracts the email list from the Gmail response for item-by-item processing
AI Node (GPT-4.1)Generates a professional reply for each email using structured output (temperature 0.3)
MergeCombines the original email metadata with the AI-generated reply
Create Draft (Gmail)Saves a reply draft in Gmail with the AI-generated text, addressed to the original sender

Setup Instructions

  1. Add the "Create Draft Email for Unread Emails" template to your Needle workspace
  2. Connect your Gmail account by creating a Gmail connector in the Find Email and Create Draft nodes
  3. Review the AI prompt in the AI node and adjust the tone or instructions to match your communication style
  4. Run the workflow manually once to confirm drafts appear in your Gmail Drafts folder
  5. Enable the scheduled trigger when you are ready for it to run automatically

Customization

What You Can ChangeHow
Email query filterChange the q parameter in the Find Email node (e.g., is:unread from:clients@example.com or is:unread -label:automated)
Emails per runAdjust the limit in the Find Email node (default: 20)
Schedule frequencyModify the cron expression on the Scheduled Trigger (e.g., */5 * * * * for every 5 minutes, 0 * * * * for hourly)
Reply tone and styleEdit the system and user prompts in the AI node to match your brand voice (formal, casual, technical)
AI temperatureLower the temperature (e.g., 0.1) for more consistent replies, or raise it (e.g., 0.5) for more variety
AI modelSwap the model in the AI node if you prefer a different provider

FAQ

Q: Will this workflow send emails on my behalf? A: No. It only creates drafts. You review every draft and decide whether to send, edit, or delete it.

Q: What happens if the same unread email is processed again? A: If the email is still marked as unread on the next run, it may generate another draft. To avoid this, archive or mark emails as read after reviewing the drafts.

Q: Can I limit it to only certain types of emails? A: Yes. Change the Gmail query in the Find Email node. For example, use is:unread subject:urgent to only process emails with "urgent" in the subject line.

Q: What AI model does this use? A: The default is GPT-4.1 with a temperature of 0.3 for consistent, professional replies.

Want to showcase your own workflows?

Become a Needle workflow partner and turn your expertise into recurring revenue.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .