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
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
- New supplier e-invoice Starts the flow when an electronic invoice from a supplier reaches Fatture in Cloud.
- 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.
- 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.
- Clean match? A known supplier with a matching order inside your tolerance and a normal amount goes straight to filing.
- 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.
- 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.
- 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.
- 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.