Rescue expiring SaaS trials with Stripe, Google Sheets, Gmail and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs on a schedule (every day at 08:00). Along the way it connects Google Sheets, OpenAI Chat Model and Gmail. It also calls api.stripe.com over HTTP.
How it runs
Trigger: On a schedule (every day at 08:00).
- CONFIG — Trial Rescue (Edit Fields (Set)): sets 8 fields: business_name, owner_email, sheet_id…
- Read Usage (Google Sheets): read (sheet)
- List Trialing Subscriptions (HTTP Request): calls api.stripe.com (GET)
- Tag Usage Items (Code): runs custom JavaScript code
- Attach Config (Edit Fields (Set)): sets 1 field: trial_window_days
- Merge: merges the data from its input branches
- Filter Trials Ending Soon (Code): runs custom JavaScript code
- Join and Classify Usage (Code): runs custom JavaScript code
- Draft Follow-Up (AI Agent): runs an AI agent
- Request Approval (Gmail): send and wait (message)
…plus 12 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: api.stripe.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 (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Merge
n8n-nodes-base.merge
From the author
Quick overview This workflow runs daily to find Stripe subscriptions whose trials end soon, looks up each user’s recent usage in Google Sheets, drafts a personalized follow-up with OpenAI, and uses Gmail to request human approval before sending, then logs…