Templates / Order processing with Google Sheets and Slack: inventory checks and alerts

Order processing with Google Sheets and Slack: inventory checks and alerts

Needs changes

by Satoshi ✓ · 710 views · created 2025-11-17 · CRM

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets and Slack.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Check Order (Function): runs custom JavaScript (legacy Function node)
  2. Request Info (Function): runs custom JavaScript (legacy Function node)
  3. Item and quantity (Function): runs custom JavaScript (legacy Function node)
  4. Get Inventories (Google Sheets): lookup
  5. Mapping data (Merge): merges the data from its input branches
  6. enough stock? (If): checks a condition and branches into true / false
  7. Create Invoice (Function): runs custom JavaScript (legacy Function node)
  8. Slack: uses Slack
  9. Slack: uses Slack
  10. create data logs (Stock shortage) (Function): runs custom JavaScript (legacy Function node)

…plus 2 more steps. See the full node list below.

Services it uses

Google SheetsSlack

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Check Order, Request Info, Item and quantity…: replace with Code node, mode 'Run Once for All Items'.
Removed in 3.0Replace with
Function (legacy)
Check Order, Request Info, Item and quantity, Create Invoice, create data logs (success), create data logs (Stock shortage)
Code node, mode 'Run Once for All Items'

Nodes used (6)

From the author

Overview A cornerstone of your Order Management System, this workflow ensures seamless inventory control through fully automated stock checks, leading to a direct reduction in operational costs. It provides real-time alerts to the responsible personnel,…

Excerpt from Satoshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.