Templates / Log, validate, and track Brazilian boletos with Gmail, forms, and Google Sheets

Log, validate, and track Brazilian boletos with Gmail, forms, and Google Sheets

Ready for 3.0

by Daniel Carvalho · 20 views · created 2026-11-03 · Invoice Processing

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. One item per attachment (Split Out): splits a list into separate items
  2. Map form fields (Edit Fields (Set)): sets 8 fields: source, rawInput, printedDueDate…
  3. Read boletos for reminders (Google Sheets): read
  4. Keep PDF files (Filter): keeps only the items that match a condition
  5. Decode and check digits (Code): runs custom JavaScript code
  6. Parse due date (Edit Fields (Set)): sets 1 field: dueISO
  7. Read PDF text (Extract from File): extracts data from a file (pdf)
  8. Compare with printed data (Edit Fields (Set)): sets 2 fields: amountCheck, dueDateCheck
  9. Unpaid and due within 3 days (Filter): keeps only the items that match a condition
  10. 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

GmailGoogle Sheets

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (16)

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…

Excerpt from Daniel Carvalho's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.