Automation library · Alerts and monitoring

Coordinate smart factory operations with OpenAI and Slack

Started by a clock, and works across Slack. It hands the judgement calls to OpenAI. 24 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 15Logic 4Service 4

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2OpenAI Model - Validation AgentLm Chat Open AiModel
  3. 3Validation Output ParserOutput Parser StructuredModel
  4. 4OpenAI Model - Scheduling AgentLm Chat Open AiModel
  5. 5Scheduling Output ParserOutput Parser StructuredModel
  6. 6OpenAI Model - Procurement AgentLm Chat Open AiModel
  7. 7Procurement Output ParserOutput Parser StructuredModel
  8. 8OpenAI Model - Quality AgentLm Chat Open AiModel
  9. 9Quality Output ParserOutput Parser StructuredModel
  10. 10OpenAI Model - Coordination AgentLm Chat Open AiModel
  11. 11Coordination Output ParserOutput Parser StructuredModel
  12. 12Workflow ConfigurationSetLogic
  13. 13Operations Validation AgentAgentModel
  14. 14Scheduling Agent ToolAgent ToolModel
  15. 15Procurement Agent ToolAgent ToolModel
  16. 16Quality Escalation Agent ToolAgent ToolModel
  17. 17Cross-Factory Coordination AgentAgentModel
  18. 18Fetch Production DataHttp RequestService
  19. 19Fetch Supply Chain DataHttp RequestService
  20. 20Route by PrioritySwitchLogic
  21. 21Merge Operations DataMergeLogic
  22. 22Critical Alert - SlackSlackService
  23. 23High Priority Alert - SlackSlackService
  24. 24Log Routine OperationsSetLogic

How it's built

Starts on
A clock
Steps
24, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Slack
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

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 24 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 24 steps before you point it at anything that matters.