DOCUMENT OPS
Index signed contracts from Dropbox into a searchable Postgres repository
Watches a Dropbox folder for newly signed contract PDFs, extracts key metadata (parties, effective date, term, value), and writes a structured, searchable row to Postgres.
How it runs
The automated pipeline, trigger to output.
- TriggerNew signed contract added to Dropbox folderDropbox
- ActionDownload file and extract PDF textDropbox
- ActionExtract parties, dates, term, and value as fieldsOpenAI
- LogicValidate required fields parsed; flag incomplete
- OutputUpsert structured row into Postgres contracts tablePostgres
What it does
Every time a fully executed contract lands in your Dropbox "Signed" folder, this workflow pulls the file, reads it, and turns the messy PDF into a clean database record your team can actually search — counterparty, contract type, effective date, term length, total value, and a link back to the original.
When to use it
Use it when signed contracts pile up in Dropbox but nobody can answer "which deals renew next quarter?" without opening files one by one. Best for legal ops, finance, and procurement teams that want a single queryable contract repository without manual data entry.
How it works
- 1A new file in the watched Dropbox folder triggers the run.
- 2The file is downloaded and its text extracted from the PDF.
- 3An extraction model identifies the parties, contract type, effective date, term, renewal terms, and total value as structured fields.
- 4A logic step validates that the required fields parsed cleanly; incomplete records are flagged for review instead of indexed.
- 5A clean row — including the Dropbox source link — is upserted into the Postgres contracts table, keyed by counterparty and effective date so re-runs don't duplicate.
Set it up
What you configure once, before turning it on.
- 1Connect DropboxFiles and folders.
- 2Connect OpenAIModels, embeddings, files.
- 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
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.
Triage emailed contract redlines and route by risk
When a counterparty emails a redlined contract, extracts the attachment, diffs clauses against approved templates.
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.
Draft a negotiation brief from contract clause deviations
An agent reviews a contract against approved templates, researches each deviation.
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.
