# Detect SaaS subscription leaks with Google Drive, Gmail, OpenAI, and Slack

> Quick overview This workflow runs weekly (or manually) to audit SaaS spend by combining corporate card CSVs from Google Drive, invoice/receipt emails from Gmail parsed with OpenAI, and a SaaS inventory in Google Sheets, then flags potential waste and sends a savings report to Google Sheets, email, and Slack. How it works 1. Runs on a manual trigger or every Monday at 9 AM and loads configuration values like folder IDs, Google Sheet ID, thresholds, report email, and Slack channel. 2. Pulls corporate card statement CSV files from Google Drive, downloads them, parses the rows, and normalizes transactions into a consistent charge format. 3. Fetches recent invoice and receipt emails from Gmail, batches them, and uses OpenAI (gpt-4o-mini) to extract structured SaaS invoice line items. 4. Reads the “SaaS Inventory” tab from Google Sheets and merges it with the card charges and extracted invoice data. 5. Cross-references all sources to detect issues such as zombie charges, duplicate charges, u

- **Domain**: `n8n-workflow-20034.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/20034
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20034.n8n.io
- Documentation: https://n8n.io/workflows/20034
