Skip to main content
工作流应用

Document Parsing Node

The Document Parsing Node extracts structured parameters from input documents. After configuring the file type and parser, it generates structured output variables based on document content—ideal for document content extraction, table data parsing, and document information statistics. This node is currently free of charge.

Usage Example

For example, to parse a document and generate a summary:
A workflow receives a document file, uses the Document Parsing Node to extract its content, and then passes the extracted content to a Large Language Model (LLM) Node to generate a document summary.

Connecting the Node

Method 1: Add via the + Button

  • Hover your mouse over any node on the canvas (e.g., the Start Node); a + button automatically appears on its right side.
  • Click the + button and select Data → Document Parsing from the pop-up node list. The node will be automatically added to the canvas and connected to the upstream node.

Method 2: Drag from the Node Library

  • In the left-side node library, locate and select Data → Document Parsing.
  • Drag the node onto the canvas at your desired location, then drag a connection line from the edge of an upstream node to the Document Parsing Node.

Core Configuration

File Type

Specifies the type of document to be parsed.
OptionSupported FormatsOutput Variable
Other.pdf, .doc, .docx, .wps, .ppt, .pptx, .md, .txtOutputs a layout array containing Markdown-formatted content
Excel.xlsx, .xls, .xlsmOutputs a cells array containing cell-level information

Input

Specifies the document to be parsed. Supports either:
  • A String-typed URL, or
  • A File-typed variable from the Start Node.
When referencing a File-typed variable from the Start Node, the actual value passed is a JSON object containing fields such as mimeType, name, size, source, type, and url. Locally uploaded files are first uploaded to OSS and then passed into the node as temporary URLs. File restrictions:
  • Single file size must not exceed 150 MB, and page count must not exceed 15,000 pages.
  • Only single-file parsing is supported; batch or list-based file parsing is not supported.

Parser Selection

Specifies the parser used to process the document. Different parsers vary in accuracy and speed. Available options depend on the selected file type: When File Type = “Other”:
Parser TypeAccuracySpeedNotes
LLM-based Document ParserGoodFastUses built-in LLMs; prompt customization is not supported.
Intelligent Document ParserGoodFastBalances accuracy and speed.
Electronic Document ParserMediumFastestOptimized for rapid parsing scenarios.
When File Type = “Excel”:
Parser TypeAccuracySpeedNotes
LLM-based Document ParserGoodFastUses built-in LLMs for parsing.
Electronic Document ParserMediumFastestOptimized for rapid parsing.

Node Output

The Document Parsing Node outputs different variable structures depending on the selected file type. Below are the common output variables:
Variable NameTypeDescription
docIdStringUnique document ID
totalPagesNumberTotal number of pages
wordCountNumberTotal word count
docTypeStringFile type (e.g., "pdf", "xlsx")
When File Type = “Other”, the following additional variables are output:
Variable NameTypeDescription
layoutCountNumberNumber of paragraphs
layoutArray<Object>Array of paragraph objects. Each object contains the following sub-fields:
  • layout[].uniqueId: String — Unique identifier for the paragraph
  • layout[].markdownContent: String — Paragraph content in Markdown format
  • layout[].pageNum: Number — Page number where the paragraph appears
When File Type = “Excel”, the following additional variable is output:
Variable NameTypeDescription
cellsArray<Object>Array of cell objects. Each object contains the following sub-fields:
cells[].cellUniqueIdStringUnique identifier for the cell
cells[].verticalStringColumn index (e.g., "A", "B")
cells[].horizontalStringRow index (e.g., "1", "2")
cells[].textStringCell content

Common Use Cases

Paired NodeTypical Usage
Start Node → Document Parsing NodeConfigure a custom File-typed variable in the Start Node to upload a document, then parse it in the subsequent Document Parsing Node.
Document Parsing Node → LLM NodePass structured output (e.g., markdownContent) to an LLM Node to generate summaries, answer questions, or extract key information.
Document Parsing Node → Conditional NodePerform conditional branching based on parsing results (e.g., docType, totalPages, wordCount).
Document Parsing Node → Variable Processing NodeExtract and transform specific fields from parsing results (e.g., format conversion, data cleaning).
Document Parsing Node → Batch Processing NodeFeed the layout array into a Batch Processing Node to handle each paragraph in parallel (e.g., translate or summarize each paragraph individually).

Frequently Asked Questions

Why does parsing fail when providing a document URL?

Ensure the provided URL is a direct download link to the document file (e.g., ending in .pdf, .docx, .txt, etc.), not a webpage URL. Webpage URLs are not valid document files and will cause parsing to fail.