{
  "$schema": "https://promptfoo.tech/schemas/workflow-template.json",
  "name": "Zapier: Inbox Zero with AI-Drafted Replies",
  "slug": "zapier-inbox-zero-with-ai-drafts",
  "platform": "Zapier",
  "category": "zapier",
  "difficulty": "Beginner",
  "tags": [
    "zapier",
    "gmail",
    "openai",
    "productivity"
  ],
  "summary": "Gmail → Zapier → OpenAI → save a draft in Gmail. Every non-newsletter email arrives with a personalized draft reply waiting.",
  "overview": "The friction to reply is the friction to open. This Zap watches your primary inbox, uses GPT-4o-mini to draft a short, on-tone reply grounded in the last thread's context, and saves it as a Gmail draft — never sends. Opening the email shows a draft you either send, edit, or discard.",
  "variables": {
    "WEBHOOK_URL": "<your webhook URL>",
    "API_KEY": "<your provider API key>",
    "OPENAI_API_KEY": "sk-..."
  },
  "steps": [
    {
      "order": 1,
      "name": "Set the Gmail filter",
      "description": "Match Primary category only. Exclude labels: promotions, updates, forums."
    },
    {
      "order": 2,
      "name": "Author your voice guide",
      "description": "One paragraph: how you open, how you close, sentence length, forbidden words (e.g. 'circle back')."
    },
    {
      "order": 3,
      "name": "Design the prompt",
      "description": "System: voice guide. User: sender, subject, last 3 messages. Ask for a reply under 90 words."
    },
    {
      "order": 4,
      "name": "Route to Gmail Create Draft",
      "description": "Set threadId so it lands in the correct conversation. Never use Send Email."
    },
    {
      "order": 5,
      "name": "Review + tune",
      "description": "For the first week, open every draft. Note what you consistently edit — feed that back into the prompt."
    }
  ],
  "howItWorks": [
    "Zap trigger: new email in Gmail, filter to Primary category.",
    "Filter step excludes newsletters and calendar invites.",
    "OpenAI step: system prompt = voice guide + 'you are drafting on behalf of {name}'.",
    "Gmail action: Create Draft in the same thread."
  ],
  "benefits": [
    "Turns 'reply later' into 'send in one click'.",
    "Voice guide keeps drafts sounding like you, not like ChatGPT.",
    "Zero risk of accidental send — drafts only."
  ],
  "useCases": [
    "Founders, consultants, salespeople with 50+ inbound emails a day.",
    "Executives who dictate replies to an assistant — this is your assistant.",
    "Anyone whose reply-latency embarrasses them."
  ],
  "example": "Incoming: 'Hey, can we push tomorrow's call to Thursday?'\nDraft: 'Thursday works — same time? I'll resend the invite.'",
  "faqs": [
    {
      "q": "What about sensitive email?",
      "a": "Add sender/topic filters. Also: drafts never send, so worst case is a bad draft you delete."
    },
    {
      "q": "Which model?",
      "a": "GPT-4o-mini is enough for short reply drafts. 4o only if you handle long, nuanced threads."
    },
    {
      "q": "Privacy?",
      "a": "Email bodies pass through OpenAI. For regulated workflows use Azure OpenAI or self-hosted Llama with Ollama."
    }
  ],
  "source": "https://promptfoo.tech/workflows/zapier-inbox-zero-with-ai-drafts",
  "updated": "2026-06-22",
  "license": "CC-BY-4.0"
}