# Coordinate smart factory operations with OpenAI and Slack: n8n workflow

> 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...

Source: https://millionrounds.com/workflow/coordinate-smart-factory-operations-with-openai-and-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# 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.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcoordinate-smart-factory-operations-with-openai-and-slack)

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

**1** Branch: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 15 Logic 4 Service 4

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **OpenAI Model - Validation Agent** Lm Chat Open Ai *Model*
- 3 **Validation Output Parser** Output Parser Structured *Model*
- 4 **OpenAI Model - Scheduling Agent** Lm Chat Open Ai *Model*
- 5 **Scheduling Output Parser** Output Parser Structured *Model*
- 6 **OpenAI Model - Procurement Agent** Lm Chat Open Ai *Model*
- 7 **Procurement Output Parser** Output Parser Structured *Model*
- 8 **OpenAI Model - Quality Agent** Lm Chat Open Ai *Model*
- 9 **Quality Output Parser** Output Parser Structured *Model*
- 10 **OpenAI Model - Coordination Agent** Lm Chat Open Ai *Model*
- 11 **Coordination Output Parser** Output Parser Structured *Model*
- 12 **Workflow Configuration** Set *Logic*
- 13 **Operations Validation Agent** Agent *Model*
- 14 **Scheduling Agent Tool** Agent Tool *Model*
- 15 **Procurement Agent Tool** Agent Tool *Model*
- 16 **Quality Escalation Agent Tool** Agent Tool *Model*
- 17 **Cross-Factory Coordination Agent** Agent *Model*
- 18 **Fetch Production Data** Http Request *Service*
- 19 **Fetch Supply Chain Data** Http Request *Service*
- 20 **Route by Priority** Switch *Logic*
- 21 **Merge Operations Data** Merge *Logic*
- 22 **Critical Alert - Slack** Slack *Service*
- 23 **High Priority Alert - Slack** Slack *Service*
- 24 **Log Routine Operations** Set *Logic*

## 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.

## 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%2Fcoordinate-smart-factory-operations-with-openai-and-slack)
- **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.

[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Analyze Google Ads search terms with Claude and DeepSeek** 24 steps · calls a model · Discord, Slack](https://millionrounds.com/workflow/analyze-google-ads-search-terms-with-claude-and-deepseek)
- [**Assess AWS security posture changes with Claude and Slack** 24 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/assess-aws-security-posture-changes-with-claude-and-slack)
- [**Monitor Japan Flight Prices & Generate Booking Alerts** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/monitor-japan-flight-prices-and-generate-booking-alerts)
- [**Monitor brand mentions and draft crisis responses with OpenAI** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/monitor-brand-mentions-and-draft-crisis-responses-with-opena)
- [**Monitor competitor prices and send OpenAI analysis alerts** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/monitor-competitor-prices-and-send-openai-analysis-alerts)
- [**Monitor supplier risk daily with Groq and Google Sheets** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/monitor-supplier-risk-daily-with-groq-and-google-sheets)
