Skip to main content

Turning Emailed Receipts Into Expenses With an AI Agent (Beta)

Let an AI agent turn receipts and invoices from a dedicated Gmail inbox into expenses in Productive, ready for you to allocate.

Receipts have a way of piling up. A software subscription renews, someone books a flight, a freelancer sends their invoice, and each one lands in a different inbox, waiting for someone to type it into Productive.

The Expense Categorizer agent takes that job off your plate. Point your receipts and invoices to one Gmail inbox, and the agent reads every new email, turns each attached receipt or invoice into an expense in Productive, and labels the email so you can see at a glance what’s done and what needs a second look.

👉 New to agents? Start with AI Agents: Overview.

AI agents are available on the Ultimate subscription plan.

What the Agent Does

Every time it runs, the agent goes through the emails in the inbox that it hasn’t handled yet. For each attachment, it:

  • Reads the document (PDF, JPEG, or PNG) and picks up the date, due date, currency, line items, tax rates, and total

  • Fills in the vendor when it already exists as a company in Productive

  • Creates one expense in Productive, with the file attached

  • Never imports the same attachment twice, so running it again doesn’t create duplicates

When it’s done with an email, it adds a label in Gmail:

  • expense-imported: every attachment on the email became an expense.

  • expense-import-failed: at least one attachment couldn’t be imported, so this one needs a manual look.

The agent skips any email that already has one of these labels, so each email is handled once.

📌 The new expenses are saved without a service, so they’re marked Unallocated. They don’t add cost to any budget or deal until you pick a service for them. That part stays with you, since you know which client or project each receipt belongs to.

Before You Start

You’ll need two things in place:

  • A Gmail inbox just for receipts and invoices, such as expenses@yourcompany.com. The agent works with Gmail inboxes only for now, and a dedicated inbox keeps it away from the rest of your email.

  • Two labels in that inbox, named exactly expense-imported and expense-import-failed. The agent doesn’t create them, so add them in Gmail first.

Setting Up the Agent

Go to Resourcing > Agents and click + Agent.

Under Templates, click Expense Categorizer. This fills in the name, the avatar, and the instructions for you. Then click Create Agent, and the AI Assistant builds the agent and tells you what’s still missing: the inbox and a schedule.

On the agent’s Info tab, click + Connector, choose Gmail, click Connect, and sign in with the receipts inbox’s Google account. The inbox is connected to the agent, not to your own account.

Under Triggers, click + Trigger, choose At a specific time, and set how often the agent should run. Daily at 9:00 AM is a good start.

📌 To try your setup right away, click ▶ (Run now) next to the trigger.

📌 You can read and tweak the instructions on the Info tab at any time. Click Check with AI to have the AI Assistant review your changes before you save.

👉 Learn more about connectors in Connectors, and about schedules in Setting Up Triggers for AI Agents.

Allocating the Imported Expenses

Once the agent has run, the new expenses wait for you in Financials > Expenses. Open the Unallocated expenses view, or filter by Allocation Status = Unallocated.

Open an expense and check what the agent filled in against the attached file. Then select a service in the Service field, pick whose expense it is in the Author field, and save.

The expense becomes Allocated, adds cost to that budget or deal, and follows your usual expense approval process.

📌 The agent doesn’t fill in the Author field, so until someone does, only people with the View unallocated expenses permission can see these expenses.

Ideas to Get the Most Out of It

  • Send subscription bills straight to the inbox. Change the billing email in your software tools (design, hosting, or project tools) to the receipts inbox, and monthly invoices turn into expenses without anyone forwarding them.

  • Have the team forward travel receipts. After a client trip, team members forward their flight, hotel, and taxi receipts to the inbox instead of entering each one by hand.

  • Ask freelancers and vendors to invoice the inbox. Their invoices become expenses as soon as the agent runs, ready for you to allocate to the right budget.

  • Make allocation a weekly habit. Open the Unallocated expenses view once a week, so costs land on budgets while the numbers still matter.

  • Check the failed label now and then. In Gmail, open expense-import-failed to find the emails the agent couldn’t handle, and add those expenses manually.

👉 Want to see what the agent did on a particular run? Open the trigger’s three-dot menu and select Show Runs. See Managing AI Agents.

Did this answer your question?