Skip to content

Automating Email Responses with Zapier + ChatGPT

Automate email responses using Zapier and ChatGPT to classify emails, draft contextual replies, and respond to common queries automatically.

What you’ll build: An automated email assistant that classifies incoming emails, drafts appropriate responses, and handles routine queries.

Use cases: Customer support, sales inquiries, appointment scheduling, FAQ responses.

Time: 25 minutes

  • Zapier account (free tier works)
  • Gmail or Outlook account
  • OpenAI API key
  1. Log into Zapier
  2. Go to My Apps
  3. Connect Gmail or Outlook
  4. Add OpenAI integration with API key

Trigger: New email in inbox

Steps:

  1. Gmail: New Email

    • Folder: Inbox
    • Label: Support (optional)
  2. OpenAI: Send Prompt

    Classify this email into one category:
    - question: Customer has a question
    - complaint: Customer complaint
    - praise: Positive feedback
    - sales: Sales inquiry
    - other: Doesn't fit above
    Email subject: {{subject}}
    Email body: {{body}}
    Return only the category name.
  3. Filter:

    • Only continue if category = “question”
  4. OpenAI: Generate Response

    Draft a helpful, professional email response.
    Original email:
    Subject: {{subject}}
    Body: {{body}}
    Guidelines:
    - Be friendly and helpful
    - Answer the question if possible
    - If you can't answer, acknowledge and say support will follow up
    - Keep under 150 words
    - Sign off as "The Support Team"
  5. Gmail: Create Draft

    • To: {{from_email}}
    • Subject: Re: {{subject}}
    • Body: {{AI_response}}

Trigger: New email with specific keywords

Steps:

  1. Gmail: New Email

    • Search: “pricing OR plans OR cost”
  2. OpenAI: Answer from Knowledge Base

    Answer this pricing question based on our plans:
    Plans:
    - Basic: $10/month - 100 users
    - Pro: $25/month - 500 users
    - Enterprise: Custom pricing
    Question: {{body}}
    Provide clear, concise answer mentioning relevant plan.
  3. Gmail: Send Email

    • Auto-send response
    • Add label “Auto-Responded”

Trigger: New email

Steps:

  1. Gmail: New Email

  2. OpenAI: Analyze Sentiment

    Analyze sentiment and urgency:
    Email: {{body}}
    Return JSON:
    {
    "sentiment": "positive|negative|neutral",
    "urgency": "high|medium|low",
    "reason": "brief explanation"
    }
  3. Filter by Paths:

    • Path A: Negative + High urgency → Alert team via Slack
    • Path B: Positive → Add to “Happy Customers” list
    • Path C: Neutral + Low urgency → Create draft response
OpenAI Prompt:
Draft response considering:
- Previous conversation history (if available)
- Customer name: {{name}}
- Account type: {{account_type}}
- Common issues for this account type
Email: {{body}}
OpenAI Prompt:
1. Detect email language
2. Draft response in same language
3. Translate to English for internal tracking
Email: {{body}}
Zap Flow:
Email → Classify → If no response in 48h → Send follow-up

Start with drafts, not auto-sends:

  • Build confidence in AI responses
  • Manually review edge cases
  • Gradually increase automation
Add to every AI prompt:
"If the question is about [sensitive topics], respond:
'Thank you for reaching out. This requires special attention from our team. We'll respond within 24 hours.'"
  • Review automated responses weekly
  • Track customer satisfaction
  • Adjust prompts based on feedback

Add error handling:

  • If AI fails, create draft manually
  • Alert team to review
  • Log errors for improvement
  1. Filter before AI: Only process specific email types
  2. Cache common responses: Store FAQ answers
  3. Use smaller models: gpt-4o-mini for simple classification

For 1000 emails/month:

  • Classification: 1000 × 100 tokens = $0.015
  • Responses: 500 × 500 tokens = $0.225
  • Total: ~$0.25/month
  1. Send test emails to yourself
  2. Check Zapier task history
  3. Verify responses are appropriate
  4. Adjust prompts as needed
Create two zaps with different prompts:
Zap A: Formal tone
Zap B: Casual tone
Compare reply rates and satisfaction

Issue: Responses too generic

  • Add more context to prompt
  • Include company voice guidelines
  • Provide examples in prompt

Issue: Wrong classification

  • Add more examples to classification prompt
  • Use confidence threshold
  • Manual review low-confidence classifications

Issue: Zapier task limit exceeded

  • Upgrade plan or reduce triggers
  • Filter emails before processing
  • Process only during business hours
Trigger: Gmail - New Email in Support folder
1. OpenAI - Classify urgency
2. Filter - If urgent
3. Slack - Alert team
4. OpenAI - Draft response
5. Gmail - Create draft
Trigger: Gmail - Email with "demo" or "trial"
1. OpenAI - Extract requirements
2. Google Sheets - Log inquiry
3. OpenAI - Draft personalized response
4. Gmail - Send email
5. Calendly - Include booking link
  • Combine with CRM (Salesforce, HubSpot)
  • Add voice/tone customization
  • Implement learning from feedback
  • Scale to multiple inboxes

Related guides:


Found an issue? Open an issue!