Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Send daily CFO invoice health reports from Google Sheets or QuickBooks via Slack
Runs daily on Google Sheets or QuickBooks invoice data, computes AP KPIs and SLA risks, and sends a Groq-written CFO briefing via Slack, Gmail and Notion.
What it does
# Invoice Lifecycle Intelligence Dashboard This workflow provides an end-to-end automation pipeline that runs daily to monitor your accounts payable lifecycle, compute operational KPIs, detect bottlenecks and SLA risks, and deliver a CFO-ready executive briefing. It supports dual data sources (Google Sheets or QuickBooks), applies custom JavaScript analytics for health scoring and forecasting, and uses a Groq-powered LLM agent to generate structured executive insights. Based on alert severity, it routes closed-loop actions via Slack, Gmail, and Notion while maintaining a full audit trail in Google Sheets. ## How it Works: 1. Runs on a daily schedule (9 AM), loading centralized runtime config (thresholds, weights, contact routes, data source mode). 2. Fetches active invoices from Google Sheets or QuickBooks, plus reference data (vendor SLAs, approvers, KPI history). 3. Normalizes and merges invoice records into a unified schema with vendor SLA enrichment. 4. Calculates KPIs, health score, bottleneck approvers, cash-at-risk, and SLA escalation candidates. 5. Analyzes trends, 7-day forecasts, anomaly flags, and builds a prioritized P1–P4 action queue. 6. Sends enriched metrics to a Groq LangChain agent to produce a structured CFO executive summary (JSON). 7. Logs dashboard metrics and SLA queue rows to Google Sheets, syncs brief to Notion, and routes alerts: - Critical: Slack alert to AP lead channel. - Bottleneck: Slack ping to approver + Notion remediation task. - Stable: HTML email + PDF report to CFO via Gmail. ## Setup Steps: * Runtime Config: Set dataSourceMode (sheets or quickbooks), health thresholds, SLA defaults, forecast horizon, and alert contact fields in Load Runtime Config. * Google Sheets: Connect OAuth and point to the workbook with invoice, reference, dashboard, and sla_queue tabs. * QuickBooks (optional): Authenticate QuickBooks and set dataSourceMode to quickbooks for live invoice ingestion. * LLM Integration: Provide your Groq API key for the Insights model powering the CFO agent. * Notion: Connect Notion and configure the Executive Briefs database for daily sync and remediation tasks. * Slack & Gmail: Connect Slack (AP channel + approver pings) and Gmail (CFO report delivery). * PDF Generation: Configure html2pdf API credentials for the executive PDF attachment. * Trigger Scheduling: Adjust the schedule
The steps
- Trigger: Daily at 9 AM
- Load Runtime Config
- Switch: Data Source Mode
- Fetch Active Invoices
- Fetch Reference Data
- QuickBooks: Get Invoices
- Normalize & Merge Invoices
- Calculate KPIs & Bottlenecks
- Analyze Trends, Forecast & Anomalies
- Build Prioritized Action Queue
- Generate CFO Executive Summary
- Insights model
- Parse AI Node
- Set Dashboard URL
26 steps in total.
Similar automations
Documents, PDF & OCRAnalyze invoice exceptions weekly and publish RCA reports with Groq and Notion16 stepsEmail AutomationTriage and route Gmail leads with Groq, Notion CRM, and Twilio calls16 stepsData Sync & ETLSave and categorize N26 transactions in Notion using Groq35 stepsFinance, Invoices & AccountingCreate a QuickBooks Invoice for New Onfleet Tasks2 steps