# Manage safety inspections and corrective actions with DeepSeek: n8n workflow

> Started by someone submitting a form, and works across Gmail, Google Sheets and Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/manage-safety-inspections-and-corrective-actions-with-deepse (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Manage safety inspections and corrective actions with DeepSeek

Started by someone submitting a form, and works across Gmail, Google Sheets and Telegram. It hands the judgement calls to OpenAI. 32 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmanage-safety-inspections-and-corrective-actions-with-deepse)

**32 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 3 Model 4 Logic 12 Service 13

The steps in the order they run, from what starts it.

- 1 **Safety Inspection Form** Form trigger *Starts it*
- 2 **DeepSeek Safety Model** Lm Chat Open Ai *Model*
- 3 **Daily Sweep Trigger** Schedule trigger *Starts it*
- 4 **Weekly Digest Trigger** Schedule trigger *Starts it*
- 5 **DeepSeek Digest Model** Lm Chat Open Ai *Model*
- 6 **Validate Inspection Input** If *Logic*
- 7 **AI Analyze Findings** Agent *Model*
- 8 **Read Corrective Actions** Google Sheets *Service*
- 9 **Read Inspections** Google Sheets *Service*
- 10 **Read Corrective Actions for Digest** Google Sheets *Service*
- 11 **AI Write Weekly Digest** Agent *Model*
- 12 **Normalize Inspection Data** Set *Logic*
- 13 **Build Invalid Notice** Set *Logic*
- 14 **Parse Findings** Code *Logic*
- 15 **Compute Overdue** Code *Logic*
- 16 **Compute Weekly Stats** Code *Logic*
- 17 **Build Digest Message** Set *Logic*
- 18 **Telegram Invalid Alert** Telegram *Service*
- 19 **Append Inspection to Log** Google Sheets *Service*
- 20 **If Any Overdue** If *Logic*
- 21 **Send Digest Email** Gmail *Service*
- 22 **Send Digest Telegram** Telegram *Service*
- 23 **Gmail Invalid Notice** Gmail *Service*
- 24 **Reattach Parsed Findings** Set *Logic*
- 25 **Telegram Overdue Reminder** Telegram *Service*
- 26 **Gmail Overdue Reminder** Gmail *Service*
- 27 **If Critical Findings** If *Logic*
- 28 **Split Out Findings** Split Out *Logic*
- 29 **Build Critical Alert** Set *Logic*
- 30 **Append Corrective Action** Google Sheets *Service*
- 31 **Telegram Critical Alert** Telegram *Service*
- 32 **Gmail Critical Report** Gmail *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 32, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 32 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 32 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmanage-safety-inspections-and-corrective-actions-with-deepse)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Manage weekly coaching check-ins with Google Sheets and Gmail** 32 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/manage-weekly-coaching-check-ins-with-google-sheets-and-gmai)
- [**Triage project and UAT feedback with OpenAI and Jira** 32 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/triage-project-and-uat-feedback-with-openai-and-jira)
- [**Build a comprehensive multimodal assistant on Telegram** 33 steps · calls a model · Telegram, in-memory vectors](https://millionrounds.com/workflow/build-a-comprehensive-multimodal-assistant-on-telegram)
- [**Company knowledge base agent (RAG) with OpenAI** 31 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/company-knowledge-base-agent-rag-with-openai)
- [**Create a session-based Telegram chatbot with OpenAI** 31 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/create-a-session-based-telegram-chatbot-with-openai)
- [**Intake Architect - Multi-Channel Professional Services Client** 31 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/intake-architect-multi-channel-professional-services-client)
