Login
Free Sign Up
Docs
/

Text - Content to Text

Type identifier: text:contentToText Category: Text Operations

Description

Converts rich content to serialised output. By default it serialises to plain text, and it can optionally serialise to HTML. Any included media is converted to pre-signed URLs for access.

Input Handles

Handle

Data Type

Required

Description

content

Content

Yes

Rich content to serialise

Input Handle Details

content

  • Type: Content
  • Notes:

    • Must be valid content structure
    • Supports all content node types
    • Invalid content throws error

Output Handles

Handle

Data Type

Description

text

string

Serialised text or HTML output

error

trigger

Triggered on conversion error

Output Handle Details

text

  • Type: string
  • Notes:

    • Media references include pre-signed URLs
    • text format preserves text content and removes formatting
    • html format preserves content structure as HTML

Configuration Options

Property

Type

Required

Default

Description

label

string

Yes

"Text - Content to Text"

Display label for the node

format

"text" | "html"

No

"text"

Serialisation output format

Behaviour

Execution Flow

  1. Resolves content input handle
  2. Validates content structure
  3. Pre-signs any media URLs in content
  4. Serialises content using the selected format (text or html)
  5. Returns text string

Content Serialisation

Default (format: "text")

Content Node

Text Output

paragraph

Text with newlines

heading

Heading text with newlines

list-item

Item text

link

Link text (URL may be included)

image

Pre-signed URL

code-block

Code text

Text marks (bold, italic)

Plain text (marks removed)

HTML (format: "html")

  • Preserves structural elements such as headings, lists, tables, and links in HTML form
  • Media nodes render as HTML elements with pre-signed source URLs

Error Handling

Scenario

Behaviour

Invalid content structure

Throws error, triggers error

Media URL signing fails

Triggers error

Examples

Basic Content Conversion

{
  "type": "text:contentToText",
  "data": {
    "label": "Extract Text"
  }
}

Process Rich Text Field

{
  "type": "text:contentToText",
  "data": {
    "label": "Convert Article Content"
  }
}

Connect a Record's content field to extract plain text.

Serialise as HTML

{
  "type": "text:contentToText",
  "data": {
    "label": "Convert Article Content",
    "format": "html"
  }
}

This preserves rich formatting and structure in HTML output.

Prepare for Search Index

{
  "type": "text:contentToText",
  "data": {
    "label": "Index Content"
  }
}

Convert rich content to plain text for full-text search indexing.

Related pages