Templates / Track supplier bills and missing invoices with Gmail, OpenAI, Sheets and Telegram

Track supplier bills and missing invoices with Gmail, OpenAI, Sheets and Telegram

Ready for 3.0

by Gerson Brito · 0 views · created 2026-11-04 · Invoice Processing, AI Summarization

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 AI workflow has 27 nodes and runs on a schedule (every hour) (plus 1 other trigger). Along the way it connects Gmail, Google Sheets, OpenAI Chat Model and Telegram.

How it runs

Trigger: On a schedule (every hour) (plus 1 other trigger).

  1. Configuration (Edit Fields (Set)): sets 16 fields: gmailSearch, telegramChatId, timezone…
  2. Morning run? (If): checks a condition and branches into true / false
  3. Read all bills (Google Sheets): uses Google Sheets
  4. Find bill emails (Gmail): get many
  5. Read suppliers (Google Sheets): uses Google Sheets
  6. Read bills ledger (Google Sheets): uses Google Sheets
  7. Build supplier profiles (Code): runs custom JavaScript code
  8. List new PDF attachments (Code): runs custom JavaScript code
  9. Route daily results (Switch): routes items into 2 branches
  10. Extract PDF text (Extract from File): extracts data from a file (pdf)

…plus 13 more steps. See the full node list below.

Services it uses

GmailGoogle SheetsOpenAI Chat ModelTelegram

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 (13)

From the author

Quick overview This workflow runs hourly to capture supplier bill PDFs from Gmail, extract key fields with OpenAI, and log them to Google Sheets with Telegram alerts for duplicates or anomalies, then runs every morning to learn supplier billing rhythms from…

Excerpt from Gerson Brito'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.