Generate and email PDF invoices from Google Sheets with Orshot and Gmail
UnknownWhat this workflow does
This workflow has 16 nodes and runs on a schedule (every 15 minutes). Along the way it connects Google Sheets, Gmail, Google Drive and Orshot (community).
How it runs
Trigger: On a schedule (every 15 minutes).
- Get invoices marked Ready (Google Sheets): uses Google Sheets
- Get line items (Google Sheets): uses Google Sheets
- Build invoice data (Code): runs custom JavaScript code
- Invoice data valid? (If): checks a condition and branches into true / false
- Render invoice PDF (Orshot): https://api.orshot.com/v1/studio/render
- Get PDF link (Code): runs custom JavaScript code
- Update invoice row (Google Sheets): update
- PDF rendered? (If): checks a condition and branches into true / false
- Download PDF (HTTP Request): calls an HTTP API
- Email invoice (Gmail): uses Gmail
…plus 3 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Drive + Google Sheets templates (720) · Other Gmail + Google Drive templates (465)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @thelifeofrishi/n8n-nodes-orshot is verified or supports 3.0 (used in Render invoice PDF).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Orshot
@thelifeofrishi/n8n-nodes-orshot.orshot - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Google Drive
n8n-nodes-base.googleDrive - Merge
n8n-nodes-base.merge
From the author
Quick overview This workflow runs every 15 minutes to find invoices marked Ready in Google Sheets, builds totals from matching line items, renders a PDF invoice with Orshot, emails it via Gmail, saves a copy to Google Drive, and writes the delivery status and…