See llms.txt for all machine-readable content.

Back to Templates

Run LDXhub document jobs from one form with StructFlow, RefineLoop, RenderOCR, CastDoc and ExtractDoc

Created by

Created by: Hideki Mori || hidekimori
Hideki Mori

Last update

Last update 3 days ago

Categories

Share


Quick overview

This workflow provides a single n8n form that routes to five LDXhub services (StructFlow, RefineLoop, RenderOCR, CastDoc, and ExtractDoc) to run one-off document processing jobs and return the generated output file directly to the user.

How it works

  1. Receives a submission from an n8n Form that collects an LDXhub API key, API host, and the target service.
  2. Routes the request to the selected service and fetches available models or engines from the LDXhub gateway using an HTTP request.
  3. Collects the remaining service-specific inputs via follow-up forms (for example model/engine selection, prompts/options, file upload, output format, and OCR language where applicable).
  4. Filters the available output formats based on the uploaded file’s extension for the conversion-style services.
  5. Submits the job to LDXhub (StructFlow, RefineLoop, RenderOCR, CastDoc, or ExtractDoc) and polls until the result is ready.
  6. Returns the processed file as a direct download in the form completion step, or shows an error page if the job fails.

Setup

  1. Create an LDXhub API key in the LDXhub portal and add an LDXhub API credential in n8n for the LDXhub node.
  2. Confirm the LDXhub gateway base URL (default https://gw.ldxhub.io) is reachable from your n8n instance, or update the host value used in the form.
  3. Ensure users have the correct input files available for the chosen service (JSONL for StructFlow, XLIFF for RefineLoop, and supported document/image types for RenderOCR, CastDoc, and ExtractDoc).