Templates / Review cannabis orders for compliance with GPT-5 Mini, Gmail and Google Sheets

Review cannabis orders for compliance with GPT-5 Mini, Gmail and Google Sheets

Ready for 3.0

by Swapnil Mandloi ✓ · 14 views · created 2026-09-02

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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.

  1. Normalize Order Intake (Edit Fields (Set)): sets 7 fields: orderId, dispensaryId, customerType…
  2. Review Order Compliance (AI Agent): runs an AI agent, with model: GPT-5 Mini Compliance Model; output parser: Compliance Decision Schema
  3. Shape Compliance Decision (Edit Fields (Set)): sets 11 fields: orderId, dispensaryId, budtenderId…
  4. Route by Compliance Category (Switch): routes items into 4 branches
  5. Alert Budtender Order Clear to Fulfill (Gmail): uses Gmail
  6. Alert Manager of Quantity Limit Breach (Gmail): uses Gmail
  7. Alert Compliance Officer of METRC Mismatch (Gmail): uses Gmail
  8. Alert Compliance Officer of Recall Flag (Gmail): uses Gmail
  9. Combine Alert Outcomes (Merge): merges the data from its input branches
  10. Append Compliance Review Log (Google Sheets): append

Services it uses

OpenAI Chat ModelGmailGoogle Sheets

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)

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…

Excerpt from Swapnil Mandloi'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.