Automated template delivery system with Stripe, GPT-4o & Gmail
Ready for 3.0Ready 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-10-19.
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
What it does
๐ 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 ensures each buyer receives their digital template, password, and onboarding details automatically after payment. ๐ณ๐ฉ๐ค What This Template Does - Step 1: Triggers daily at 7:00 AM IST to fetch all successful payment charges from Stripe. โฐ - Step 2: Retrieves payment intent and product details for each successful charge to enrich context. ๐ฐ - Step 3: Validates required fields (order reference, product name, customer name, email). โ
- Step 4: Matches purchased product with the automation record in Google Sheets via AI lookup. ๐ - Step 5: Combines Stripe and Sheet data into one record, ensuring accuracy and completeness. ๐ - Step 6: Filters out already-processed customers to avoid duplicate sends. ๐งฎ - Step 7: Generates a personalized thank-you email using Azure OpenAI (GPT-4o-mini) including access links, password, and onboarding tips. ๐ - Step 8: Sends the email through Gmail to the customer automatically. ๐ง - Step 9: Logs each transaction and email delivery into Google Sheets for tracking and auditing. ๐ Key Benefits โ
Fully automated Stripe-to-email delivery flow โ
Zero manual intervention โ instant template delivery โ
AI-personalized HTML emails with customer details โ
Centralized purchase logging and analytics โ
Eliminates duplicates and ensures smooth customer experience Features - Scheduled daily trigger (7:00 AM IST) - Stripe API integration for payment and product details - Google Sheets lookup for automation files and passwords - GPT-powered email content generation - Gmail API integration for delivery - Google Sheets logging for audit trail Requirements - Stripe API credentials - Google Sheets OAuth2 credentials - Gmail OAuth2 credentials - Azure OpenAI API credentials Target Audience - SaaS or digital product sellers using Stripe - Automation template marketplaces - Small teams delivering digital assets via email - Businesses seeking instant customer fulfillment