Automating Email Responses with AI
Email is one of the most time-consuming daily tasks. In this lesson, you will build an automation that reads incoming emails, generates AI-powered draft responses, and delivers them for your review.
What You Will Build
Template 1: AI Email Draft Generator
Trigger: New email arrives in Gmail → AI: Analyze the email and draft a response → Action: Save the draft in Gmail (or send to Slack for review)
This automation handles the thinking and writing. You just review and click send.
Building in Zapier (Step by Step)
Step 1: Set the Trigger
- Create a new Zap
- Trigger app: Gmail
- Trigger event: "New Email"
- Account: Connect your Gmail account
- Label/Mailbox: Choose "INBOX" or a specific label like "Needs Reply"
- Test the trigger to pull in a sample email
Step 2: Add an AI Filter (Optional but Recommended)
Before calling the AI, filter out emails that do not need responses (newsletters, promotions, automated notifications).
- Add a Filter step
- Set the condition:
From Emaildoes not containnoreply - Add another condition:
Subjectdoes not containunsubscribe
This saves AI API costs by only processing emails that actually need a response.
Step 3: Add the AI Action
- Add OpenAI → "Conversation"
- Model: gpt-4o-mini
- System prompt:
You are a professional email assistant. Your job is to draft concise, friendly email responses.
Rules:
- Keep responses under 150 words
- Match the formality level of the incoming email
- If the email asks a question you cannot answer, acknowledge it and say you will follow up
- Do not make up information or commitments
- End with an appropriate closing (Best regards, Thanks, etc.)
- Do not include a subject line, only the body text
- User message: Map the Gmail
Body Plainfield - Temperature: 0.5
- Max Tokens: 300
- Test the action to see the AI-generated response
Step 4: Deliver the Draft
You have two options:
Option A: Save as Gmail Draft
- Add Gmail → "Create Draft"
- To: Map the
From Emailfield from the trigger (reply to sender) - Subject: Map
Subjectand add "Re: " at the beginning - Body: Map the OpenAI response
- The draft appears in your Gmail Drafts folder for review
Option B: Send to Slack for Review
- Add Slack → "Send Channel Message"
- Channel: Choose a channel like #email-drafts
- Message: Combine the original email info and the AI draft:
📧 *New email from:* {From Name} ({From Email})
*Subject:* {Subject}
*Original message:*
{Body Plain}
---
*AI Draft Response:*
{OpenAI Response}
Step 5: Turn It On
- Review all steps in the Zap editor
- Click "Publish" to activate your Zap
- New emails will now be processed automatically
Building in Make (Step by Step)
Step 1: Create the Scenario
- Create a new scenario
- Add the first module: Gmail → "Watch Emails"
- Connect your Gmail account
- Set the Label to "INBOX" or your preferred label
- Set Maximum number of results to 5 (processes 5 emails per run)
Step 2: Add a Filter
- Click the line between the Gmail module and the next module
- Add a filter:
From (email address)does not containnoreply - Name the filter: "Skip automated emails"
Step 3: Add the AI Module
- Add OpenAI → "Create a Completion"
- Method: Create a Chat Completion
- Model: gpt-4o-mini
- Messages:
- System: Use the same system prompt from the Zapier example above
- User: Map the
Text contentfield from Gmail
- Temperature: 0.5
- Max Tokens: 300
Step 4: Save the Draft
- Add Gmail → "Create a Draft"
- To: Map
From: email addressfrom the Watch Emails module - Subject: Map
Subjectand prepend "Re: " - Content: Map
Resultfrom the OpenAI module
Step 5: Schedule and Activate
- Click the clock icon at the bottom of the scenario
- Set the schedule (e.g., every 15 minutes)
- Toggle the scenario ON
Customizing the System Prompt
The system prompt determines the quality of your AI drafts. Here are variations for different use cases:
Customer Support
You are a customer support agent for a SaaS company.
Draft helpful, empathetic responses. If the customer reports a bug,
acknowledge the issue and let them know the team is investigating.
Keep responses under 100 words. Use a warm, professional tone.
Sales Follow-Up
You are a sales development representative.
Draft a follow-up response that addresses the prospect's questions,
highlights relevant product benefits, and suggests a meeting time.
Keep it concise (under 120 words) and end with a clear call to action.
Personal Email
You are a personal email assistant. Draft friendly, casual responses.
Match the tone of the sender. Keep responses brief and natural.
If the email is about scheduling, suggest checking the calendar.
Testing and Refining
After your automation runs for a day or two:
- Review the drafts - Are they appropriate and accurate?
- Refine the prompt - If responses are too long, add stricter word limits. If too formal, adjust the tone instructions.
- Add edge cases - If certain email types get bad responses, add instructions for those specific cases.
- Monitor costs - Check your OpenAI dashboard to see how much the automation costs per day.
Key Takeaways
- The email automation follows a simple pattern: Trigger (new email) → AI (draft response) → Action (save draft)
- Always add filters to skip automated emails and save API costs
- Use gpt-4o-mini with temperature 0.5 for natural but consistent email drafts
- Customize the system prompt for your specific use case (support, sales, personal)
- Review AI drafts for the first few days and refine your prompt based on the results

