Log, validate, and track Brazilian boletos with Gmail, forms, and Google Sheets
Ready for 3.0What this workflow does
This workflow has 30 nodes and runs on Gmail events (plus 2 other triggers). Along the way it connects Gmail and Google Sheets.
How it runs
Trigger: On Gmail events (plus 2 other triggers).
- One item per attachment (Split Out): splits a list into separate items
- Map form fields (Edit Fields (Set)): sets 8 fields: source, rawInput, printedDueDate…
- Read boletos for reminders (Google Sheets): read
- Keep PDF files (Filter): keeps only the items that match a condition
- Decode and check digits (Code): runs custom JavaScript code
- Parse due date (Edit Fields (Set)): sets 1 field: dueISO
- Read PDF text (Extract from File): extracts data from a file (pdf)
- Compare with printed data (Edit Fields (Set)): sets 2 fields: amountCheck, dueDateCheck
- Unpaid and due within 3 days (Filter): keeps only the items that match a condition
- Find digitable line in text (Edit Fields (Set)): sets 8 fields: source, lineCandidates, printedDueDate…
…plus 17 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102)
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 (16)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Split Out
n8n-nodes-base.splitOut - Filter
n8n-nodes-base.filter - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Remove Duplicates
n8n-nodes-base.removeDuplicates - Google Sheets
n8n-nodes-base.googleSheets - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Sort
n8n-nodes-base.sort - Aggregate
n8n-nodes-base.aggregate - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow captures Brazilian boleto payment slips from Gmail PDF attachments or an n8n form, validates and decodes their barcode data, logs results to Google Sheets, and sends Gmail reminders for unpaid boletos that are overdue or due…