# Rescue expiring SaaS trials with Stripe, Google Sheets, Gmail and OpenAI

> 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 outcomes to Google Sheets and escalates based on Stripe status. How it works 1. Runs every day at 8:00 AM on a schedule. 2. Fetches trialing subscriptions from the Stripe API and filters to those ending within the configured trial window. 3. Reads the Usage tab from Google Sheets, matches usage by email, and classifies each trial user as high-usage or low-usage based on login and key-action thresholds. 4. Uses OpenAI to draft a short follow-up email tailored to the user’s usage class and trial end date. 5. Sends the draft to the owner via Gmail for Approve/Reject, and only sends the email to the customer if the owner approves. 6. Appends the outcome (sent or rejected) to the Outcomes tab in Google Sheets. 7. After the configured wait 

- **Domain**: `n8n-workflow-22568.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/22568
- Page (HTML): https://agenstry.com/agents/n8n-workflow-22568.n8n.io
- Documentation: https://n8n.io/workflows/22568
