Templates / Win back lapsed clients with OpenAI, Google Sheets and Gmail

Win back lapsed clients with OpenAI, Google Sheets and Gmail

Ready for 3.0

by Shumon Kobayashi ✓ · 0 views · created 2026-10-21 · Lead Nurturing, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 37 nodes and runs on a schedule (every week at 09:00) (plus 2 other triggers). Along the way it connects Gmail, Google Sheets and OpenAI Chat Model.

How it runs

Trigger: On a schedule (every week at 09:00) (plus 2 other triggers).

  1. Configure Your Settings (Edit Fields (Set)): sets 14 fields: googleSheetId, testMode, businessName…
  2. Build Failure Alert (Code): runs custom JavaScript code
  3. Is This A Client Reply? (If): checks a condition and branches into true / false
  4. Alert Staff That It Stopped (Gmail): uses Gmail
  5. Read Clients For Replies (HTTP Request): calls an HTTP API
  6. Check Your Settings (Code): runs custom JavaScript code
  7. Match Replies To Clients (Code): runs custom JavaScript code
  8. Read Sheet As Displayed (HTTP Request): calls an HTTP API
  9. Classify Each Reply With AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Model For Replies
  10. Pair Each Reply With Its Label (Merge): merges the data from its input branches

…plus 22 more steps. See the full node list below.

Services it uses

GmailGoogle SheetsOpenAI Chat Model

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) (Check For Client Replies).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (12)

From the author

Quick overview This workflow runs every Monday, reads a client list from Google Sheets, uses an OpenAI chat model to draft personalized win-back messages, and sends them via Gmail while updating the sheet and emailing staff a delivery summary. How it works 1.…

Excerpt from Shumon Kobayashi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.