Automation library · Chat assistants

Audit and cancel unused SaaS seats with Google Sheets

Started by a clock, and works across Google Sheets and Slack. It hands the judgement calls to OpenAI. 24 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 2Model 1Logic 9Service 12

The steps in the order they run, from what starts it.

  1. 1Weekly Audit TriggerSchedule triggerStarts it
  2. 2Error TriggerError triggerStarts it
  3. 3Get Subscription InventoryGoogle SheetsService
  4. 4Send Failure Alert - SlackSlackService
  5. 5Loop Over SubscriptionsSplit In BatchesLogic
  6. 6Aggregate Run SummaryCodeLogic
  7. 7Route By PlatformSwitchLogic
  8. 8Send Summary Report - SlackSlackService
  9. 9Google Workspace - Get Last LoginHttp RequestService
  10. 10Slack - Get User ActivityHttp RequestService
  11. 11Zoom - Get User ActivityHttp RequestService
  12. 12Generic SaaS - Get UsageHttp RequestService
  13. 13Normalize Usage DataCodeLogic
  14. 14AI - Assess Seat Usage & Recommend ActionOpen AiModel
  15. 15Parse AI DecisionCodeLogic
  16. 16Is Unused Seat?IfLogic
  17. 17Is High Cost Seat?IfLogic
  18. 18Log Active SeatGoogle SheetsService
  19. 19Request Approval - SlackSlackService
  20. 20Cancel Seat Via APIHttp RequestService
  21. 21Wait For ApprovalWaitLogic
  22. 22Log CancellationGoogle SheetsService
  23. 23Approved?IfLogic
  24. 24Log Rejected CancellationGoogle SheetsService

How it's built

Starts on
A clock
Steps
24, with 4 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 24 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 24 steps before you point it at anything that matters.