Help Center

Everything you need to get the most out of DocServant

Getting Started

Welcome to the DocServant Platform User Guide. DocServant uses state-of-the-art artificial intelligence to convert unstructured documents (such as invoices, bank statements, contracts, receipts, and reports) into structured, clean tabular data.

How it Works

The typical extraction lifecycle on the DocServant platform consists of three main steps:

  1. Create a Template: Define the blueprint or schema of the output data you wish to extract. You can configure individual objects (like sheets in an Excel document) and fields (with instructions, types, and descriptions).
  2. Run an Extraction: Upload your document files (PDFs, Word documents, or images) and select the corresponding template. DocServant processes the files asynchronously to extract information exactly matching your schema.
  3. Export Data: Review the extracted results in the dashboard. Check for accuracy and export the data directly as an Excel workbook (`.xlsx`) or a CSV file.
Need API access?Integrate DocServant programmatically into your own apps, workflows, or backend systems.
View Developer Docs

Templates

A Template is a user-defined blueprint that specifies the structure of the data you want DocServant to extract. By defining objects and fields, you instruct the AI on exactly what information to find and how to format it.

Core Template Configuration

When configuring a template, you can customize how extractions are handled:

  • Output Mode: Choose between Combined (default) or Single. Combined merges all document outputs into a single consolidated sheet. Single generates separate outputs for each document.
  • Store Data: Toggle this on to retain original source files for document previews. Turn it off to automatically purge files from the server after extraction completes (ideal for strict data privacy).
  • Global Instructions: Provide overall context to the AI model, such as the document language, formatting preferences, or specific terminology rules.

1. Manual Creation

Build your schema field-by-field, tailored perfectly to custom layouts and structures.

  • Click "New Template" and choose "Start Manually".
  • Define objects (these represent sheets in Excel).
  • Add fields to each object (columns in Excel).
  • Set data types: String, Number, Date, Boolean.
  • Define instructions for each field.

2. XLS Template Upload

Upload an existing Excel spreadsheet to automatically generate the template schema.

  • Click "New Template" and choose "Upload Excel File".
  • Select your `.xlsx` or `.xls` spreadsheet file.
  • DocServant parses sheet names as template objects.
  • Column headers are mapped to template fields.
  • Review and tweak instructions before saving.

Template Creation Process In-Depth

Manual Template Setup

Creating a template manually gives you maximum control. First, add an Object (e.g., `Invoices` or `Line Items`). Within each object, add Fields:

  • Field Name: A short descriptor (e.g. `Invoice Number`, `Total Amount`).
  • Field Type: Let the AI know the data type. E.g. a date type will enforce ISO-8601 formatting, and a number type will strip currency symbols.
  • Field Description / Instruction: Direct prompt telling the AI where to find the data or how to interpret it. For example: "Extract the invoice total before taxes, usually labeled as Subtotal."

XLS Template Upload Setup

If you already have a reporting template in Excel, uploading it is the fastest way to get started. DocServant reads the workbook structure:

Excel Blueprint Mapping

- Sheet names (e.g. Summary, Details) become template Objects.
- First row headers (e.g. Vendor Name, Price) become Fields.

Once uploaded, you can refine the generated prompt instructions and adjust data types to achieve optimal extraction accuracy.

Pro Tip for Schema Mapping:Make sure the header row of your Excel template contains distinct, clear column names. Avoid blank columns or merged header cells in the upload file, as this can affect mapping precision.

Run Extraction

Once you have created a template, you are ready to run extractions. DocServant processes your files asynchronously and formats the output data according to your template schema.

Submitting an Extraction Job

To submit a document for extraction using the web interface:

  1. Navigate to the Runs or Extraction section in the dashboard sidebar.
  2. Choose the template you want to use from the dropdown selection list.
  3. Click the upload zone or drag and drop your document files. You can upload multiple files to process them in parallel.
  4. Configure any overrides (like forcing a specific output_mode or disabling data storage).
  5. Click Run Extraction to submit the job.

Supported File Formats & Guidelines

DocServant supports a wide variety of formats for extraction. For best results, follow these quality guidelines:

Supported Formats
  • PDFs: Native (selectable text) or scanned documents.
  • Word Docs: Microsoft Word files (`.doc`, `.docx`).
  • Images: JPEG, PNG, TIFF.
Quality Checklist
  • Ensure scans are at least 300 DPI.
  • Make sure the text is clear, legible, and not blurry.
  • Align pages and avoid shadows or heavy skewing.

Monitoring and Exporting Results

After submission, your extraction job appears in the Run History table. You can watch progress in real time as the status shifts from pending or processing to completed or failed.

Once a run is complete:

  • Clicking the run details displays an interactive table and spreadsheet side-by-side with your document. You can hover over cell values to see the extracted results aligned with the visual preview.
  • Use the Export button at the top-right of the run page to download results.
Available Export Formats

- Excel (.xlsx): Outputs a multi-sheet workbook matching your template objects.
- CSV: Downloads a ZIP archive containing separate `.csv` files for each object.
- JSON: Retrieves the raw nested JSON output, matching the structure returned by the API.

Extraction Timeout Limits:Very large documents (e.g. over 100 pages) or high-volume batch runs may take several minutes to process. Do not refresh or close the browser window while an extraction is executing; the job runs on our servers, and the results will populate in your history once complete.

Reference Data

Reference Data allows you to upload custom datasets (such as product catalogs, customer rosters, vendor lists, or internal code tables) and use them to validate, match, and enrich your AI extraction results.

What is Reference Data?

In many workflows, extracting text directly isn't enough. You may need to verify that an extracted vendor matches a database record, or map an informal product name on a receipt to an official SKU. Reference Data bridges the gap by letting you query your uploaded records directly within your extraction prompts.

Creating and Managing Datasets

To upload your lookup data:

  1. Navigate to Reference Data in the dashboard sidebar.
  2. Click New Dataset to open the creation wizard.
  3. Define the basic schema fields (e.g. `SKU`, `Product Name`, `Unit Price`).
  4. Upload your records via a CSV import, or manually add individual rows directly within the interface.

Querying Datasets with the Query Builder

Once a dataset is active, you can bind it to a field in a template. This allows you to write lookup queries using the Query Builder:

A more detailed guide to the Query Builder — including advanced operators, nested logic, and tips — is available on its own page.

Full Query Builder Guide
Query Logic Construction

Use logical nodes (AND / OR) to build query trees. For example:

AND
MatchField: SupplierName contains "prompt:Vendor Name"
OR
MatchField: SupplierZip equals "prompt:Postal Code"
MatchField: SupplierTaxId equals "prompt:Tax ID"

The prompt:FieldName syntax instructs the AI to first extract that field from the document, then use the extracted value to execute the query against your Reference Data dataset.

Lookup Resolution & Return Field

When a query matches one or more records in your dataset, you specify a Return Field (e.g., `SKU` or `Internal Code`). DocServant will replace the raw extracted value in the final spreadsheet or JSON output with the matched record's return field. This eliminates manual catalog lookup and post-processing steps.

Fuzzy Matching Configuration:Reference Data lookups support exact matching and semantic contains. If you expect slight spelling differences (e.g., "MTR Design Ltd" vs "MTR Design"), configure matching operators to use "contains" or write explicit instruction hints in the field guidelines.

Best Practices

Optimize your extraction success, increase accuracy, and manage workspace security by applying these guidelines when designing templates and running jobs.

1. Field Instruction Formatting (Prompt Engineering)

The AI reads your field instructions as direct orders. Clear, explicit prompts lead to significantly higher accuracy:

✕ Poor:
"Date" or "Total" (Too generic, may extract delivery date instead of invoice date).
✓ Good:
"Extract the invoice date, usually located in the top-right corner. Ignore due date or delivery date." or "The final total amount due, including tax and discounts."

2. Handling Multi-Page & Multi-Sheet Templates

When dealing with complex documents containing nested lists or repeated tables:

  • Separate Objects: Define a distinct template object for each unique collection. For instance, put general invoice metadata (invoice number, date) in one object, and the list of item rows in another.
  • Consistent Row Definitions: For line-item tables, keep fields simple (e.g. `Description`, `Quantity`, `Price`). Let the AI do the heavy lifting of mapping row by row.

3. Data Privacy and Security

If your organization handles sensitive information (e.g., patient records, personally identifiable information (PII), or confidential financials):

Use `store_data: false`

By setting store_data to false on your templates, DocServant will immediately delete the uploaded document files from S3 once processing is completed. The extracted data remains accessible in your run history, but the source PDF or image files are permanently purged.

4. Common Troubleshooting Tips

AI missed a field: Make sure the field label is clear. If a vendor calls "Subtotal" "Net Amount", update your field instructions to include: "Also search for 'Net Amount' if 'Subtotal' is missing."
Data formatting is incorrect: Leverage the field data types. Setting a field type to "Date" tells DocServant to sanitize fuzzy strings like "May 5th, 26" into "2026-05-05".
Table parsing is mixed up: Ensure that there are no overlapping coordinates or conflicting instructions. For difficult tables, provide short example lists in your template's Global Instructions.

Contact / Support

If you couldn't find the answer you were looking for, or if you encounter any platform issues or billing discrepancies, please reach out to our dedicated support channels.

Still need help?

Our support team is here to help you configure templates, troubleshoot matching, or answer custom pricing inquiries. We typically reply within 24 hours.

Contact Support

Email: support@docservant.com