- Use cases
- Schedules
How to download invoices automatically every month
How to download invoices automatically from several supplier portals each month, with email rules, accounting integrations or an AI agent that signs in.
Updated 7 min read
On this page: 7 sections
To download invoices automatically from several portals, you need something that signs in to each one, finds last month's invoice and saves the PDF where you keep your books, once a month, without you. Email rules handle suppliers that attach the PDF to an email, and accounting tools fetch bills from the suppliers they connect to. For portals that do neither, an AI agent working a browser tab can use your saved sign-in and download each file.
Why invoice portals make this tedious
Many suppliers no longer email the invoice itself. They email a notice that it's ready and ask you to sign in. Each portal keeps it somewhere different: Billing, Account, Documents, a menu behind your name. Some list PDFs, some show the invoice as a web page with a Print button, some offer a CSV of line items. Sign-ins expire, and many portals ask for a code from your phone.
None of it is hard. It's ten small detours on the first working day of every month, and the month you skip one is the month your accountant asks for it.
The manual way
By hand, the routine looks like this:
- Open the first portal and sign in, with a code if it asks.
- Find the billing or documents page.
- Filter or scroll to last month.
- Download the PDF, or print the page to PDF if there's no file.
- Rename it to something you'll find later, such as
2026-10 Hosting INV-20418.pdf. - Move it to the month's folder, or upload it to your accounting tool.
- Repeat for every supplier.
Steps 2 to 6 are the same every month, which is what makes them worth automating. The sign-in and the code are what make it awkward.
Your options
| Option | Works well when | Falls short when |
|---|---|---|
| Email rules or forwarding | The supplier attaches the PDF to its email | The email only says "sign in to view your invoice" |
| Accounting-tool integrations | Your tool connects to that supplier directly | The supplier isn't on its list |
| A browser agent | The invoice sits behind a sign-in on a website | A portal forbids automated use or shows a CAPTCHA every visit |
Email rules are the place to start. A Gmail filter or an Outlook rule can label, forward or file every message from a supplier's billing address. Many accounting and expense tools give you an address to forward bills to, so a rule plus that address covers every supplier that sends attachments.
Integrations come next. Some accounting and expense tools connect directly to common suppliers and pull bills on their own. Check your tool's list of supported suppliers before you build anything.
An agent covers what's left: the portals where the invoice only exists behind a sign-in. It works the site the way you do, in a browser, so it doesn't need the supplier to offer an export or an API. If you're new to the idea, what an AI browser agent is explains how one works.
In practice you'll mix them: rules for the suppliers that email PDFs, an agent for the rest.
Set up a monthly invoice task
Here is the agenttab version, step by step. The ideas carry over to any browser agent.
- Sign in once in the app's browser. Open each portal in agenttab and sign in yourself. If a portal offers "remember this device" or "keep me signed in", tick it. Sessions and cookies stay on your phone, and the agent reuses them later, so your password never goes into the task.
- Write the task. Use variables for the dates, so the same words work every month.
{last_month}becomes last month's name and{last_month_year}its year when the run starts:
Collect my {last_month} {last_month_year} invoices from these portals:
1. hosting.example/account/billing
2. telecom.example/my-account/documents
3. coworking.example/member/invoices
4. software.example/settings/billing
For each one, find every invoice dated in {last_month} {last_month_year}
and download the PDF into Invoices/{last_month_year}-{last_month}.
Name each file: supplier, invoice number, amount.
If an invoice only shows as a web page, save the page as a PDF.
Don't change any settings and don't pay anything.
If a portal asks me to sign in or for a code, ask me.
If there's no invoice for the month yet, say so and go on.
Finish with a table: Supplier, Invoice number, Date, Amount, File.
- Run it once and watch. You'll see where each portal hides its invoices and whether any of them wants a fresh sign-in. Adjust the wording until it finishes cleanly. How a run works shows what you'll see.
- Save it and schedule it. Save the run as a task called "Monthly invoices" and schedule it monthly, on day 1 at 09:00. If a supplier issues invoices a few days into the month, use day 3, or give that supplier a task of its own.
The agent's download tool saves a file with the tab's sign-in: it sends the same cookies the portal set when you signed in, so a link that only works for a signed-in customer still downloads. Files land in the Downloads folder in agenttab's Files, in any subfolder you name. When the run finishes, its result lists every file it saved next to the table.
On iPhone
iOS decides when a background run starts, so a 09:00 run on day 1 can start late. agenttab also sends a notification at 09:00; if the run hasn't started, tap it to start it.

When a portal asks for a code
Two-factor sign-in is the main reason invoice downloads resist automation, and it's there for good reason. An agent shouldn't get around it, and agenttab's doesn't. When a portal asks for a code or a fresh sign-in mid-run, the agent stops and asks you. In a scheduled run that question arrives as a notification, and the run waits for you.
You can answer in two ways:
- Reply with the code. Answer from the notification or in the chat. The agent only types a code you gave it in that chat, and never puts in a password on its own. Your reply is part of the chat, so it goes to your model provider like the rest of the run.
- Take over the tab. Open the run, tap Take over, sign in yourself, then Hand back. The agent carries on from there, and the code stays out of the chat.
To make it rarer:
- Tick "remember this device" where a portal offers it.
- Schedule the run for a time you're usually around, say 09:00 rather than 03:00, so a code request doesn't sit unanswered. On Android a scheduled run waits up to 30 minutes for an answer. On iPhone, if background time runs out while it waits, the run pauses; answering the notification opens agenttab and the run carries on.
- If a portal shows a CAPTCHA on every visit, take it off the list. The agent won't try to solve it, and agenttab's terms of use rule out getting around one.
How agenttab handles the files and your data
- Where files go. Downloads sits inside agenttab's Files screen, with previews, renaming, moving, sharing and deleting. On iPhone the same folder also shows in Apple's Files app under agenttab, so you can move a month's folder into your cloud drive. On Android you share or export files from the app's Files screen.
- Pages without a PDF. The agent can save a page as a PDF, which covers portals that only show invoices on screen.
- A record of each run. Every run keeps a step log with screenshots, so you can see where it found each invoice.
- What the model sees. To find the invoices, the agent reads the page text and, unless you turn them off, screenshots. Those go to the model provider you chose, with your key, straight from your phone; agenttab has no server in between. The first run shows exactly what is sent and to whom, and nothing goes until you tap Allow. If you'd rather invoices stay on your own hardware, you can use a model on your own computer. The privacy policy has the details.
- Cost. You pay your provider for the tokens a run uses, and every run shows its cost. A run that visits four portals uses more than one that checks a single page; what an AI agent run costs explains how tokens add up.
- Starting it by voice. On iPhone you can say "Run Monthly invoices in agenttab". Siri reads back the answer and shows a card that opens the chat.
Timed runs only go ahead if you've given the data-sharing OK for your current provider. If it's missing, the run is skipped and you're notified. More on rhythms and phone differences is in schedule recurring web tasks. For a weekly chore built the same way, see how to track competitor prices weekly.
FAQ
Can I download invoices automatically without sharing my passwords?
Yes. You sign in once yourself in the app's browser, and the agent reuses that session. Your password isn't in the task, cookies stay on your phone, and your credentials are never sent to agenttab.
What if an invoice isn't ready on the 1st?
The task tells the agent to say so and move on, so the result shows which supplier was missing. Move the schedule to a later day, or give the slow supplier a task of its own on a later date.
Does it work with two-factor authentication?
Yes, with you in the loop. When a portal asks for a code, the run stops and asks you through a notification. You reply with the code, or take over the tab and sign in yourself.
Where do the downloaded invoices go?
Into the Downloads folder in agenttab's Files, in whatever subfolder the task names. On iPhone that folder also appears in the Files app. On Android you can share or export files from the app's Files screen.