Here’s a ready-to-use n8n template (JSON) for your eBook business, focusing on instant delivery after payment via Stripe. You can import this into n8n and customize it further.
📥 n8n JSON Template: "eBook Auto-Delivery via Stripe + Email"
What it does:
- Triggers when a Stripe payment succeeds.
- Sends the eBook via email (Gmail/SendGrid).
- Logs the sale in Google Sheets.
- Sends you a Telegram notification (optional).
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"event": "charge.succeeded",
"additionalFields": {}
},
"name": "Stripe Trigger",
"type": "n8n-nodes-base.stripeTrigger",
"typeVersion": 1,
"position": [
450,
300
],
"credentials": {
"stripeApi": "your-stripe-credentials"
}
},
{
"parameters": {
"resource": "customer",
"operation": "get",
"customerId": "={{$node[\"Stripe Trigger\"].json[\"data\"][\"object\"][\"customer\"]}}",
"options": {}
},
"name": "Stripe Get Customer",
"type": "n8n-nodes-base.stripe",
"typeVersion": 1,
"position": [
650,
300
],
"credentials": {
"stripeApi": "your-stripe-credentials"
}
},
{
"parameters": {
"operation": "append",
"sheetName": "Sales",
"dataPropertyName": "data",
"keyRow": 0,
"options": {}
},
"name": "Google Sheets Log Sale",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 1,
"position": [
850,
200
],
"credentials": {
"googleApi": "your-google-sheets-credentials"
}
},
{
"parameters": {
"subject": "Your eBook is here!",
"text": "Hi {{$node[\"Stripe Get Customer\"].json[\"name\"]}},\n\nThank you for purchasing! Download your eBook here: [LINK_TO_YOUR_EBOOK].\n\nEnjoy!",
"additionalFields": {
"to": "={{$node[\"Stripe Get Customer\"].json[\"email\"]}}"
}
},
"name": "Send Email",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 1,
"position": [
850,
400
],
"credentials": {
"smtp": "your-email-credentials"
}
},
{
"parameters": {
"text": "New eBook sale to: {{$node[\"Stripe Get Customer\"].json[\"email\"]}}",
"additionalFields": {}
},
"name": "Telegram Notify",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [
1050,
300
],
"credentials": {
"telegramApi": "your-telegram-credentials"
}
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Stripe Trigger",
"type": "main",
"index": 0
}
]
]
},
"Stripe Trigger": {
"main": [
[
{
"node": "Stripe Get Customer",
"type": "main",
"index": 0
}
]
]
},
"Stripe Get Customer": {
"main": [
[
{
"node": "Google Sheets Log Sale",
"type": "main",
"index": 0
}
],
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
},
"Send Email": {
"main": [
[
{
"node": "Telegram Notify",
"type": "main",
"index": 0
}
]
]
}
}
}