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 →
{
"name": "MamVibe \u2014 Payment Receipt PDF",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "payment-completed",
"responseMode": "onReceived",
"responseCode": 200,
"options": {}
},
"id": "webhook-trigger",
"name": "Webhook: Payment Completed",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
250,
300
]
},
{
"parameters": {
"functionCode": "const body = $input.first().json.body;\nconst date = new Date(body.timestamp).toLocaleDateString('en-GB');\nconst html = `\n<html>\n<head><style>\n body { font-family: 'Segoe UI', Arial, sans-serif; padding: 40px; color: #333; }\n .header { text-align: center; border-bottom: 2px solid #e91e8c; padding-bottom: 20px; margin-bottom: 30px; }\n .header h1 { color: #e91e8c; margin: 0; }\n .receipt-id { color: #888; font-size: 14px; }\n table { width: 100%; border-collapse: collapse; margin: 20px 0; }\n th { background: #f8f4ff; text-align: left; padding: 12px; font-size: 13px; color: #888; text-transform: uppercase; }\n td { padding: 12px; border-bottom: 1px solid #f0f0f0; }\n .total-row td { font-weight: 700; font-size: 18px; border-top: 2px solid #e91e8c; border-bottom: none; }\n .footer { text-align: center; margin-top: 40px; color: #aaa; font-size: 12px; }\n</style></head>\n<body>\n <div class=\"header\">\n <h1>MamVibe</h1>\n <p class=\"receipt-id\">Receipt #${body.paymentId?.substring(0, 8) || 'N/A'}</p>\n <p class=\"receipt-id\">${date}</p>\n </div>\n <h2>Payment Receipt</h2>\n <table>\n <tr><th>Item</th><th>Amount</th></tr>\n <tr><td>${body.itemTitle}</td><td>${body.amount} BGN</td></tr>\n <tr class=\"total-row\"><td>Total</td><td>${body.amount} BGN</td></tr>\n </table>\n <table>\n <tr><td style=\"color:#888;width:120px\">Buyer</td><td>${body.buyerName} (${body.buyerEmail})</td></tr>\n <tr><td style=\"color:#888\">Seller</td><td>${body.sellerName} (${body.sellerEmail})</td></tr>\n <tr><td style=\"color:#888\">Date</td><td>${date}</td></tr>\n </table>\n <div class=\"footer\">This is an automatically generated receipt from MamVibe.</div>\n</body>\n</html>`;\nreturn [{ json: { html, buyerEmail: body.buyerEmail, buyerName: body.buyerName, itemTitle: body.itemTitle } }];"
},
"id": "generate-html",
"name": "Generate Receipt HTML",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
480,
300
]
},
{
"parameters": {
"operation": "toFile",
"sourceProperty": "html",
"fileName": "receipt.html",
"mimeType": "text/html"
},
"id": "html-to-file",
"name": "HTML to File",
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
700,
300
]
},
{
"parameters": {
"fromEmail": "noreply@mamvibe.bg",
"toEmail": "={{ $('Generate Receipt HTML').item.json.buyerEmail }}",
"subject": "Your MamVibe receipt \u2014 {{ $('Generate Receipt HTML').item.json.itemTitle }}",
"emailType": "html",
"html": "<div style=\"font-family: 'Segoe UI', Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px;\">\n <div style=\"text-align: center; padding: 20px 0;\">\n <h1 style=\"color: #e91e8c; margin: 0;\">MamVibe</h1>\n </div>\n <div style=\"background: #fff; border-radius: 12px; padding: 30px; border: 1px solid #f0f0f0;\">\n <h2 style=\"color: #333; margin-top: 0;\">Your Receipt</h2>\n <p style=\"color: #555; font-size: 16px; line-height: 1.6;\">Hi <strong>{{ $('Generate Receipt HTML').item.json.buyerName }}</strong>,</p>\n <p style=\"color: #555; font-size: 16px; line-height: 1.6;\">Your payment receipt for <strong>{{ $('Generate Receipt HTML').item.json.itemTitle }}</strong> is attached to this email.</p>\n </div>\n <div style=\"text-align: center; padding: 20px 0; color: #aaa; font-size: 12px;\">© 2026 MamVibe. All rights reserved.</div>\n</div>",
"options": {
"attachments": "data"
}
},
"id": "email-buyer",
"name": "Email Receipt",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
920,
300
],
"credentials": {
"smtp": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Webhook: Payment Completed": {
"main": [
[
{
"node": "Generate Receipt HTML",
"type": "main",
"index": 0
}
]
]
},
"Generate Receipt HTML": {
"main": [
[
{
"node": "HTML to File",
"type": "main",
"index": 0
}
]
]
},
"HTML to File": {
"main": [
[
{
"node": "Email Receipt",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"tags": [
{
"name": "MamVibe"
},
{
"name": "Payments"
}
]
}
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.
smtp
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
MamVibe — Payment Receipt PDF. Uses emailSend. Webhook trigger; 4 nodes.
Source: https://github.com/BojidarDermendjiev/MamVibe/blob/06e35c20931e2c2fd5fd9527026957f35f3bd1f4/n8n-workflows/payment-receipt.json — 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.
This workflow receives new consult bookings via webhook (Calendly v2 or a generic scheduling tool), generates timed confirmation and reminder messages, runs each SMS through a separate compliance work
This workflow uses webhooks, Twilio SMS, SMTP email, and a Bar-Compliance Guardrail sub-workflow to request client ratings 48 hours after matters close. It routes replies so 4–5 star clients get a Goo
This workflow automates flight price comparison across multiple booking platforms (Kayak, Skyscanner, Expedia, Google Flights). It accepts natural language queries, extracts flight details using NLP,
Automate the tracking of customer subscription expiry dates, create renewal tasks in ClickUp, and dispatch friendly email reminders before the due date. The workflow listens for incoming subscription
This workflow receives missed-call webhooks from Twilio or CallRail, normalizes call details, and instantly sends a compliant text-back via Twilio when allowed, then emails your firm a delivery-status