Templates / Analyze invoice exceptions weekly and publish RCA reports with Groq and Notion

Analyze invoice exceptions weekly and publish RCA reports with Groq and Notion

Ready for 3.0

by WeblineIndia ✓ · 7 views · created 2026-10-05 · 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 16 nodes and runs on a schedule (every week at 09:00). Along the way it connects Google Sheets, Groq Chat Model, Notion and Slack.

How it runs

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

  1. Fetch: Invoice Exceptions (Google Sheets): uses Google Sheets
  2. Group Exceptions (Code): runs custom JavaScript code
  3. AI: Root Cause Analysis (Basic LLM Chain): sends a prompt to an LLM, with model: LLM: Groq RCA; output parser: Parser: RCA Output
  4. Extract: RCA Data (Edit Fields (Set)): sets 1 field: root_cause_analysis
  5. AI: Recommend Fixes (Basic LLM Chain): sends a prompt to an LLM, with model: LLM: Groq Fixes; output parser: Parser: Fixes Output
  6. Extract: Fixes Data (Edit Fields (Set)): sets 4 fields: Missing Receipt, Price Variance, Tax Mismatch…
  7. Generate Markdown Report (Code): runs custom JavaScript code
  8. Convert Markdown to Blocks (Code): runs custom JavaScript code
  9. Notion: work with database page
  10. Notion: Inject Blocks API (HTTP Request): calls an HTTP API (PATCH)

…plus 1 more step. See the full node list below.

Services it uses

Google SheetsGroq Chat ModelNotionSlack

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 weekly to pull invoice exception data from Google Sheets, uses Groq-hosted LLMs to generate root-cause analysis and upstream process fixes, then publishes a formatted report to a Notion database and posts a Slack…

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.