Create human-reviewed personalized PDFs from Stripe payments using OpenAI
Ready for 3.0What this workflow does
This workflow has 18 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Sheets, Gmail and Slack. It also calls api.openai.com and api.pdfshift.io over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Set Payment Details (Edit Fields (Set)): sets 5 fields: stripe_event, payment_id, email…
- Set Approval Payload (Edit Fields (Set)): sets 3 fields: payment_id, approved, email
- Check Customer Email (If): checks a condition and branches into true / false
- Check Approval Status (If): checks a condition and branches into true / false
- Fetch Orders from Sheets (Google Sheets): uses Google Sheets
- Set Email Missing Status (Edit Fields (Set)): sets 1 field: status
- Email Final PDF to Customer (Gmail): uses Gmail
- Set Not Approved Status (Edit Fields (Set)): sets 1 field: status
- Find Order by Email (Code): runs custom JavaScript code
- Update Review Status in Sheets (Google Sheets): append or update
…plus 6 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
HTTP calls to: api.openai.com, api.pdfshift.io
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow receives Stripe payment webhooks, looks up the customer’s order in Google Sheets, generates personalized HTML content with OpenAI, converts it to a PDF using PDFShift, then queues the request for human approval and delivers the…