FlowRunner
Features Pricing
Theme
Start Free

Supplier e-invoices filed or sent for approval in Fatture in Cloud

When a supplier e-invoice arrives, this flow checks the supplier and the supplier order. Clean matches are filed as costs, and the rest wait for the cost center owner in Slack.

The prompt

When a supplier e-invoice arrives in Fatture in Cloud, find the supplier in our supplier list and the supplier order it bills, and compare the invoice with the order. If the supplier is on file, the invoice matches the order within our tolerance and it isn't higher than anything that supplier has billed before, file it as a cost with the invoice file attached and post a note in Slack for the cost center owner. Otherwise ask the cost center owner in Slack, with Approve and file and Hold it buttons, and wait for the answer. If they approve an invoice from a new supplier, add the supplier first.

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 Yes No Action Upload the invoicefile Starts the flow New suppliere-invoice Asks a person Ask the costcenter owner Action File the supplierinvoice Code Prepare the costrecord Code Write the approvalrequest AI agent Check supplier andorder Action Confirm the hold Condition Approved? Condition New supplier? Action List the pendinginvoices Action Add the supplier Code Fetch the invoice file Action Note it for the costcenter owner Code Pick out the newinvoice Condition Clean match? Asks a person Wait for the owner'sanswer

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 supplier e-invoice Starts the flow when an electronic invoice from a supplier reaches Fatture in Cloud.
  2. Fetch the invoice file Finds the new invoice in the queue of e-invoices waiting to be accepted and downloads its file, so the agent can read its lines and the file can be attached later.
  3. Check supplier and order An AI agent looks the supplier up in Fatture in Cloud, finds the supplier order the invoice bills and compares the lines and amount. It also checks whether the amount is higher than anything this supplier has billed before.
  4. Clean match? A known supplier with a matching order inside your tolerance and a normal amount goes straight to filing.
  5. Ask the cost center owner Anything else goes to the cost center owner in Slack with what needs their judgment, a link to the invoice file and two buttons, Approve and file and Hold it.
  6. Wait for the owner's answer The run waits for the click. Hold it says so in the Slack thread and leaves the invoice in the pending queue, unfiled.
  7. Add the supplier When the owner approves an invoice from a supplier that is not on file yet, the flow first creates the supplier in Fatture in Cloud with its name and VAT number.
  8. File the supplier invoice Uploads the e-invoice file and records the invoice as a cost in Fatture in Cloud with its amounts, due dates and file attached. A note in Slack records that it was filed.

Before you turn it on

  • Connect your Fatture in Cloud and Slack accounts. If your Fatture in Cloud login reaches more than one company, set the Company ID in the Fatture in Cloud settings.
  • Add your Anthropic key in the flow setting Anthropic key.
  • Copy the URL of the block Wait for the owner's answer into the flow setting Answer link. The Slack buttons open it.
  • Set the flow setting Price tolerance percent to how far an invoice may differ from its order and still be filed without asking.
  • Pick your Slack channel in the three Slack steps.