FlowRunner
Features Pricing
Theme
Start Free

Shopify orders to checked e-invoices in Fatture in Cloud

Each new Shopify order becomes an e-invoice in Fatture in Cloud, priced, scheduled and checked against the schema, and filed only after finance says yes in Slack.

The prompt

When a new order comes in on our Shopify store, find the customer among our clients in Fatture in Cloud and check the record has what an e-invoice needs: a recipient code or certified email for a business, a tax code for a private person. If it doesn't, tell finance in Slack what's missing. Otherwise build the invoice from the order with our own numbering series, payment methods and VAT types, price it, create it with a payment schedule and check it against the e-invoice schema. Then ask our finance owner in Slack, with File it and Leave it with me buttons, and file it with the exchange system only if they say so.

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

The flow

Yes No Yes No Code Write the question forfinance Asks a person Ask the financeowner If a step fails Invoice step failed Condition File it? Condition Client ready for ane-invoice? Action Create the invoice Action Price the invoice Action Tell financewhat's missing Action Check it againstthe schema Asks a person Wait for the financeowner's answer Starts the flow New Shopifyorder Action Read the order Code Write up the order AI agent Prepare the invoice Action File the e-invoice Action Tell finance itneeds a look Code Write the paymentschedule Action Confirm theinvoice is held Action Read the invoicesettings

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 Shopify order Checks your Shopify store every 5 minutes for new orders and reads each one in full: lines, discounts, shipping, tax and payment status.
  2. Prepare the invoice An AI agent finds the client in Fatture in Cloud by email or name and checks the record has a recipient code or certified email for a business, or a tax code for a private person. It builds the lines and due date from the order, with the VAT type that matches the rate Shopify charged on each line, using only the numbering series, payment methods and VAT types your company has.
  3. Client ready for an e-invoice? When the client is missing or incomplete, finance gets a Slack message saying what to add, and no invoice is created.
  4. Price the invoice Fatture in Cloud prices the invoice before it exists, with your VAT types and split payment where it applies. The amount due becomes the invoice's payment schedule.
  5. Create the invoice Creates the e-invoice with its lines and payment schedule, so it has a due date and shows as overdue if it goes unpaid. Nothing is sent yet.
  6. Check it against the schema Checks the invoice against the exchange system's schema without sending anything. If this or any other invoice step fails, finance hears about it in Slack and nothing is filed.
  7. Ask the finance owner Posts the invoice number, client, totals and payment status to finance in Slack, with anything worth a look and two buttons, File it and Leave it with me.
  8. Wait for the finance owner's answer The run waits for the click, because filing can't be recalled. File it sends the invoice to the exchange system, and Leave it with me says in the Slack thread that the invoice is in Fatture in Cloud and not filed.

Before you turn it on

  • Connect your Shopify, Fatture in Cloud and Slack accounts, and enter your Shopify store domain. 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 finance owner's answer into the flow setting Answer link. The Slack buttons open it.
  • Pick your Slack channel in the four Slack steps.
  • Give each client in Fatture in Cloud the email address they order with in Shopify, so the agent finds them.