Templates / Orchestrate multi-store order allocation with OpenAI, Postgres, and Slack

Orchestrate multi-store order allocation with OpenAI, Postgres, and Slack

Needs changes

by Oneclick AI Squad ✓ · 2 views · created 2026-09-14 · Engineering, AI Chatbot

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: HTTP Request Tool (legacy), AI Agent v1 (old agent modes). 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 22 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Postgres, HTTP Request, OpenAI Chat Model and Slack.

How it runs

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

  1. Set - Config (Edit Fields (Set)): sets 6 fields: orderId, customerId, items…
  2. Postgres: select
  3. If: checks a condition and branches into true / false
  4. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 4 tools (Tool - Reserve Stock, Tool - Check Store Stock, Tool - Release Reservation, Tool - Get Store Rate Limit Status); memory: Window Buffer Memory
  5. Set - Parse Agent Output (Edit Fields (Set)): sets 1 field: parsedOutput
  6. Postgres: uses Postgres
  7. Postgres: uses Postgres
  8. If: checks a condition and branches into true / false
  9. HTTP - Confirm Order (auto) (HTTP Request): calls an HTTP API (POST)
  10. Slack: uses Slack

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

Services it uses

PostgresHTTP RequestOpenAI Chat ModelSlack

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • HTTP Request Tool (legacy) in Tool - Check Store Stock, Tool - Reserve Stock, Tool - Release Reservation…: replace with HTTP Request node connected to the AI Agent's Tool input.
  • AI Agent v1 (old agent modes) in AI Agent - Inventory Orchestrator (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
HTTP Request Tool (legacy)
Tool - Check Store Stock, Tool - Reserve Stock, Tool - Release Reservation, Tool - Get Store Rate Limit Status
HTTP Request node connected to the AI Agent's Tool input
AI Agent v1 (old agent modes)
AI Agent - Inventory Orchestrator (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (12)

From the author

Quick overview This workflow receives new order webhooks, uses OpenAI to plan and execute inventory reservations across multiple stores via HTTP APIs, logs allocation decisions to Postgres, and either auto-confirms the order in an OMS or requests a manual…

Excerpt from Oneclick AI Squad'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.