Send Stripe purchase templates from Google Drive via Gmail and Discord
Who it's for
This workflow is for indie creators, automation agencies, and digital product sellers who sell n8n workflow templates (or any downloadable file) through Stripe and want to automate post-purchase delivery and team notifications.
How it works
The Stripe Trigger fires when a checkout.session.completed event is detected — a payment has been completed. An HTTP Request node fetches the full line items from the Stripe Checkout Session using the Stripe API. In parallel, a Discord notification is sent to a dedicated channel with the customer's name, email, product name, and amount paid. Simultaneously, Google Drive is searched for a document template whose name matches the purchased product description. The matching template file is downloaded from Google Drive. A branded HTML email is sent to the customer via Gmail, with the downloaded template attached as a .json file.
How to set up
[ ] Connect your Stripe API credentials to both the Stripe Trigger and HTTP Request nodes [ ] Configure the Discord bot credential and set the target guild and channel IDs [ ] Connect a Google OAuth2 credential with Drive read access to both Google Drive nodes [ ] Set the Google Drive folder ID where your templates are stored [ ] Connect a Gmail OAuth2 credential to the Gmail node
Requirements
Stripe account with API key Discord bot with permissions to post in a channel Google Drive with template files named after your products Gmail account with OAuth2 access
How to customize
Adapt the Discord message to include additional order details such as coupon codes or quantity. Replace the Gmail step with another email provider (SendGrid, SMTP) for higher sending volumes. Add a Google Sheets logging step after the Stripe trigger to keep a record of all purchases.
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments