Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Trigger: Daily at 9 AM
  2. Load Runtime Config
  3. Switch: Data Source Mode
  4. Fetch Active Invoices
  5. Fetch Reference Data
  6. QuickBooks: Get Invoices
  7. Normalize & Merge Invoices
  8. Calculate KPIs & Bottlenecks
  9. Analyze Trends, Forecast & Anomalies
  10. Build Prioritized Action Queue
  11. Generate CFO Executive Summary
  12. Insights model
  13. Parse AI Node
  14. Set Dashboard URL

26 steps in total.

Similar automations