Skip to content

HansOersted/FactoryAgent-supos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Factory Agent

Factory Agent Logo

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.

Architecture Diagram

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.

How it works

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.

  1. 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 than oed02skj/http01/key292987. Similarly, Payloads should be input in KV format like {"Temp":"1"} to express actual factory information.

    Step 1

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

    Step 2

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

    Step 3

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

    Step 4

Virtual Factory Simulation

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.

Installation

Installing supOS:

Installing Factory Agent nodes:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.5%
  • HTML 11.0%
  • JavaScript 6.9%
  • CSS 3.6%