n8n Workflow: Route Brewery Orders via Webhook, Sheets & Gmail
n8n Workflow: Route Brewery Orders via Webhook, Sheets & Gmail
Regular price
£34.99
Regular price
£34.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
⚡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
n8n Workflow: Route Brewery Orders via Webhook, Sheets & Gmail
Regular price
£34.99
Regular price
£34.99
Sale price
Unit price
/
per
Route Brewery Orders Automatically—Webhook In, Smart Compliance Out
This n8n workflow receives brewery retailer orders via Webhook, checks territory and allocation rules in Google Sheets, uses OpenAI to apply three-tier compliance logic, then sends the right email via Gmail and logs every decision for audit-ready tracking.
What this workflow does
- Receives retailer orders as a POST request to a webhook endpoint.
- Normalizes order fields into consistent data points, including retailer, state, license type, SKU category, quantity, and delivery date.
-
Looks up territory & allocation in a Google Sheets tab named “Territory & Allocation Map” using
retailerIdto find:- assigned territory state
- SKU license restriction rule
- limited-release cap remaining
-
Evaluates a structured compliance decision with an OpenAI chat model, applying rules for:
- territory exclusivity
- license-type eligibility
- limited-release allocation caps
-
Routes outcomes by decision and sends a Gmail notification:
- to sales ops for approval/allocation-cap issues
- to compliance for territory conflicts and license ineligibility
- Appends a full decision record to Google Sheets “Distribution Order Log” for audit history.
Use cases
- Automatically triage incoming retailer orders that must respect territory exclusivity and SKU license restrictions.
- Handle limited-release SKUs by validating against caps remaining before approvals are sent to sales ops.
- Create an audit trail of every compliance decision in a central Google Sheets log.
Technical details
- n8n nodes: webhook, set, merge, switch, sticky note, gmail
- Integrations: Google Sheets (Territory & Allocation Map lookup + Distribution Order Log append), Gmail notifications
- AI logic: OpenAI chat model to produce a structured decision for compliance routing
