Templates / Send crowd safety SMS reroute alerts with OpenAI, Twilio, and Google Sheets

Send crowd safety SMS reroute alerts with OpenAI, Twilio, and Google Sheets

Needs changes

by Oneclick AI Squad ✓ · 20 views · created 2026-07-08 · Miscellaneous, AI Chatbot

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 20 nodes and runs on a schedule (every minute). Along the way it connects Anthropic Chat Model. It also calls sheets.googleapis.com over HTTP.

How it runs

Trigger: On a schedule (every minute).

  1. Fetch Live Crowd Density Data (HTTP Request): calls an HTTP API
  2. Fetch Active Incident Reports (HTTP Request): calls an HTTP API
  3. JS - Rename Density Values (Code): runs custom JavaScript code
  4. JS - Rename Incident Values (Code): runs custom JavaScript code
  5. Merge: merges the data from its input branches
  6. JS - Merge Zone Data & Calculate Risk Scores (Code): runs custom JavaScript code
  7. Split Out: splits a list into separate items
  8. JS - Format Heatmap Log Record (Code): runs custom JavaScript code
  9. Filter: keeps only the items that match a condition
  10. Wait: pauses before continuing

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

Services it uses

Anthropic Chat Model

HTTP calls to: sheets.googleapis.com

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 Rerouting Suggestion (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 Rerouting Suggestion (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 ingests crowd density and incident reports via webhook or a 5‑minute schedule, assesses risk with Python thresholds, uses OpenAI to generate a short rerouting recommendation, then sends an SMS via Twilio and logs each alert to a…

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.