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
- Upload invoice
- Image to base64
- Show the fields
- Invoice fields
- Extract fields with Qwen3.6
- OCR on the DGX Spark
Similar automations
Lead Generation & EnrichmentGenerate Lead Qualification Reports from Tally Forms with Qwen6 stepsFinance, Invoices & AccountingCreate and Email Invoice Ninja Invoices from Sheets4 stepsDocuments, PDF & OCRExtract Invoice Data from Drive Files with Mistral OCR and Gemini20 stepsDocuments, PDF & OCRExtract PDF invoice data from Gmail with Cradl AI into Google Sheets6 steps