Win back past customers from Google Sheets with OpenAI, Gmail and Slack
Ready for 3.0What this workflow does
This AI workflow has 83 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects Gmail, Google Sheets, Slack and OpenAI Chat Model. It also calls sheets.googleapis.com and gmail.googleapis.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).
- Plan Setup (Code): runs custom JavaScript code
- Campaign Settings (Edit Fields (Set)): sets 17 fields: businessName, senderName, senderEmail…
- Create Campaign Sheet (HTTP Request): calls sheets.googleapis.com (POST)
- Check Settings (Code): runs custom JavaScript code
- Format Campaign Sheet (HTTP Request): calls an HTTP API (POST)
- Route by Trigger (Switch): routes items into 3 branches
- Write Sheet Headers (HTTP Request): calls an HTTP API (POST)
- Read Customers (Google Sheets): uses Google Sheets
- Read Contacted Customers (Google Sheets): uses Google Sheets
- Read Customers for Report (Google Sheets): uses Google Sheets
…plus 63 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)
HTTP calls to: sheets.googleapis.com, gmail.googleapis.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (15)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow runs a win-back email campaign from Google Sheets using OpenAI to write emails, Gmail to send and draft replies, and Slack for approvals and reporting, while tracking sends, follow-ups, unsubscribes, and reply outcomes back in the…