Templates / Detect early payment invoice opportunities with Groq and Google Sheets

Detect early payment invoice opportunities with Groq and Google Sheets

Ready for 3.0

by WeblineIndia ✓ · 27 views · created 2026-07-14 · 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-10-19.

What this workflow does

This AI workflow has 15 nodes and runs on a schedule (every day at 09:00). Along the way it connects Groq Chat Model, Google Sheets and Gmail. It also calls api.npoint.io over HTTP.

How it runs

Trigger: On a schedule (every day at 09:00).

  1. Fetch Invoice Data (HTTP Request): calls api.npoint.io
  2. Calculate Discount ROI (Code): runs custom JavaScript code
  3. Check Discount Eligibility (If): checks a condition and branches into true / false
  4. Prepare Invoice Data (Edit Fields (Set)): sets 8 fields: vendor, amount, savings…
  5. Mark Expired Invoices (Code): runs custom JavaScript code
  6. AI Payment Decision Engine (AI Agent): runs an AI agent, with model: Groq AI Model
  7. Save Expired Invoice Log (Google Sheets): append
  8. Clean AI Response (Code): runs custom JavaScript code
  9. Save Eligible Invoice Log (Google Sheets): append
  10. Check High Priority Opportunity (If): checks a condition and branches into true / false

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

Services it uses

Groq Chat ModelGoogle SheetsGmail

HTTP calls to: api.npoint.io

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.

Nodes used (10)

From the author

Quick Overview This workflow runs daily to fetch invoice data from an HTTP endpoint, calculate early-payment savings and annualized ROI, and use Groq (Llama 3.3) to prioritize eligible discounts. It logs eligible and expired invoices to Google Sheets and…

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