Accounts payable workflows depend on two things: a consistent filename so the same document can be found a year from now, and a per-vendor folder so historical spend with each supplier is visible at a glance. This prompt combines both. It extracts the invoice date, vendor name, and total amount from the content of each invoice, renames the file to a canonical YYYYMMDD - Vendor Name - $Amount format, and drops the renamed file into a folder named after the vendor. The result is a finance archive that is sortable by date inside each vendor folder, searchable by vendor across the archive, and immediately legible without opening any file.
Vendors/
Acme Office Supplies/
20260112 - Acme Office Supplies - $342.18.pdf
20260208 - Acme Office Supplies - $187.50.pdf
20260314 - Acme Office Supplies - $912.04.pdf
Cascade Cloud Hosting/
20260101 - Cascade Cloud Hosting - $1200.00.pdf
20260201 - Cascade Cloud Hosting - $1200.00.pdf
20260301 - Cascade Cloud Hosting - $1450.00.pdf
Northstar Logistics/
20260115 - Northstar Logistics - $4280.75.pdf
20260220 - Northstar Logistics - $3915.20.pdf
Pinewood Print Shop/
20260206 - Pinewood Print Shop - $612.00.pdfVendors/
Acme Office Supplies/
2025/
20251006 - Acme Office Supplies - $245.00.pdf
20251118 - Acme Office Supplies - $402.55.pdf
2026/
20260112 - Acme Office Supplies - $342.18.pdf
20260208 - Acme Office Supplies - $187.50.pdf
Cascade Cloud Hosting/
2025/
20251201 - Cascade Cloud Hosting - $1200.00.pdf
2026/
20260101 - Cascade Cloud Hosting - $1200.00.pdf
20260301 - Cascade Cloud Hosting - $1450.00.pdf
Northstar Logistics/
2026/
20260115 - Northstar Logistics - $4280.75.pdf
20260220 - Northstar Logistics - $3915.20.pdfVendors/
Acme Office Supplies/
Paid/
20260112 - Acme Office Supplies - $342.18.pdf
20260208 - Acme Office Supplies - $187.50.pdf
Unpaid/
20260314 - Acme Office Supplies - $912.04.pdf
Cascade Cloud Hosting/
Paid/
20260101 - Cascade Cloud Hosting - $1200.00.pdf
20260201 - Cascade Cloud Hosting - $1200.00.pdf
Unpaid/
20260301 - Cascade Cloud Hosting - $1450.00.pdf
Northstar Logistics/
Paid/
20260115 - Northstar Logistics - $4280.75.pdf
Unpaid/
20260220 - Northstar Logistics - $3915.20.pdfThe vendor name is not detected because the invoice uses a parent company name.
Provide a mapping in the prompt.
The amount in the filename is incorrect because the invoice has multiple totals (subtotal, tax, total).
Specify which total to use.
Some invoices have no date in their filename or content.
Fall back to the file modification date.
Recurring monthly invoices from the same vendor all look identical after renaming.
Include the invoice number or billing period.
Only when content-based sorting is enabled. For invoice routing this is typically worth enabling. Pair it with Offline mode if invoices contain sensitive financial information and you do not want them sent to the cloud.
Scanned invoices need to be OCRed first so Sortio can read the text. Most modern scanners and tools like Preview on macOS or Adobe Acrobat can produce searchable PDFs. Once OCRed, Sortio extracts vendor, date, and amount the same way it does for text PDFs.
Yes. Sortio organizes the underlying files. Once the filename includes the date, vendor, and amount, attaching invoices to entries in QuickBooks, Xero, or Bill.com is much faster, and audits become trivial.
Download Sortio and paste these prompts to instantly organize your files with AI-powered intelligence.
Download Sortio Free