Turn Gmail lead replies into follow-up tasks with OpenAI and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, OpenAI and Google Sheets.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 8 fields: sheet_url, alert_email, your_name…
- New reply or morning? (If): checks a condition and branches into true / false
- Clean the email (Code): runs custom JavaScript code
- Read your follow-ups (Google Sheets): uses Google Sheets
- From a person? (If): checks a condition and branches into true / false
- Pick what's due today (Code): runs custom JavaScript code
- Read the reply (OpenAI): uses OpenAI
- Email today's follow-ups (Gmail): uses Gmail
- Check the reply (Code): runs custom JavaScript code
- Route by intent (Switch): routes items into 3 branches
…plus 9 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) (New reply in Gmail).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow monitors Gmail for new lead replies, uses OpenAI to classify intent and suggest next steps, logs each follow-up to Google Sheets, and emails you alerts, draft replies, and a daily due-today digest. How it works 1. Triggers every…