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.

Back to Catalog
Core Blockstext_processor

Block Preview

Text Processor

Process and transform text

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the text_processor block with monitoring enabled in production.

Inputs (UI)

Input Text

long-input

Placeholder: Hello World! Contact: john@example.com or visit https://example.com

Layout: full

Operation

dropdown

Layout: half

Options: Clean Text, Extract Emails, Extract URLs, Extract Phone Numbers

Case Transform

dropdown

Layout: half

Options: No Change, Uppercase, Lowercase, Title Case

Search Text / Pattern

short-input

Placeholder: old text or \d+ for numbers

Layout: half

Condition: operation = ["replace","regex_match","regex_replace"]

Replace With

short-input

Placeholder: new text or ***

Layout: half

Condition: operation = ["replace","regex_replace"]

Split Delimiter

short-input

Placeholder: , or \n or ;

Layout: half

Condition: operation = ["split"]

Max Splits

short-input

Placeholder: Maximum number of splits (optional)

Layout: half

Condition: operation = ["split"]

Trim Whitespace

switch

Layout: half

Remove Empty Lines

switch

Layout: half

Inputs (API)

inputText

string

Optional

operation

string

Optional

caseTransform

string

Optional

searchText

string

Optional

replaceText

string

Optional

splitDelimiter

string

Optional

maxSplits

number

Optional

trimWhitespace

boolean

Optional

removeEmptyLines

boolean

Optional

Outputs

Primary response type:

{
  "content": "string",
  "originalText": "string",
  "processedText": "string",
  "operation": "string",
  "wordCount": "number",
  "characterCount": "number",
  "metadata": "json"
}

Tool Access

text_processor
Text Processor | NowFlow Blocks