← Docs Hub

Node-RED Custom Nodes

All 16 custom OSF nodes in detail

Core Processing Nodes

osf-ts

Run custom TypeScript code in a secure V8 sandbox. Full access to MCP tools, LLM, and storage via the SDK. Supports multi-output: configure 1-5 output ports and return an array to route data to different paths.

Config: Write TypeScript code. Set the number of outputs (1-5). Return a single value or an array for multi-output.

osf-prompt

Send a prompt to the LLM. Supports template variables using {{input}} to inject data from the previous node.

Config: Write your prompt template. Use {{input}} to reference the output of the previous node.

osf-prompt-tpl

Template engine for building LLM prompts. Use ${context} and ${input} placeholders to inject data from upstream nodes. Great for crafting structured prompts with dynamic data.

Config: Write your template text with ${context} and ${input} variables.

osf-llm

Send messages to an LLM with per-node configuration. Accepts two inputs: context (from osf-context, sent as system message) and prompt (from osf-prompt-tpl, sent as user message). Supports JSON mode for structured output.

Config: Set LLM URL, model, temperature, and toggle JSON mode. Connect osf-context and osf-prompt-tpl as inputs.

osf-output-parser

Validate and parse JSON output against a schema. If validation fails, automatically retries by asking the LLM to fix the output. Ensures structured, reliable data from LLM responses.

Config: Define a JSON schema. Set max retry attempts (1-5).

Data & Context Nodes

osf-context

Aggregates data from multiple upstream nodes into a single JSON object. Each input is keyed by the source node's label. Connect multiple nodes into one context to collect data before sending it to an LLM.

Config: Optional: Override key names for each input source.

osf-http

Make HTTP requests to external APIs. Supports GET, POST, PUT, DELETE with custom headers, authentication, and JSON mode. URL supports template variables.

Config: Set method, URL, headers, auth token, timeout, and JSON mode.

Flow Control Nodes

osf-decision

Conditional branching. Route the flow to different paths based on the previous node's output using configurable conditions.

Config: Define conditions for each output port (e.g., 'has-errors', 'always', 'never').

osf-sub-flow

Call another saved flow as a sub-routine. The sub-flow receives the current node's input and returns its final output. Includes recursion protection (max depth 5).

Config: Enter the Flow ID to call and set max recursion depth.

osf-human-input

Pause the flow and wait for human approval or input. The flow resumes when the user responds.

Config: Set the prompt text and optional choices.

Agent Node

osf-agent

Run an existing AI agent (built-in or community). The agent performs its full analysis with MCP tool calls and returns the result.

Config: Select the agent by name from the dropdown.

MCP Tool Nodes

Info
MCP nodes connect directly to the factory simulation's MCP servers. Each node provides a dropdown to select a specific tool and configure its parameters.
osf-mcp-erp

Call a tool from the ERP MCP server. Access production orders, customer data, delivery schedules, and more.

Config: Select the tool and configure its parameters.

osf-mcp-fertigung

Call a tool from the Manufacturing MCP server. Access machine data, OEE metrics, production status.

Config: Select the tool and configure its parameters.

osf-mcp-qms

Call a tool from the Quality Management (QMS) MCP server. Access defect reports, quality metrics, audit data.

Config: Select the tool and configure its parameters.

osf-mcp-tms

Call a tool from the Tool Management (TMS) MCP server. Access tool inventory, usage history, maintenance schedules.

Config: Select the tool and configure its parameters.

osf-mcp-oee

Call a tool from the OEE MCP server. Access machine OEE metrics, production history, scrap rates, and energy data.

Config: Select the tool and configure its parameters.

osf-mcp-uns

Call a tool from the UNS (MQTT) MCP server. Access live machine data, topic search, alerts, and cross-machine comparisons.

Config: Select the tool and configure its parameters.

osf-mcp-kg

Call a tool from the Knowledge Graph MCP server. Impact analysis, paths, semantic search, Cypher queries, delivery snapshots.

Config: Select the tool and configure its parameters.

Native Node-RED Nodes

All standard Node-RED nodes are available in the editor. Here are the most commonly used ones for AI workflows:

switch

Route messages based on property values. Supports equality, comparison, range, regex, and more. Each rule maps to an output port.

Config: Set the property to evaluate and define rules for each output.

change

Set, change, delete, or move properties on the message object. Useful for transforming data between nodes.

Config: Add rules: set a value, change (find/replace), delete, or move a property.

template

Mustache-style template rendering. Use {{payload.field}} syntax to build strings from message data.

Config: Write a Mustache template. Access message properties with double braces.

function

Run custom JavaScript code. Receives a msg object and can modify or create new messages. Supports multiple outputs.

Config: Write JavaScript. Return msg to pass it on, or return an array for multiple outputs.

http request

Make HTTP requests to external services. Supports all methods, custom headers, authentication, and response parsing.

Config: Set URL, method, headers, and payload. Response is available in msg.payload.

split / join

Split arrays or objects into individual messages, or join multiple messages back together. Useful for parallel processing.

Config: Split: choose array, string, or object mode. Join: set count or timeout.

delay

Delay message delivery by a configurable amount of time (max 60 seconds in the OSF engine).

Config: Set delay duration in seconds.

debug

Log message data to the Node-RED debug sidebar and the OSF run output. Passes the message through unchanged.

Config: Choose what to display: full message or specific property.

This site uses a cookie to remember your preferences. Analytics are anonymous and cookie-free. Privacy Policy