FlowRunner
Features Pricing
Theme
Start Free

Emailed supplier invoices read by Extracta.ai and booked in QuickBooks

Extracta.ai reads each supplier invoice that reaches your AP inbox. A new invoice whose lines add up becomes a QuickBooks bill with the PDF attached. The rest go to AP in Slack.

The prompt

When a supplier emails an invoice to our AP inbox in Gmail, send the PDF to our Invoices extraction in Extracta.ai and get back the supplier, invoice number, dates, line items, tax and total. Find the supplier as a vendor in QuickBooks Online, and if QuickBooks doesn't have them, tell AP in Slack. Otherwise check that the lines and tax add up to the total and that there's no bill with the same number from that supplier yet. If both are fine, create the bill on our expense account with one line per invoice line and attach the PDF. If not, ask the AP clerk in Slack what's wrong, with Book it and Hold it buttons, and wait for the answer. If Extracta.ai can't read the invoice, send it to AP in Slack.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

No Yes No Yes No Yes Starts the flow New invoice email If a step fails If Extracta.ai can'tread it Action Keep the file link Action Tell AP thesupplier is new Action Check for aduplicate bill Action Save the invoice Action Read the invoicein Extracta.ai Action Find the supplierin QuickBooks Condition Supplier inQuickBooks? Action Send the unreadinvoice to AP Action Find the expenseaccount Action Use the fresh copy Code Write the question forthe AP clerk Action Attach the invoiceto the bill Condition Book it? Code Check the invoice Condition Adds up and new? Action Create the bill Asks a person Wait for the APclerk's answer Action Confirm theinvoice is held Asks a person Ask the AP clerk Action Save a fresh copy

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. New invoice email Checks the AP inbox in Gmail every 5 minutes for an email with an attachment and invoice in the subject, and saves the PDF.
  2. Read the invoice in Extracta.ai Sends the PDF to your Invoices extraction in Extracta.ai, which returns the supplier, invoice number, invoice and due dates, line items, tax and total from the fields you set up. If it can't be read, AP gets the file in Slack.
  3. Find the supplier in QuickBooks Looks the supplier up as a vendor in QuickBooks Online. A supplier QuickBooks doesn't know goes to AP in Slack with what Extracta.ai read and a link to the file.
  4. Check the invoice Adds up the lines and tax and compares them with the total, and checks QuickBooks for a bill with the same number from the same supplier.
  5. Create the bill An invoice that adds up and is new becomes a QuickBooks bill with the supplier's invoice number, both dates and one line per invoice line, with the PDF attached.
  6. Ask the AP clerk Anything else goes to the AP clerk in Slack: what Extracta.ai read, what doesn't add up or which bill it repeats, a link to the PDF, and two buttons, Book it and Hold it.
  7. Wait for the AP clerk's answer The run waits for the click. Book it creates the bill with the PDF attached and notes what was flagged in its memo. Hold it keeps the invoice out of QuickBooks and says so in the Slack thread.

Before you turn it on

  • Connect your Gmail, QuickBooks Online and Slack accounts, and enter your Extracta.ai API key from the API page of the Extracta.ai dashboard.
  • In Extracta.ai, set up an Invoices extraction with these field keys: supplier_name, invoice_number, invoice_date and due_date (give an example like 2026-11-30), tax, total, and a List field line_items whose items have description and amount. Put its ID in the flow setting Invoices extraction ID.
  • Set the flow setting Expense account to the exact name of the QuickBooks account supplier bills are booked to.
  • Copy the URL of the block Wait for the AP clerk's answer into the flow setting Answer link. The Slack buttons open it.
  • Pick your Slack channel in the four Slack steps, and narrow the Gmail search to your AP inbox if it shares a mailbox.