Automation library · E-commerce

Manage inventory reorders with Google Sheets and Slack

Started by a clock, and works across Gmail, Google Sheets and Slack. 22 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 2Logic 11Service 9

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

  1. 1When ScheduledSchedule triggerStarts it
  2. 2When Slack Message ReceivedSlack triggerStarts it
  3. 3Fetch Product InventoryGoogle SheetsService
  4. 4Fetch Vendor CatalogGoogle SheetsService
  5. 5If Approval Came from the valid authority user?IfLogic
  6. 6Prepare Product Stock DataSetLogic
  7. 7Prepare Vendor Delivery DataSetLogic
  8. 8Fetch Slack Thread RepliesSlackService
  9. 9Merge Inventory and VendorsMergeLogic
  10. 10Parse Slack Message DataCodeLogic
  11. 11Calculate Reorder NeedsCodeLogic
  12. 12Get Reorder Sheet RowGoogle SheetsService
  13. 13If Reorder NeededIfLogic
  14. 14Send Email via GmailGmailService
  15. 15Format Reorder DataSetLogic
  16. 16Update Reorder Status in SheetsGoogle SheetsService
  17. 17Aggregate Reorder ItemsAggregateLogic
  18. 18Fetch Existing ReordersGoogle SheetsService
  19. 19Filter Reorder RecordsCodeLogic
  20. 20Prepare Reorder PayloadSetLogic
  21. 21Upsert Reorder in SheetsGoogle SheetsService
  22. 22Post Reorder to SlackSlackService

How it's built

Starts on
A clock
Steps
22, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Slack accounts. 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 22 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 22 steps before you point it at anything that matters.