DOCUMENT OPS
Dropbox invoice scan to Postgres ledger with duplicate guard
Extracts vendor, invoice number, and totals from scanned invoices dropped in Dropbox.
How it runs
The automated pipeline, trigger to output.
- TriggerNew invoice scan in Dropbox folderDropbox
- ActionDownload invoice file from DropboxDropbox
- ActionExtract vendor, number, date, total via Hugging FaceHugging Face
- LogicCheck Postgres for existing invoice numberPostgres
- OutputInsert new invoice row into Postgres ledgerPostgres
What it does
Scanned invoices placed in a Dropbox folder are parsed for vendor name, invoice number, date, and total amount, then written into a Postgres accounting ledger — but only if that invoice number is not already on file, preventing double entry.
When to use it
Use it when vendors email or hand over paper invoices that someone scans into Dropbox, and you want them landing in your database ledger automatically without paying twice for the same invoice number.
How it works
- 1A new scanned invoice in the Dropbox folder triggers the run.
- 2The file is downloaded from Dropbox.
- 3A Hugging Face document model extracts vendor, invoice number, issue date, and total.
- 4A logic step queries Postgres for the extracted invoice number scoped to that vendor.
- 5If a matching row already exists, the run stops and logs a duplicate so nothing is inserted twice.
- 6If it is new, the invoice is inserted into the Postgres ledger table with all extracted fields and the source file link.
Set it up
What you configure once, before turning it on.
- 1Connect DropboxFiles and folders.
- 2Connect Hugging FaceModels, datasets, spaces — the open-source hub.
- 3Connect PostgresAny Postgres URL — query, write, migrate.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Document Ops workflows
Batch-narrate a Google Drive PDF folder in multiple languages
On a schedule, finds PDFs in a Google Drive folder that lack audio, then generates ElevenLabs narrations in each configured language and files them into per-language subfolders…
Executed Contract Exhibit & Initials Completeness Gate
When a signed contract lands in a Dropbox intake folder, verify every required exhibit, schedule, and initialed page is present.
Flag redline deviations when a contract lands in Drive
Watches a Google Drive folder for incoming counterparty contracts, diffs each clause against your approved template library.
Triage emailed contract redlines and route by risk
When a counterparty emails a redlined contract, extracts the attachment, diffs clauses against approved templates.
Narrate new Dropbox PDFs into MP3 audio versions
When a PDF lands in a watched Dropbox folder, extract its text and generate an ElevenLabs voice narration.
On-demand PDF narration via webhook with emailed audio link
Accepts a PDF URL through a webhook, generates an ElevenLabs narration with the requested voice, stores the MP3, and emails the requester a download link.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
