This workflow corresponds to n8n.io template #15812 — we link there as the canonical source.
This workflow follows the Discord → HTTP Request recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"nodes": [
{
"id": "3be25ba1-7cbf-479b-918e-55d82565b09f",
"name": "Sticky Note13",
"type": "n8n-nodes-base.stickyNote",
"position": [
64,
-336
],
"parameters": {
"color": 7,
"width": 1024,
"height": 208,
"content": "## Need more advanced automation solutions? Contact us for custom enterprise workflows!\n\n# Growth-AI.fr\n\n## https://www.linkedin.com/in/allanvaccarizi/\n## https://www.linkedin.com/in/hugo-marinier-%F0%9F%A7%B2-6537b633/"
},
"typeVersion": 1
},
{
"id": "6680c75f-bd3b-43a7-b1dc-dd22705befe1",
"name": "Sticky Note16",
"type": "n8n-nodes-base.stickyNote",
"position": [
64,
-752
],
"parameters": {
"color": 7,
"width": 1024,
"height": 400,
"content": ""
},
"typeVersion": 1
},
{
"id": "902228a8-212e-40ac-aa93-beb9548e87f9",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-496,
-112
],
"parameters": {
"width": 480,
"height": 752,
"content": "## Untitled workflow\n\n### How it works\n\n1. A Stripe trigger fires when a payment is completed, passing the session data downstream.\n2. An HTTP Request fetches the full Stripe checkout session details via the Stripe API.\n3. A Discord notification is sent immediately to alert the team of the new paid order.\n4. In parallel, Google Drive is searched for the appropriate document template matching the order.\n5. The matching template is downloaded from Google Drive.\n6. The template is emailed to the customer via Gmail as a post-purchase delivery.\n\n### Setup steps\n\n- - [ ] Configure the **Stripe Trigger** node with your Stripe API credentials and select the `checkout.session.completed` event.\n- - [ ] Set the **HTTP Request** node with your Stripe API key to authenticate the GET request to the Stripe Checkout Sessions endpoint.\n- - [ ] Connect the **Notif Discord Stripe** node to your Discord bot/webhook and configure the target channel and message content.\n- - [ ] Authenticate the **Search Template** and **Download Template** Google Drive nodes with a Google OAuth2 credential that has Drive read access.\n- - [ ] Configure the **Mail Template** Gmail node with a Google OAuth2 credential and set the recipient address (e.g., from the Stripe session's customer email).\n\n### Customization\n\nYou can customize the Discord message to include order details (amount, product, customer email) pulled from the Stripe session. You can also adjust the Google Drive search query to match different product templates based on the purchased item."
},
"typeVersion": 1
},
{
"id": "a48a52c3-fc5d-447d-9419-6066524795e2",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
64,
32
],
"parameters": {
"color": 7,
"width": 368,
"height": 368,
"content": "## Stripe trigger and session fetch\n\nEntry point of the workflow: the Stripe trigger fires on a completed payment and the HTTP Request node fetches the full checkout session details from the Stripe API."
},
"typeVersion": 1
},
{
"id": "d2729ef9-285a-45b4-98d5-21a9cd37108a",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
464,
-64
],
"parameters": {
"color": 7,
"height": 416,
"content": "## Discord order notification\n\nSends an immediate Discord notification to alert the team whenever a new Stripe order is paid. Runs as a parallel branch off the HTTP Request node."
},
"typeVersion": 1
},
{
"id": "7a9b6424-6e09-41de-a8a1-c4c3e0c62d6e",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
736,
80
],
"parameters": {
"color": 7,
"width": 592,
"height": 320,
"content": "## Fetch template and email customer\n\nSearches Google Drive for the correct document template based on the order, downloads it, and sends it to the customer via Gmail as post-purchase delivery."
},
"typeVersion": 1
},
{
"id": "220cc5d6-b59d-460e-a5cb-faea2e7750f6",
"name": "Fetch Stripe Line Items",
"type": "n8n-nodes-base.httpRequest",
"position": [
288,
240
],
"parameters": {
"url": "=https://api.stripe.com/v1/checkout/sessions/{{$json.data.object.id}}/line_items",
"options": {},
"authentication": "predefinedCredentialType",
"nodeCredentialType": "stripeApi"
},
"credentials": {
"stripeApi": {
"name": "<your credential>"
}
},
"typeVersion": 4.3
},
{
"id": "1099f9e6-1fe3-4af3-957f-7b73bf1934b9",
"name": "Send Discord Order Notification",
"type": "n8n-nodes-base.discord",
"position": [
512,
144
],
"parameters": {
"content": "=**\ud83d\udcb0 NOUVELLE COMMANDE STRIPE \ud83d\udcb0**\n\n**Client :** {{ $('When Stripe Order Paid').item.json.data.object.customer_details.name }}\n**Mail :** {{ $('When Stripe Order Paid').item.json.data.object.customer_details.email }}\n**Produit :** {{ $json.data[0].description }}\n**Montant :** {{ $('When Stripe Order Paid').item.json.data.object.amount_subtotal / 100 }}\u20ac",
"guildId": {
"__rl": true,
"mode": "list",
"value": "1377297267014504520",
"cachedResultUrl": "https://discord.com/channels/1377297267014504520",
"cachedResultName": "Growth AI"
},
"options": {},
"resource": "message",
"channelId": {
"__rl": true,
"mode": "list",
"value": "1485647229359358063",
"cachedResultUrl": "https://discord.com/channels/1377297267014504520/1485647229359358063",
"cachedResultName": "\ud83d\udcb0-stripe"
}
},
"credentials": {
"discordBotApi": {
"name": "<your credential>"
}
},
"typeVersion": 2
},
{
"id": "564cdeb7-ab2f-4e32-9ce7-391bded96980",
"name": "When Stripe Order Paid",
"type": "n8n-nodes-base.stripeTrigger",
"position": [
112,
240
],
"parameters": {
"events": [
"checkout.session.completed"
]
},
"credentials": {
"stripeApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "ed4f3b84-4231-49cf-81a6-e430c3a74cfd",
"name": "Search Template in Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
784,
240
],
"parameters": {
"filter": {
"folderId": {
"__rl": true,
"mode": "list",
"value": "1bJEWpGgIAJnTOBwctvG7Yh_1bhk7Bcv_",
"cachedResultUrl": "https://drive.google.com/drive/folders/1bJEWpGgIAJnTOBwctvG7Yh_1bhk7Bcv_",
"cachedResultName": "Json"
}
},
"options": {},
"resource": "fileFolder",
"returnAll": true,
"queryString": "={{ $('Fetch Stripe Line Items').item.json.data[0].description }}"
},
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
},
"typeVersion": 3
},
{
"id": "71ba6aa9-b018-4ae2-8ad6-b351187396f6",
"name": "Download Template from Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
976,
240
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.id }}"
},
"options": {},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
},
"typeVersion": 3
},
{
"id": "2be8372b-459b-44d2-b513-001caeeef15a",
"name": "Send Order Email via Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
1184,
240
],
"parameters": {
"sendTo": "={{ $('When Stripe Order Paid').item.json.data.object.customer_details.email }}",
"message": "=<!DOCTYPE html> <html lang=\"en\"> <head> <meta charset=\"UTF-8\" /> <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/> <title>Thank you for your purchase \u2013 Growth AI</title> </head> <body style=\"margin:0; padding:0; background-color:#0e0e0e; font-family:'Georgia', serif;\"> <!-- Wrapper --> <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:#0e0e0e; padding: 40px 0;\"> <tr> <td align=\"center\"> <!-- Email container --> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:#141414; border-radius:4px; border:1px solid #2a2a2a; overflow:hidden;\"> <!-- Header / Logo bar --> <tr> <td style=\"background: linear-gradient(135deg, #b8902a 0%, #e2bb5e 50%, #b8902a 100%); padding: 28px 40px; text-align:center;\"> <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tr> <td style=\"text-align:center;\"> <img src=\"https://cdn.prod.website-files.com/6825df5b20329ba581df4914/687deabbcda6fa20fe3f196b_only_logo_Growth_AI-removebg-preview.png\" alt=\"Growth AI\" width=\"72\" style=\"display:block; margin:0 auto 10px auto; width:72px; height:auto;\" /> <span style=\"font-family:'Georgia', serif; font-size:22px; font-weight:700; color:#0e0e0e; letter-spacing:2px; text-transform:uppercase;\">GROWTH AI</span> <br/> <span style=\"font-family:'Georgia', serif; font-size:11px; color:#0e0e0e; letter-spacing:4px; text-transform:uppercase; opacity:0.7;\">Workflow Automation</span> </td> </tr> </table> </td> </tr> <!-- Gold separator line --> <tr> <td style=\"height:3px; background: linear-gradient(90deg, transparent, #b8902a, #e2bb5e, #b8902a, transparent);\"></td> </tr> <!-- Body --> <tr> <td style=\"padding: 48px 48px 32px 48px;\"> <!-- Thank you heading --> <p style=\"margin:0 0 8px 0; font-family:'Georgia', serif; font-size:12px; color:#b8902a; letter-spacing:4px; text-transform:uppercase;\">Purchase confirmed</p> <h1 style=\"margin:0 0 32px 0; font-family:'Georgia', serif; font-size:30px; font-weight:400; color:#f0e6c8; line-height:1.3;\"> Thank you for your<br/>purchase \ud83c\udf89 </h1> <!-- Divider --> <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"margin-bottom:32px;\"> <tr> <td style=\"height:1px; background:linear-gradient(90deg, #b8902a, transparent);\"></td> </tr> </table> <!-- Body text --> <p style=\"margin:0 0 20px 0; font-family:'Georgia', serif; font-size:16px; color:#c8baa0; line-height:1.8;\"> We truly appreciate your purchase of the <strong style=\"color:#e2bb5e;\">{{ $('Fetch Stripe Line Items').item.json.data[0].description }}</strong> workflow template. It means a lot to us that you've chosen Growth AI to power your automation stack. </p> <!-- Attachment notice box --> <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"margin:32px 0;\"> <tr> <td style=\"background-color:#1c1c1c; border-left:3px solid #b8902a; border-radius:0 4px 4px 0; padding:20px 24px;\"> <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tr> <td width=\"36\" valign=\"top\" style=\"padding-top:2px;\"> <!-- Attachment icon --> <svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48\" stroke=\"#b8902a\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/> </svg> </td> <td style=\"padding-left:12px;\"> <p style=\"margin:0 0 4px 0; font-family:'Georgia', serif; font-size:13px; color:#b8902a; letter-spacing:2px; text-transform:uppercase;\">Workflow Attached</p> <p style=\"margin:0; font-family:'Georgia', serif; font-size:15px; color:#c8baa0; line-height:1.7;\"> Your <strong style=\"color:#f0e6c8;\">{{ $('Fetch Stripe Line Items').item.json.data[0].description }}</strong> workflow is attached to this email as a <strong style=\"color:#f0e6c8;\">.json</strong> file. Simply import it directly into your n8n instance to get started. </p> </td> </tr> </table> </td> </tr> </table> <p style=\"margin:0 0 20px 0; font-family:'Georgia', serif; font-size:16px; color:#c8baa0; line-height:1.8;\"> If you have any questions about the workflow, need help with the setup, or require any kind of support \u2014 don't hesitate to reach out. We're here to help. </p> <!-- CTA / Contact --> <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"margin:32px 0;\"> <tr> <td align=\"center\"> <a href=\"mailto:allan@growth-ai.fr\" style=\"display:inline-block; padding:14px 36px; background: linear-gradient(135deg, #b8902a, #e2bb5e); color:#0e0e0e; font-family:'Georgia', serif; font-size:14px; font-weight:700; letter-spacing:2px; text-transform:uppercase; text-decoration:none; border-radius:2px;\"> Contact Support </a> </td> </tr> </table> <p style=\"margin:0 0 4px 0; font-family:'Georgia', serif; font-size:14px; color:#787060; line-height:1.8; text-align:center;\"> Or write directly to </p> <p style=\"margin:0; font-family:'Georgia', serif; font-size:15px; color:#b8902a; text-align:center;\"> <a href=\"mailto:allan@growth-ai.fr\" style=\"color:#b8902a; text-decoration:none;\">allan@growth-ai.fr</a> </p> </td> </tr> <!-- Gold separator --> <tr> <td style=\"height:1px; background:linear-gradient(90deg, transparent, #b8902a 30%, #e2bb5e 50%, #b8902a 70%, transparent); margin:0 48px;\"></td> </tr> <!-- Footer --> <tr> <td style=\"padding:28px 48px 32px 48px; text-align:center;\"> <p style=\"margin:0 0 8px 0; font-family:'Georgia', serif; font-size:13px; color:#b8902a; letter-spacing:3px; text-transform:uppercase;\">Growth AI</p> <p style=\"margin:0; font-family:'Georgia', serif; font-size:12px; color:#4a4540; line-height:1.8;\"> Lyon, France \u00b7 <a href=\"https://growth-ai.fr\" style=\"color:#4a4540; text-decoration:none;\">growth-ai.fr</a> </p> </td> </tr> </table> <!-- /Email container --> </td> </tr> </table> </body> </html>",
"options": {
"attachmentsUi": {
"attachmentsBinary": [
{}
]
}
},
"subject": "=Your workflow is ready \u2013 {{ $('Fetch Stripe Line Items').item.json.data[0].description }} \u2705"
},
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
},
"typeVersion": 2.2
}
],
"connections": {
"When Stripe Order Paid": {
"main": [
[
{
"node": "Fetch Stripe Line Items",
"type": "main",
"index": 0
}
]
]
},
"Fetch Stripe Line Items": {
"main": [
[
{
"node": "Send Discord Order Notification",
"type": "main",
"index": 0
},
{
"node": "Search Template in Drive",
"type": "main",
"index": 0
}
]
]
},
"Search Template in Drive": {
"main": [
[
{
"node": "Download Template from Drive",
"type": "main",
"index": 0
}
]
]
},
"Download Template from Drive": {
"main": [
[
{
"node": "Send Order Email via Gmail",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
discordBotApigmailOAuth2googleDriveOAuth2ApistripeApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
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. The Stripe Trigger fires when a event is detected —…
Source: https://n8n.io/workflows/15812/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
AICARE Email Blast System. Uses googleDrive, httpRequest, googleSheets, gmail. Event-driven trigger; 39 nodes.
Tiktok to video copy (paylaşılacak). Uses httpRequest, googleDrive, googleSheets, gmail. Event-driven trigger; 39 nodes.
Recruiting agency. Uses typeformTrigger, airtable, httpRequest, googleDrive. Event-driven trigger; 36 nodes.
Categories: Payments, Project Operations, Client Onboarding
🎥 Analyze YouTube Video for Summaries, Transcripts & Content + Google Gemini AI. Uses stickyNote, httpRequest, googleDrive, gmail. Event-driven trigger; 33 nodes.