INVOICE PROCESSING

Archive supplier invoice attachments to R2 and attach the link to ClickUp

Saves every PDF attachment from inbound Outlook supplier invoices to a dated R2 bucket path, records the storage URL in Postgres keyed by PO.

CategoryInvoice Processing
Enginesim
Difficultybeginner
Triggerevent
Steps5
Setup~5 min

How it runs

The automated pipeline, trigger to output.

  • TriggerInvoice email with attachment in OutlookOutlook
  • ActionRead PO number and supplier from invoice
  • ActionUpload PDF to dated R2 bucket pathCloudflareCloudflare R2
  • ActionStore R2 URL in Postgres by POPostgreSQLPostgres
  • OutputCreate ClickUp task linking the archived fileClickUpClickUp

What it does

Gives every supplier invoice a permanent home and a clean handle. Each PDF attachment from the invoices mailbox is uploaded to Cloudflare R2 under a year/month/supplier path, its URL is stored in Postgres against the PO number, and a ClickUp task is opened that links directly to the archived document instead of a buried email.

When to use it

Use it when invoices live only inside email and your team wastes time hunting for the original PDF at approval or audit time. This builds a searchable document archive while keeping the AP workflow in ClickUp.

How it works

  1. 1An invoice email with attachments lands in Outlook and triggers the run.
  2. 2The PO number and supplier are read so the file can be named and pathed.
  3. 3The PDF attachment is uploaded to R2 at a dated, supplier-scoped key.
  4. 4The R2 object URL is written to Postgres keyed by PO number.
  5. 5A ClickUp task is created with the supplier, PO, and a direct link to the archived invoice for review.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect OutlookMail, calendar, contacts.
  2. 2
    Connect Cloudflare R2Object storage, S3-compatible.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Connect ClickUpDocs + tasks + chats in one workspace.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.