Resolve ecommerce order exceptions with Anthropic Claude and Slack
Ready for 3.0What this workflow does
This workflow has 24 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects 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).
- Set - Config (Edit Fields (Set)): sets 11 fields: anthropicModel, maxAutoRefundAmount, maxAutoCreditAmount…
- Set - Sample Exception Payload (Edit Fields (Set)): sets 1 field: body
- HTTP Request: calls an HTTP API
- HTTP Request: calls an HTTP API
- HTTP Request: calls an HTTP API
- Merge: merges the data from its input branches
- JS - Build Decision Context (Code): runs custom JavaScript code
- HTTP Request: calls api.anthropic.com (POST)
- JS - Parse & Validate Decision (Code): runs custom JavaScript code
- JS - Log Decision (Pre-Execution) (Code): runs custom JavaScript code
…plus 12 more steps. See the full node list below.
Services it uses
Other Anthropic + Slack templates (204)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - If
n8n-nodes-base.if
From the author
Quick Overview This workflow receives order exception events via a webhook, gathers order/customer/inventory context from your OMS APIs, asks Anthropic Claude to select a single approved resolution action, and then executes that action via payment, shipping,…