Templates / Route cold-chain lot release decisions with OpenAI, Gmail and Telegram

Route cold-chain lot release decisions with OpenAI, Gmail and Telegram

Ready for 3.0

by Swapnil Mandloi ✓ · 1 views · created 2026-09-29 · Document Extraction, AI Summarization

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-10-19.

What this workflow does

This AI workflow has 16 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Google Drive, Google Sheets and Telegram and 1 more.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Normalise Lot Evidence (Edit Fields (Set)): sets or maps fields
  2. Fetch Stability Envelope (HTTP Request): calls an HTTP API (POST)
  3. Extract Excursion Facts (Information Extractor): extracts structured fields from text with AI, with model: Provide Extraction Model
  4. Compute Thermal Debt Score (Code): runs custom JavaScript code
  5. Check Immediate Quarantine (If): checks a condition and branches into true / false
  6. Create Quality Case (HTTP Request): calls an HTTP API (POST)
  7. Wait: waits 30 minutes
  8. Check Destroy Threshold (If): checks a condition and branches into true / false
  9. Draft Disposition Rationale (Basic LLM Chain): sends a prompt to an LLM, with model: Provide Drafting Model
  10. Alert Quality Leadership (Telegram): uses Telegram

…plus 3 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle DriveGoogle SheetsTelegramGmail

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 (13)

From the author

Quick overview Receives cold-chain excursion telemetry via webhook, enriches it via an external stability API, and uses OpenAI to extract facts and draft disposition rationales. It routes lots for release, review, quarantine, or disposal while archiving…

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.