Generate and email PDF invoices from Google Sheets with Documol
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets. It also calls api.documol.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Read Google Sheets Rows (Google Sheets): read
- Use Sample Rows or Sheet Rows (Code): runs custom JavaScript code
- Build One Invoice per Order (Code): runs custom JavaScript code
- Generate PDF with Documol (HTTP Request): calls api.documol.com (POST)
- Did Documol Generate a PDF? (If): checks a condition and branches into true / false
- Download Finished PDF (HTTP Request): calls an HTTP API
- Download Sample PDF (Code): runs custom JavaScript code
- Email Invoice via SMTP (Send Email): sends an email over SMTP
Services it uses
HTTP calls to: api.documol.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview Turn Google Sheets order rows into branded PDF invoices with Documol. Download a real sample without a key, then connect your own Documol account to generate fresh invoices. An optional SMTP step sends each finished PDF as an attachment. How it…