Templates / Score cold-chain batch recall risk from IoT excursions with Anthropic and email alerts

Score cold-chain batch recall risk from IoT excursions with Anthropic and email alerts

Needs changes

by Oneclick AI Squad ✓ · 2 views · created 2026-07-27 · Engineering, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 15 nodes and runs on a schedule (every 30 minutes). Along the way it connects Anthropic Chat Model.

How it runs

Trigger: On a schedule (every 30 minutes).

  1. Fetch Active Shipments & Route History (HTTP Request): calls an HTTP API
  2. Fetch Live IoT Sensor Readings (HTTP Request): calls an HTTP API
  3. Merge: merges the data from its input branches
  4. JS - Build Cold-Chain Excursion Profile (Code): runs custom JavaScript code
  5. JS - Run Spoilage Risk Monte Carlo (Code): runs custom JavaScript code
  6. Wait: pauses before continuing
  7. AI - Generate Batch Risk Classification (AI Agent): runs an AI agent, with model: Anthropic - Risk Classification Model
  8. JS - Parse AI Output & Format Predictive Recall Report (Code): runs custom JavaScript code
  9. Wait: pauses before continuing
  10. If: checks a condition and branches into true / false

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

Services it uses

Anthropic Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI - Generate Batch Risk Classification (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI - Generate Batch Risk Classification (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (9)

From the author

Quick overview This workflow receives cold-chain temperature excursion events via webhook, enriches them with shipment route history from a logistics API, uses Anthropic Claude to predict batch compromise risk, then formats and emails a predictive recall…

Excerpt from Oneclick AI Squad'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.