A Zapier Zap that watches your Gmail for new emails, sends each one through an AI extraction prompt, and logs the sender, subject, and a one-line summary to Google Sheets — automatically.
A Zapier Zap that watches your Gmail for new emails, sends each one through an AI extraction prompt, and logs the sender, subject, and a one-line summary to Google Sheets — automatically.
AI automation means connecting an AI model to your existing apps so that work happens without you initiating it. Zapier handles the routing and connections; the AI handles the thinking.
Before AI, Zapier automations were mechanical: when X happens, copy it to Y. Add a spreadsheet row when a form is submitted. Send a Slack message when a payment lands. Fast, but dumb — they couldn't understand anything.
With AI in the middle, the pattern becomes: when X happens, understand it, then do the right thing. A new email arrives — and now the automation reads it, extracts the key information, decides if it needs action, and routes it accordingly. That's the shift from automation to intelligent automation.
The three-layer model: Every AI automation has a trigger (something that starts it), an AI step (something that thinks), and an action (something that happens as a result). Master this pattern and you can automate almost anything.
You need two accounts. Both have free tiers that cover everything in this course.
Go to zapier.com and create a free account. The free plan gives you 5 Zaps and 100 tasks/month — more than enough to learn.
Go to platform.openai.com and create an account. Add $5 of credit — this covers hundreds of AI automation runs at typical usage.
In the OpenAI platform, go to API Keys → Create new secret key. Name it "Zapier" and copy it. You'll paste this into Zapier when connecting the OpenAI app.
Alternative: Zapier also integrates directly with Anthropic Claude. If you already have an Anthropic API key, search for "Anthropic" instead of "OpenAI" when adding the AI step. The concepts are identical.
In Zapier, click + Create Zap. You'll see a canvas with Trigger and Action blocks. Here's exactly what to build:
Trigger: Gmail — New Email. Click the Trigger block, search for "Gmail," choose New Email as the event. Connect your Google account. To avoid processing every email you receive, create a label in Gmail called "AI-Process" and in Zapier, filter to only watch that label. You then drag emails you want processed to that label.
AI Step: OpenAI — Send Prompt. Click + to add a step. Search "OpenAI," choose Send Prompt (under ChatGPT/GPT-4). Connect your API key. In the prompt field, write:
Extract the following from this email. Return JSON only, no other text: { "sender_name": "full name or Unknown", "sender_company": "company or Unknown", "needs_reply": "yes or no", "summary": "one sentence max" } Email: {{body_plain}}
The {{body_plain}} is a Zapier variable — it inserts the actual email text from the trigger. Zapier's variable picker makes this point-and-click.
Action: Google Sheets — Create Spreadsheet Row. Add another step, choose Google Sheets, connect your account, and point it at a spreadsheet with columns: Date, Sender Name, Company, Needs Reply, Summary. Map the OpenAI JSON fields to each column using Zapier's formatter or the built-in JSON parser.
Test each step. After adding the OpenAI step, click "Test step" to run it with a real email. Verify the JSON output looks correct. If it includes extra text before or after the JSON, update the prompt to say "Return ONLY valid JSON. No preamble, no explanation."
needs_reply is "yes," send yourself a Gmail draft with a suggested replypriority field: high/medium/low based on urgency signals in the emailDay 2 is ready when you are.
Want live instruction and hands-on projects? Join the AI bootcamp — 3 days, 5 cities.
The foundations from today carry directly into Day 2. In the next session the focus shifts to Day 2 — building directly on everything covered here.
Before moving on, verify you can answer these without looking:
Live Bootcamp
Learn this in person — 2 days, 5 cities
Thu–Fri sessions in Denver, Los Angeles, New York, Chicago, and Dallas. $1,490 per seat. June–October 2026.
Reserve Your Seat →