The flow
Starts it 2Logic 5Service 8
The steps in the order they run, from what starts it.
- 1Receive customer support requestWebhookStarts it
- 2Fetch order details from ShopifyHttp RequestService
- 3Fetch inventory levels from ShopifyHttp RequestService
- 4Merge order and inventory dataMergeLogic
- 5AI agent analyzes query and classifies intentCodeLogic
- 6Route by customer intentSwitchLogic
- 7Process refund via Shopify APIHttp RequestService
- 8Store interaction in PostgreSQLPostgresService
- 9Escalate complex cases to human agentHttp RequestService
- 10Send low stock alert to teamHttp RequestService
- 11Build final customer responseCodeLogic
- 12Send immediate webhook acknowledgementRespond To WebhookStarts it
- 13Email AI response to customerEmail SendService
- 14Post interaction summary to SlackHttp RequestService
- 15Log success and track agent statisticsCodeLogic
How it's built
- Starts on
- Another system calling it
- Steps
- 15, with 1 branch
- Size
- Medium: a working afternoon
- Connects to
- Email, Postgres
- Model
- None. This is plumbing, not judgement
Questions
What does it need to run?
An n8n account, plus your own Email and Postgres accounts. You connect your own accounts after importing it; none are included.
What starts it?
It starts on another system calling it.
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?
Plan an afternoon. 15 steps is enough that you should read each one before running it.
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 itNothing 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 15 steps before you point it at anything that matters.