Review cannabis orders for compliance with GPT-5 Mini, Gmail and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Gmail and Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Normalize Order Intake (Edit Fields (Set)): sets 7 fields: orderId, dispensaryId, customerType…
- Review Order Compliance (AI Agent): runs an AI agent, with model: GPT-5 Mini Compliance Model; output parser: Compliance Decision Schema
- Shape Compliance Decision (Edit Fields (Set)): sets 11 fields: orderId, dispensaryId, budtenderId…
- Route by Compliance Category (Switch): routes items into 4 branches
- Alert Budtender Order Clear to Fulfill (Gmail): uses Gmail
- Alert Manager of Quantity Limit Breach (Gmail): uses Gmail
- Alert Compliance Officer of METRC Mismatch (Gmail): uses Gmail
- Alert Compliance Officer of Recall Flag (Gmail): uses Gmail
- Combine Alert Outcomes (Merge): merges the data from its input branches
- Append Compliance Review Log (Google Sheets): append
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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 (9)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow receives completed dispensary orders via a webhook, uses OpenAI (GPT-5 Mini) to review recall, METRC tag, and quantity-limit compliance, emails the appropriate staff via Gmail, and appends an audit record to a Google Sheets…