LLM文档转换 icon

LLM文档转换

LLM文档处理节点,将文档转换为大模型友好的格式

Overview

The node "LLM文档转换" (LLM Document Conversion) provides functionality to convert various document formats into Markdown text using a large language model (LLM) based service. Specifically, the "JSON转Markdown" operation under the "文件转Markdown" resource converts JSON content into Markdown format.

This node is useful in scenarios where users want to transform structured JSON data into human-readable Markdown documents for documentation, reporting, or publishing purposes. For example, converting API response JSON into formatted Markdown documentation or transforming JSON configuration files into readable notes.

Properties

Name Meaning
文件字段名 The name of the input field containing the file data. Supported formats include pdf, doc, docx, ppt, pptx, xlsx, html, csv, json, etc. Default is "data".
返回Markdown文本 Boolean option indicating whether to return the Markdown text content directly. If disabled, only the URL of the converted Markdown document is returned. Default is true.

Output

The node outputs JSON data containing the result of the conversion. When "返回Markdown文本" is enabled, the output includes the Markdown text generated from the input JSON. If disabled, the output contains a URL pointing to the converted Markdown document instead.

No binary data output is indicated by the source code.

Dependencies

  • Requires an external LLM-based document conversion API service.
  • The node expects an API key credential configured in n8n to authenticate requests to this service.
  • The base URL for the API is taken from the credential configuration.

Troubleshooting

  • Common issues may include invalid or unsupported file formats in the specified file field.
  • Errors can occur if the API key credential is missing or incorrect.
  • Network or API endpoint errors might cause failures; ensure the base URL and credentials are correctly set.
  • If the node returns no Markdown content, verify that the "返回Markdown文本" property is enabled.

Links and References

  • No direct external links provided in the source code.
  • Users should refer to the documentation of the external LLM document conversion API used with this node for detailed usage and limitations.

Discussion