workflows.fit
Back to n8n workflows
n8n templateFreeBy Anurag

Extract and structure invoice data with DocSumo and export to Excel

Description This workflow automates the extraction of structured data from invoices or similar documents using Docsumo's API. Users can upload a PDF via an n8n form trigger, which is then sent to Docsumo for processin...

DevelopmentCore NodesForm TriggerHttp RequestCodeConvert To File
Loading interactive preview...

Template notes

Description

This workflow automates the extraction of structured data from invoices or similar documents using Docsumo's API. Users can upload a PDF via an n8n form trigger, which is then sent to Docsumo for processing and structured parsing. The workflow fetches key document metadata and all line items, reconstructs each invoice row with combined header and item details, and finally exports all results as an Excel file. Ideal for automating invoice data entry, reporting, or integrating with accounting systems.

How It Works

- A user uploads a PDF document using the integrated n8n form trigger. - The workflow securely sends the document to Docsumo via REST API. - After uploading, it checks and retrieves the parsed document results. - Header information and table line items are extracted and mapped into structured records. - The complete result is exported as an Excel (.xls) file.

Setup Steps

1. Docsumo Account: - Register and obtain your API key from Docsumo. 2. n8n Credentials Manager: - Add your Docsumo API key as an HTTP header credential (never hardcode the key in the workflow). 3. Workflow Configuration: - In the HTTP Request nodes, set the authentication to your saved Docsumo credentials. - Update the file type or document type in the request (e.g., "type": "invoice") as needed for your use case. 4. Testing: - Enable the workflow and use the built-in form to upload a sample invoice for extraction.

Features

- Supports PDF uploads via n8n’s built-in form or via API/webhook extension. - Sends files directly to Docsumo for document data extraction using secure credentials. - Extracts invoice-level metadata (number, date, vendor, totals) and full line item tables. - Consolidates all data in easy-to-use Excel format for download or integration. - Modular node structure, easily extensible for further automation.