Screen podcast guest pitches in Gmail and draft replies with GPT-4.1-mini
Ready for 3.0What this workflow does
This AI workflow has 29 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail and OpenAI.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 24 fields: show_name, show_about, host_name…
- Digest Settings (Edit Fields (Set)): sets 2 fields: owner_email, send_when_empty
- Prepare Email (Code): runs custom JavaScript code
- Build Digest (Code): runs custom JavaScript code
- Get Attachment Names (HTTP Request): calls an HTTP API
- Anything to Report? (If): checks a condition and branches into true / false
- Spam Signals (Code): runs custom JavaScript code
- Email Digest to Owner (Gmail): send (message)
- Classify Email (OpenAI): response (text)
- Parse Classification (Code): runs custom JavaScript code
…plus 17 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick Overview This workflow monitors Gmail for new emails, screens potential podcast guest pitches with rule-based spam checks and OpenAI classification, then applies Gmail labels and optionally drafts personalized replies, plus a daily digest email summary.…