Send women’s safety emergency alerts with GPT-4o-mini, Telegram and Google Sheets
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 7 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Telegram and Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Generate Maps Link (Function): runs custom JavaScript (legacy Function node)
- Build Timestamped Message (Function): runs custom JavaScript (legacy Function node)
- AI Agent: runs an AI agent, with model: OpenAI Chat Model
- Send Alert to Telegram Group (Telegram): uses Telegram
- Log Incident to Google Sheets (Google Sheets): append
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Generate Maps Link, Build Timestamped Message: replace with Code node, mode 'Run Once for All Items'.
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Generate Maps Link, Build Timestamped Message | Code node, mode 'Run Once for All Items' |
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Function
n8n-nodes-base.function - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Telegram
n8n-nodes-base.telegram - Google Sheets
n8n-nodes-base.googleSheets
From the author
📘 Description This workflow acts as a real-time emergency alert system designed for personal safety scenarios. It receives distress signals via webhook, enriches the data with a live Google Maps link and timestamp, generates a clear AI-formatted alert…