Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Documents, PDF & OCR

Documents, PDF & OCR

Extract invoice fields from uploaded images with DGX Spark OCR and Qwen

Runs when a user uploads an invoice through a form. OCRs the file on a DGX Spark endpoint, extracts structured fields with Qwen, and shows them back in a form.

What it does

## Read invoices on a DGX Spark ### How it works This workflow lets a user upload an invoice through a form, converts the uploaded image/file to base64, and sends it to a DGX Spark-hosted chat completion endpoint for OCR. It then sends the recognized text to a Qwen model on the same Spark endpoint to extract structured invoice fields. The extracted fields are normalized and displayed back to the user in a form. ### Setup steps - Configure the upload form to accept the invoice file types you expect, such as images or PDFs. - Ensure the extract-from-file node is reading the correct uploaded file property and producing base64 output for the OCR request. - Replace http:// :4000/v1/chat/completions with the reachable DGX Spark endpoint address in both HTTP Request nodes. - Configure any required API authentication headers or tokens for the local Spark inference server. - Verify the OCR and Qwen extraction prompts/models match the models available on the DGX Spark service. ### Customization Adjust the OCR prompt, field-extraction prompt, and Set node fields to capture the invoice fields your organization needs, such as purchase order number, tax ID, line items, or payment terms.

The steps

  1. Upload invoice
  2. Image to base64
  3. Show the fields
  4. Invoice fields
  5. Extract fields with Qwen3.6
  6. OCR on the DGX Spark

Similar automations