Overview
This node performs simple text transformations on an input string. It supports converting text to uppercase, lowercase, or reversing the text. This node is useful in scenarios where you need to normalize text data, prepare strings for case-insensitive comparisons, or manipulate text formatting within an automation workflow.
Practical examples:
- Converting user input to lowercase before storing it in a database to ensure consistency.
- Reversing a string for encoding or obfuscation purposes.
- Changing text to uppercase for display or comparison.
Properties
| Name | Meaning |
|---|---|
| Input Text | The text to transform (string input). |
The operation type ("To Lowercase" in this context) is fixed by your selection and not listed here as a property because you specified only that operation.
Output
The node outputs an array of items, each containing a JSON object with the following fields:
result: The transformed text after applying the selected operation (in this case, lowercase conversion).inputText: The original input text provided.operation: The operation performed, e.g.,"toLowercase".
Example output JSON structure:
{
"result": "example text",
"inputText": "Example Text",
"operation": "toLowercase"
}
No binary data is produced by this node.
Dependencies
- No external services or API keys are required.
- The node relies solely on built-in JavaScript string methods.
- No special n8n environment variables or credentials are needed.
Troubleshooting
- Unsupported Operation Error: If an unsupported operation value is somehow passed, the node throws an error indicating the operation is not supported. This should not occur if using the node's UI properly.
- Empty Input Text: Providing an empty string will simply return an empty string as the result without error.
- Continue On Fail: If enabled, errors during processing individual items will be caught and returned as error messages in the output instead of stopping execution.