Factory Agent is a collection of custom NodeRED nodes that communicate with your MQTT broker to obtain real-time information about OT/IT data sources and feed it to LLMs for analysis. This enables LLMs to perform user-defined feedback actions, such as controlling device operations, modifying workshop schedules, or clearing inventory.
The method of using an MQ Broker to aggregate industrial data is also known as Unified Namespace, a simple and efficient industrial DataOps methodology considered to be the true industrial data integration solution for the post-OPCUA era. Factory Agent relies on this methodology to establish bidirectional real-time connections with the factory. You can implement this using our open-source software supOS.
Each Factory Agent Node comes with detailed documentation. You can find more detailed designs for advanced usage in NodeRED or in the node's README.
-
Connect factory data to the MQTT Broker through NodeRED, ensuring each data Topic expresses actual meaning, such as
Finance/Profit/RealtimeCost
,Warehouse/Staging/AMR1
, rather thanoed02skj/http01/key292987
. Similarly, Payloads should be input in KV format like{"Temp":"1"}
to express actual factory information. -
Connect the MQTT Topics representing the factory's actual conditions to the Factory Agent State Node via the MQTT in Node. Input system prompts and example Action return structures in the System Prompt field.
-
Connect to the Factory Agent Deepseek node (or another LLM), and use a function node to capture
msg.result
and parse it as JSON (this variable stores the actions determined by the LLM; if your system prompt is effective, this will be pure JSON). -
Send back to a specific MQTT Topic. You'll write programs or use NodeRED to receive the actions the LLM wants to execute from this Topic, then parse and connect to actual devices or systems.
We also provide a virtual factory simulation that you can use to test Factory Agent without connecting to real industrial equipment. This simulation creates a digital twin of a manufacturing facility that publishes real-time data to MQTT topics, allowing you to develop and test your Factory Agent implementation in a realistic environment.
The simulation includes production processes, resource management, financial metrics, and random disruptions that require adaptive strategies - perfect for demonstrating how LLMs can make operational decisions in industrial settings.
For complete documentation on setting up and using the virtual factory, see Factory Simulation Documentation.
- If you have a NodeRED instance connected to the internet, you can directly search for "factory agent" in the palette manager and download it
- You can also find the Factory Agent nodes collection in the NodeRED community