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

> 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 notification. How it works 1. Runs every week on a schedule trigger. 2. Reads the latest invoice exception rows from Google Sheets and groups them by exception reason, calculating counts, total amounts, and listing invoice details. 3. Sends the grouped exception summary to a Groq chat model to produce a structured root-cause analysis by exception category. 4. Uses a second Groq chat model to generate structured, category-specific upstream process fixes based on the root-cause analysis. 5. Builds a Markdown report from the recommended fixes and converts it into native Notion block JSON. 6. Creates a new page in a Notion database, injects the generated blocks via the Notion API, and sends a Slack message to notify the team that the report is rea

- **Domain**: `n8n-workflow-20455.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/20455
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20455.n8n.io
- Documentation: https://n8n.io/workflows/20455
