Automated template delivery system with Stripe, GPT-4o & Gmail
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs on a schedule (every day). Along the way it connects Azure OpenAI Chat Model, Google Sheets, Stripe and Gmail.
How it runs
Trigger: On a schedule (every day).
- Stripe: uses Stripe
- Filter: keeps only the items that match a condition
- Get Payment Intent (From Charge) (HTTP Request): calls an HTTP API
- Merge: merges the data from its input branches
- If: checks a condition and branches into true / false
- Merge Logic Format Data (Code): runs custom JavaScript code
- Get Product Details (from Payment Intent) (HTTP Request): calls an HTTP API
- Check Required Fields (If): checks a condition and branches into true / false
- AI Agent: runs an AI agent, with model: Azure OpenAI Chat Model; 1 tool (Get row(s) in sheet in Google Sheets); output parser: Structured Output Parser
- Combine Stripe + Sheet Data (Merge): merges the data from its input branches
…plus 9 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Azure OpenAI templates (88) · Other Gmail + Azure OpenAI templates (57)
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 (14)
- Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Stripe
n8n-nodes-base.stripe - Filter
n8n-nodes-base.filter - AI Agent
@n8n/n8n-nodes-langchain.agent - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Gmail
n8n-nodes-base.gmail
From the author
📊 Description Automate post-purchase workflows by instantly fetching successful Stripe payments, matching them to corresponding automation templates in Google Sheets, and sending customers personalized access emails using AI-generated content. This system…