Extract and log Gmail admin tasks with OpenAI, Google Sheets and Airtable
Ready for 3.0What this workflow does
This AI workflow has 37 nodes and runs on Gmail events. Along the way it connects Gmail, Airtable, Google Sheets and OpenAI and 1 more.
How it runs
Trigger: On Gmail events.
- Set Inbox Configuration (Code): runs custom JavaScript code
- Redact Email Content (Code): runs custom JavaScript code
- Evaluate Airtable Memory Usage (If): checks a condition and branches into true / false
- Read Airtable Memory (Airtable): search
- Skip Airtable Data Usage (Code): runs custom JavaScript code
- Compile Airtable Data (Code): runs custom JavaScript code
- Evaluate Sheets Memory Usage (If): checks a condition and branches into true / false
- Read Sheets Memory (Google Sheets): read (sheet)
- Transfer Memory Data (Code): runs custom JavaScript code
- Combine Sheets Data (Code): runs custom JavaScript code
…plus 26 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · 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) (Admin Email 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 - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Airtable
n8n-nodes-base.airtable - Google Sheets
n8n-nodes-base.googleSheets - OpenAI
@n8n/n8n-nodes-langchain.openAi - Slack
n8n-nodes-base.slack - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow monitors Gmail for messages labeled “Admin”, redacts sensitive data, uses OpenAI to extract structured admin tasks and reminders, skips duplicates by checking Google Sheets and/or Airtable, sends optional Slack or Microsoft Teams…