GenAiHub

Last checked 24 November 2026 — responded normally.

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

Quick overview

Live
Open / InstallLast updated November 24, 2026

Description

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 the sheet and alert when expected bills are missing. How it works Runs on two schedules: hourly to process incoming bill emails and daily to check for missing expected bills. Searches Gmail for matching emails, downloads PDF attachments, and skips files already logged in the Google Sheets Bills tab. Extracts text from each PDF and sends readable documents to OpenAI to return structured bill data (supplier, dates, currency, totals, category, and confidence). Validates and classifies each document as OK, Needs review, Duplicate, or Ignored by checking missing fields, total consistency, AI confidence, duplicates, and unusual price jumps against prior bills. Appends one row per processed file to the Google Sheets Bills tab and sends a Telegram message for any item that needs review, is a duplicate, or (optionally) every OK bill. Each morning, reads approved bills from Google Sheets to compute per-supplier billing frequency and usual totals, updates the Suppliers tab, and sends a Telegram alert once per overdue expected bill. Setup Connect credentials for Gmail, Google Sheets, Telegram, and OpenAI (Chat Completions) used by the workflow. Create a Google Sheets spreadsheet with Bills and Suppliers tabs using the headers expected by the append/update steps, and paste your spreadsheet URL/ID into all Google Sheets nodes. In the Configuration step, set your Telegram chat ID, timezone, default currency, and adjust the Gmail search query and processing limits as needed. Ensure the Gmail query matches only bill-related emails with PDF attachments, and add any sender domains to ignoreSenders if required. Review rows marked Needs review in the Bills tab (for scanned PDFs or low-confidence/missing data) and set the Status to Reviewed once corrected. An n8n automation workflow template by Gerson Brito.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Gerson Brito

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • google-sheets
  • telegram
  • gmail
  • code
  • basic-llm-chain
  • openai-chat-model
  • structured-output-parser

Capabilities

  • 7 nodes

Information

TypeWorkflow
Sourcen8n
AddedNovember 10, 2026

Comments

?

Others in the same category, ranked by how often they are opened.