Automation library · Alerts and monitoring

Automated QuickBooks sales anomaly detector

Started by a clock, and works across Email. 21 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 1Logic 13Service 7

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

  1. 1Run_Every_MorningSchedule triggerStarts it
  2. 2Create_Date_RangeSetLogic
  3. 3Fetch_30Day_InvoicesQuickbooksService
  4. 4Fetch_30Day_Sales_ReceiptsHttp RequestService
  5. 5Fetch_Yesterday_InvoicesQuickbooksService
  6. 6Fetch_Yesterday_Sales_ReceiptsHttp RequestService
  7. 7Filter_Paid_30Day_InvoicesFilterLogic
  8. 8Total_30Day_Sales_ReceiptsCodeLogic
  9. 9Filter_Paid_Yesterday_InvoicesFilterLogic
  10. 10Extract_Yesterday_Sales_ReceiptsCodeLogic
  11. 11Merging_30Day_Invoices_Sales_ReceiptsMergeLogic
  12. 12Merging_Yesterday_Invoices_Sales_ReceiptsMergeLogic
  13. 13Sum_30Day_TotalsSummarizeService
  14. 14Sum_Yesterday_TotalsSummarizeService
  15. 15Calculate_30Day_AverageSetLogic
  16. 16Combine_Final_TotalsMergeLogic
  17. 17Combining_Overall_Invoices_Sales_ReceiptsCodeLogic
  18. 18Calculate_DeviationSetLogic
  19. 19Check_If_AnomalyIfLogic
  20. 20Prepare_Email_ContentSetLogic
  21. 21Send_Alert_EmailEmail SendService

How it's built

Starts on
A clock
Steps
21, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Email
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Email account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

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.