Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Audit and cancel unused SaaS seats with Google Sheets, OpenAI and Slack
On a schedule, it monitors systems with OpenAI / ChatGPT using Google Sheets, Slack, Zoom.
What it does
## 💰 SaaS Subscription Audit & Auto-Cancel Unused Seats ### How it works Every week, the workflow reads your subscription inventory from Google Sheets and loops through each seat. Per-platform HTTP calls fetch real usage data — Google Workspace, Slack, Zoom, or a generic SaaS API. A code node normalises the raw responses into a uniform structure, then GPT-4o-mini assesses whether the seat is unused and what action to take. Unused seats trigger a cost-threshold check: high-cost seats (above a configurable dollar threshold) require a Slack approval before cancellation — the workflow waits for a manager to approve or reject via inline button. Low-cost unused seats are cancelled directly without asking. Every decision — active, cancelled, or rejected — is logged to the Audit Log sheet. After all seats are processed, a Slack summary report is posted with the run totals. ### Setup steps 1. Connect Google Sheets OAuth2 and create a sheet with tabs: Subscriptions, Audit Log. Replace YOUR_GOOGLE_SHEET_ID in all four Sheets nodes. 2. Connect OpenAI API to the AI assessment node. 3. Connect Slack OAuth2 and replace YOUR_SLACK_CHANNEL_ID in the approval request, summary, and error nodes. 4. Add real API credentials and endpoints to the four platform usage nodes (Google Workspace, Slack, Zoom, Generic). 5. Set the high-cost threshold in the Is High Cost Seat? node to match your policy. 6. Activate the weekly schedule trigger.
The steps
- Weekly Audit Trigger
- Get Subscription Inventory
- Loop Over Subscriptions
- Route By Platform
- Google Workspace - Get Last Login
- Slack - Get User Activity
- Zoom - Get User Activity
- Generic SaaS - Get Usage
- Normalize Usage Data
- Parse AI Decision
- Is Unused Seat?
- Log Active Seat
- Is High Cost Seat?
- Request Approval - Slack
24 steps in total.
Similar automations