Webinar: From Inbox to Approved: Smarter Approval Workflows with EzzyBills (Register)

Skip to main content

EzzyBills User Guide

Email Agent

What is Email Agent for

Email Agent processes your AP emails automatically. It routes bills and other files to the right workflow, based on your prompt.

If you have multiple workflows, you can tell the agent which one to use. For example, a Procore user may have two workflows: Procore PO Check for bills with a matching PO in Procore, and Procore Direct Cost for everything else. Give the agent enough detail in the prompt and it will direct each supplier invoice to the correct workflow.

How to set up

In EzzyBills, go to Email Agent and follow the setup steps.  [screenshot]

Important: Email Agent works only with email sync. It has no effect on emails sent to your @ezzybills address. Both O365 and Gmail are supported.

To activate, follow the instructions on the Email Agent page. You need to:

  1. Enable email sync in automated mode.
  2. Add your Email Agent instructions (the prompt).

The agent will then route email attachments according to your instructions. It supports all existing email rules, plus many more features.

Start Email Agent

After set up, click “Go to Email Agent” to open the Email Agent in a new web browser tab. [Screenshot]

Example prompt

  • If there are multiple attachments, only process the attachment that is an invoice.
  • If an attachment is less than 1000 bytes, ignore it.
  • Do not process if the file type is PNG.
  • If the email is from sales@ezzydoc.com, export as a sale invoice.
  • Exclude attachments whose filename matches this regex rule: ^img_\d+\.jpg$
  • Ignore all emails without attachments.
  • Only process emails where the subject contains the word ‘invoice’.
  • If the invoice contains a purchase order number that exists in Procore, send it to the “Procore PO Check” workflow. Otherwise, send it to the “Procore 1-level Approval and Direct Cost” workflow.
  • If the supplier is “ABC”, use the workflow “ABC Workflow”.
  • If the supplier is a new supplier, send for approval.

Good to know

  • The prompt can hold many filter rules. Most importantly, it routes documents to where they need to go, with no human intervention.
  • The agent can read the full email body. If the body contains something important, such as a delivery address, tell the prompt to read it and save it. An AI task can then use it later.
  • You can use the prompt to set up email filters. All existing email filters in Settings > Email are supported in the prompt. This lets you enable the agent and have it work only on selected emails. If you add no restrictions, all emails are processed.
  • You can use the prompt to direct a document to a specific workflow.
  • Tip: Enable the agent and restrict it to one sender email address in the prompt. You can then test your prompt on invoices without affecting normal processing.
  • Tip: If something you ask for in the prompt is not supported, email support@ezzydoc.com and we can add it.

How it works

The agent looks at the email, all its attachments, your connected systems (for example, PO numbers) and your workflows. It then routes the documents based on your agent description.

In this example, the PO order number on the supplier’s invoice was found in Procore, so the invoice was exported to Procore to match this PO.

You can stop the agent any time: click the Active button at the top of the page, and click “Stop Agent“.

Email tagging

Every email the agent processes is automatically tagged EzzyBills. This shows you which emails EzzyBills has processed, which is important when you process emails selectively.

A green tag means the email was processed. An email with no tag was ignored.  [screenshot]

Email Agent screen [screenshot]

  • All new emails appear in the New folder.
  • If a document needs human intervention (for example, “PO not found”), it stays in the New folder with a check PO link.
  • Completed emails appear in the Completed folder. A document is not complete until all attachments have been processed (that is, exported).
  • The original email and attachments are shown.
  • All links are shown in the Email Agent, for example Xero, Simpro and check PO.

Availability

  • Email Agent is available on all accounts. Just activate it.
  • The Email AI Agent is intended for users on E50+ subscription plans. During the initial beta phase, it can be offered to anyone at a special introductory price. Please email support@ezzydoc.com if you have any questions.

 

Sections of Article