Manage safety inspections and corrective actions with DeepSeek, Sheets, Gmail and Telegram
Ready for 3.0What this workflow does
This AI workflow has 32 nodes and runs when someone submits an n8n form (“Safety Inspection”) (plus 2 other triggers). Along the way it connects Telegram, Gmail, OpenAI Chat Model and Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“Safety Inspection”) (plus 2 other triggers).
- Validate Inspection Input (If): checks a condition and branches into true / false
- Read Corrective Actions (Google Sheets): uses Google Sheets
- Read Inspections (Google Sheets): uses Google Sheets
- Read Corrective Actions for Digest (Google Sheets): uses Google Sheets
- Normalize Inspection Data (Edit Fields (Set)): sets 5 fields: inspection_id, received_at, inspector…
- Build Invalid Notice (Edit Fields (Set)): sets 1 field: invalid_text
- Compute Overdue (Code): runs custom JavaScript code
- Compute Weekly Stats (Code): runs custom JavaScript code
- AI Analyze Findings (AI Agent): runs an AI agent, with model: DeepSeek Safety Model
- Telegram: uses Telegram
…plus 17 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- n8n Form Trigger
n8n-nodes-base.formTrigger - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Telegram
n8n-nodes-base.telegram - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Split Out
n8n-nodes-base.splitOut - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Safety inspections that actually follow through. Submit findings via form and this workflow turns non-pass results into AI-written corrective actions, logs everything to Sheets, and chases overdue items with daily reminders plus a weekly digest. Nothing stays…