Documents recipe

Turn a folder of bills into a spreadsheet, without typing a thing

Every month the bills pile up as PDFs and emails, and someone has to type the vendor, date and total into a spreadsheet by hand.

documents spreadsheet local model privacy Free tier + a local model

What you get

A real Excel file on your desktop with one row per bill: invoice numbers stay text, dates are dates, totals are numbers.

What it does

  1. Read every bill in the folder you choose: PDF, Word or text.
  2. Have the AI on your own PC pick out the vendor, invoice number, date and total.
  3. Add one row per bill to bills.xlsx. A bill that is already there is not added again.

The whole automation, in one file

This is the actual recipe. Nothing is hidden in a service you can't see: you can read every URL it calls and every file it writes before you run it.

{
  "workflow_id": "bills_to_spreadsheet",
  "description": "Reads every bill in a folder you choose, has the AI on this PC pick out the vendor, invoice number, date and total, and adds one row per bill to bills.xlsx on your Desktop. Files that are not bills, and bills already in the sheet, get no row. Nothing leaves this PC.",
  "tasks": [
    {
      "id": "each_bill",
      "trigger": "manual",
      "action_type": "for_each",
      "target": "{{input.bills_folder}}",
      "payload": {
        "match": ".txt,.pdf,.docx",
        "steps": [
          {
            "id": "read",
            "action_type": "file_op",
            "target": "{{item}}",
            "payload": {
              "operation": "read_document"
            },
            "output": {
              "store_as": "bill"
            }
          },
          {
            "id": "pick_fields",
            "action_type": "ai_call",
            "target": "local",
            "payload": {
              "system": "You read documents and reply with JSON only.",
              "prompt": "Read this document and reply with ONLY one JSON object: {\"is_bill\":\"yes or no\",\"vendor\":\"...\",\"invoice_number\":\"...\",\"date\":\"...\",\"total\":\"...\"}. Set is_bill to yes if this is a bill, invoice, statement, or receipt showing a total amount or charge (a receipt number or statement number counts as invoice_number; copy each value as it appears; total as a number without a currency sign). If it is not a bill, invoice, or receipt, set is_bill to no and leave the rest empty.\n\nDOCUMENT:\n{{bill}}",
              "ask_times": 3
            },
            "output": {
              "store_as": "fields"
            }
          },
          {
            "id": "add_to_sheet",
            "action_type": "file_op",
            "target": "{{desktop_dir}}/bills.xlsx",
            "payload": {
              "operation": "add_row",
              "headers": [
                "Vendor",
                "Invoice number",
                "Date",
                "Total",
                "File"
              ],
              "values": [
                "{{fields.vendor}}",
                "{{fields.invoice_number}}",
                "{{fields.date}}",
                "{{fields.total}}",
                "{{item_name}}"
              ],
              "unique_by": [
                "Vendor",
                "Invoice number"
              ],
              "must_appear_in": "{{bill}}",
              "check_columns": [
                "Vendor",
                "Invoice number",
                "Total"
              ]
            },
            "run_if": "{{fields.is_bill}} == yes"
          }
        ]
      }
    }
  ]
}

Download this recipe · Needs a local model runner such as Ollama. No subscription required.

Why this is different

A value only becomes a row if it is really in the document, so a made-up total never lands in your books. Files that are not bills get no row.

Questions

Does anything get uploaded?

No. The AI that reads the bills runs on your own PC.

What if I run it again next month?

Bills already in the sheet are skipped, so only the new ones are added.

Can it watch a folder instead?

Yes. Save it as a drop folder and every new bill you put there becomes a row by itself.

Run it

Vibe Engine (Vibra-Ingenn) runs recipes like this on your own machine. Drop the file in, run it once by hand, then put it on a schedule. Get the engine, see three recipes running, or read how the engine works.

Using an AI assistant? Ask your AI to check out adeptuscamini.com.

Written and maintained by Adeptus Camini, a one-person workshop. These are tools we build and run ourselves.

More recipes

News digest

Get Today's Hacker News Top Stories as a Daily Digest on Your Desktop

Research

Get the trending AI repos delivered, without opening GitHub

Briefing

One briefing instead of five open tabs