Automation library · Chat assistants

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.

LargeCalls a model: OpenAI

32 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 3Model 4Logic 12Service 13

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

  1. 1Safety Inspection FormForm triggerStarts it
  2. 2DeepSeek Safety ModelLm Chat Open AiModel
  3. 3Daily Sweep TriggerSchedule triggerStarts it
  4. 4Weekly Digest TriggerSchedule triggerStarts it
  5. 5DeepSeek Digest ModelLm Chat Open AiModel
  6. 6Validate Inspection InputIfLogic
  7. 7AI Analyze FindingsAgentModel
  8. 8Read Corrective ActionsGoogle SheetsService
  9. 9Read InspectionsGoogle SheetsService
  10. 10Read Corrective Actions for DigestGoogle SheetsService
  11. 11AI Write Weekly DigestAgentModel
  12. 12Normalize Inspection DataSetLogic
  13. 13Build Invalid NoticeSetLogic
  14. 14Parse FindingsCodeLogic
  15. 15Compute OverdueCodeLogic
  16. 16Compute Weekly StatsCodeLogic
  17. 17Build Digest MessageSetLogic
  18. 18Telegram Invalid AlertTelegramService
  19. 19Append Inspection to LogGoogle SheetsService
  20. 20If Any OverdueIfLogic
  21. 21Send Digest EmailGmailService
  22. 22Send Digest TelegramTelegramService
  23. 23Gmail Invalid NoticeGmailService
  24. 24Reattach Parsed FindingsSetLogic
  25. 25Telegram Overdue ReminderTelegramService
  26. 26Gmail Overdue ReminderGmailService
  27. 27If Critical FindingsIfLogic
  28. 28Split Out FindingsSplit OutLogic
  29. 29Build Critical AlertSetLogic
  30. 30Append Corrective ActionGoogle SheetsService
  31. 31Telegram Critical AlertTelegramService
  32. 32Gmail Critical ReportGmailService

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.