● Input Node
A node used to define input data at the beginning of the Worker (AI agent)
Overview
Entry point for data input with enhanced field types for rich user interfaces. This node should typically be the first node in workflows that require user-provided parameters.
When to Use
Use this node as the first node when you need to collect input from the user before processing. Essential for interactive workflows that require user-provided data, parameters, or file uploads.
Parameters
- userMessage (optional) - Text input from the user
- Type: textarea
- Placeholder: "Enter your message or question..."
- Example: "Hi, this is John"
- uploadedFile (optional) - File uploaded by the user (returns buffer data)
- Type: file
- Placeholder: "Upload a document for processing (optional)"
- Returns buffer data for downstream processing
Raw Usage Example
{
name: "User Input Collection",
description: "Input Node - used to setup input parameters",
nodeId: "0",
operationReference: {
methodId: "input_node"
},
parameters: [
{ name: "userMessage", value: "Enter your input here" }, // User text input
{ name: "uploadedFile", value: null } // Optional file upload
]
}
Capabilities
- Standard text input
- Multi-line text input for longer content
- Numeric input with validation
- Dropdown selection with data sources
- File upload that returns buffer data
Advanced Features
- Enhanced field types (text, textarea, number, select, file)
- Validation rules (required, min/max, patterns)
- Data sources for dropdowns (memory, workers, static options)
- File type restrictions with accept patterns
- Placeholder text and help descriptions
Result Access
{{0.parameterName}}
- Access any defined parameter by name{{0.userMessage}}
- Common pattern for user input{{0.uploadedFile}}
- Access uploaded file data
Updated 10 days ago