Text Processing Nodes
Text Processing nodes provide powerful string manipulation, formatting, and user interaction capabilities in ANDRON workflows.
Text Processing nodes provide powerful string manipulation, formatting, and user interaction capabilities in ANDRON workflows.
Format Text Node
Transform and format text strings with various formatting options.
Configuration
- Input Text: Source text to format
- Format Type:
uppercase: Convert to uppercaselowercase: Convert to lowercasecapitalize: Capitalize first lettertitleCase: Capitalize each wordtrim: Remove leading/trailing whitespacepadStart: Left-pad stringpadEnd: Right-pad stringtruncate: Limit string lengthtemplate: Use template literals for complex formatting
Example
{
"type": "formatText",
"name": "Name Formatting",
"input": "{{user.fullName}}",
"formatType": "titleCase",
"maxLength": 50
}
Use Cases
- Data normalization
- Display formatting
- Text sanitization
- Consistent text representation
Replace Text Node
Perform advanced text substitution and pattern matching.
Configuration
- Input Text: Source text
- Replace Mode:
simple: Direct text replacementregex: Regular expression substitutiontemplate: Dynamic replacement using template
- Search Pattern: Text or regex to find
- Replacement Text: Replacement strategy
- Case Sensitivity: Optional flag
Example
{
"type": "replaceText",
"name": "Email Anonymization",
"input": "{{user.email}}",
"mode": "regex",
"pattern": "(\\w{3})\\w+(@\\w+\\.\\w+)",
"replacement": "$1****$2",
"caseSensitive": false
}
Use Cases
- Data masking
- URL transformation
- Sensitive information redaction
- Dynamic text generation
User Input Node
Capture and validate user-provided input with flexible configuration.
Configuration
- Input Type:
text: Free-form textnumber: Numeric inputemail: Email validationdate: Date inputboolean: Yes/No inputselect: Predefined options
- Validation Rules:
required: Mandatory inputminLength: Minimum character countmaxLength: Maximum character countpattern: Regex validationenum: Allowed values
- Prompt: User-facing input description
- Default Value: Optional pre-filled value
Example
{
"type": "userInput",
"name": "Customer Feedback",
"inputType": "text",
"prompt": "Please provide your feedback:",
"validation": {
"required": true,
"minLength": 10,
"maxLength": 500
},
"errorMessage": "Feedback must be between 10-500 characters"
}
Use Cases
- Interactive workflows
- Dynamic data collection
- Form validation
- Survey and feedback systems
Error Handling
- Comprehensive input validation
- Detailed error messages
- Configurable error handling strategies
- Logging of text transformation steps
- Graceful failure modes
Performance Considerations
- Optimized string manipulation algorithms
- Minimal memory overhead
- Efficient regular expression processing
- Configurable complexity limits
Security Notes
- Input sanitization
- Prevent potential injection
- Escape special characters
- Configurable input constraints
- Protection against regex-based attacks
Advanced Features
- Dynamic template resolution
- Nested template interpolation
- Internationalization support
- Custom formatting plugins
- Context-aware text processing
Precision and Limitations
- Maximum input length: Configurable (default 10,000 characters)
- Unicode support for international text
- Complex regex with timeout protection
- Configurable error tolerance
- Support for most common text encodings
Last updated: 12/2/2025