Automation library · Data collection

Review electricity bills and flag anomalies with OpenAI

Started by another system calling it, and works across Google Sheets. It hands the judgement calls to OpenAI. 21 steps, 2 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

21 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
3Loops or waits
1Service it connects to

The flow

Starts it 5Model 3Logic 9Service 4

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

  1. 1When New Bill SubmittedWebhookStarts it
  2. 2Every Month Bill RecheckSchedule triggerStarts it
  3. 3OpenAI GPT-4.1 MiniLm Chat Open AiModel
  4. 4Set Bill Context DataSetLogic
  5. 5Bill Data Validator AgentAgentModel
  6. 6Advisory Report Generator AgentAgentModel
  7. 7Wait for Extraction CompletionWaitLogic
  8. 8Format Advisory and RouteCodeLogic
  9. 9Parse Bill ValidationCodeLogic
  10. 10Check Escalation NeedIfLogic
  11. 11Check Bill Data ValidityIfLogic
  12. 12Reply Escalation PendingRespond To WebhookStarts it
  13. 13Wait 24 Hours Before AlertWaitLogic
  14. 14Log Reviewed Report in SheetsGoogle SheetsService
  15. 15Fetch Historical BillsHttp RequestService
  16. 16Reply Invalid Bill DataRespond To WebhookStarts it
  17. 17Send Escalation Alert EmailHttp RequestService
  18. 18Wait for Processing ResultWaitLogic
  19. 19Analyze Consumption AnomalyCodeLogic
  20. 20Log Escalated Report in SheetsGoogle SheetsService
  21. 21Reply Report ReadyRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
21, with 2 branches, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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 21 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 21 steps before you point it at anything that matters.