Templates / Route ecommerce risk and inventory decisions with Claude, Postgres, and Slack

Route ecommerce risk and inventory decisions with Claude, Postgres, and Slack

Ready for 3.0

by Oneclick AI Squad ✓ · 4 views · created 2026-09-14 · CRM, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 26 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Postgres and Slack. It also calls api.anthropic.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Set - Config (Edit Fields (Set)): sets 7 fields: commerceApiBaseUrl, anthropicModel, lookbackDays…
  2. Set - Sample Order Risk Event (Edit Fields (Set)): sets 1 field: body
  3. Set - Sample Inventory Pricing Event (Edit Fields (Set)): sets 1 field: body
  4. JS - Normalize & Classify Event (Code): runs custom JavaScript code
  5. Switch: routes items into 2 branches
  6. HTTP Request: calls an HTTP API
  7. HTTP Request: calls an HTTP API
  8. HTTP Request: calls an HTTP API
  9. HTTP Request: calls an HTTP API
  10. HTTP Request: calls an HTTP API

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

Services it uses

PostgresSlack

HTTP calls to: api.anthropic.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Quick overview This workflow receives e-commerce order-risk and inventory/pricing events via a webhook, fetches supporting context from your commerce APIs, asks Anthropic Claude to recommend an action with confidence, optionally auto-executes low-risk…

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.