Blocks
Text Processor
Process and transform text
Process and transform text with various operations like formatting, cleaning, extracting, splitting, and analyzing. Supports regex operations, case transformations, and text analysis.
Block Preview
Text Processor
Process and transform text
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the text_processor block with monitoring enabled in production.
Inputs (UI)
Input Text
long-inputPlaceholder: Hello World! Contact: john@example.com or visit https://example.com
Layout: full
Operation
dropdownLayout: half
Options: Clean Text, Extract Emails, Extract URLs, Extract Phone Numbers
Case Transform
dropdownLayout: half
Options: No Change, Uppercase, Lowercase, Title Case
Search Text / Pattern
short-inputPlaceholder: old text or \d+ for numbers
Layout: half
Condition: operation = ["replace","regex_match","regex_replace"]
Replace With
short-inputPlaceholder: new text or ***
Layout: half
Condition: operation = ["replace","regex_replace"]
Split Delimiter
short-inputPlaceholder: , or \n or ;
Layout: half
Condition: operation = ["split"]
Max Splits
short-inputPlaceholder: Maximum number of splits (optional)
Layout: half
Condition: operation = ["split"]
Trim Whitespace
switchLayout: half
Remove Empty Lines
switchLayout: half
Inputs (API)
inputText
stringOptional
operation
stringOptional
caseTransform
stringOptional
searchText
stringOptional
replaceText
stringOptional
splitDelimiter
stringOptional
maxSplits
numberOptional
trimWhitespace
booleanOptional
removeEmptyLines
booleanOptional
Outputs
Primary response type:
{
"content": "string",
"originalText": "string",
"processedText": "string",
"operation": "string",
"wordCount": "number",
"characterCount": "number",
"metadata": "json"
}