AroFlo automation · runs daily
Invoice completed AroFlo jobs automatically
Your technicians close a dozen jobs by Friday, and each one still needs Create Final Invoice, a look at the lines, an approval and an email before the client sees a bill.
Cotlet does it in your own AroFlo account with list_tasks, list_invoices, create_invoice_from_task, get_task, get_invoice, approve_invoice and email_invoice, called by your AI agent, an n8n workflow or a script.
Hosted · nothing to install or maintain
Can AroFlo do this on its own?
AroFlo documents this job as manual steps in Office and Field (checked 23 Oct 2026). Periodic Invoicing generates preset invoices at regular intervals with an option to email them, but it covers recurring work only. The API docs show invoice queries by status. No AroFlo feature invoices a batch of completed jobs by a rule you set.
How you do it in AroFlo today
- In AroFlo Office, open the completed task through Workflow > Tasks > Closed, using the search or the task name.
- Click Create Final Invoice at the bottom of the worksheet. For an unquoted job, AroFlo adds all the labour and material from the job sheet.
- Check the lines, then choose Status > Approved and click Save.
- Click Email and tick Invoices to send it, as a PDF attachment or a link to view it online.
- Repeat for the next task. The Invoices List, filtered by In Progress, Pending Approval or Approved, shows what is stuck between steps.
How to invoice completed AroFlo jobs automatically
List AroFlo tasks completed since Monday. Skip any job that already has an invoice, create the final invoice for the rest, and show me the lines. Approve and email only the unquoted ones. - 01
Find the finished jobs
Your agent reads the Closed view with status Completed and a start date from your prompt, and follows next_cursor to the end. Each job keeps its task_id, job number and client for the later steps.
- 02
Skip jobs already invoiced
For every job it searches the invoices by job number, one of the fields the Invoices List searches. Any hit means someone invoiced it by hand, so the job goes on the "already done" line and nothing is created.
- 03
Create the final invoice
create_invoice_from_task runs once per remaining job, in the order the list gave them. The agent stops on the first failure, so a job that is not Completed never gets a half-built invoice.
- 04
Read before approving
get_task shows whether a quote sits behind the job, and get_invoice returns the lines. An invoice with no lines, a zero total or a quoted job is held back for you, because AroFlo documents the automatic fill only for unquoted jobs.
- 05
Approve, then send
approve_invoice runs only for invoices that passed the check, since an Approved invoice cannot be edited. email_invoice goes to the address you name, as a PDF or a link. Both wait for your OK by default.
What you get back
Completed since Monday: 7 jobs
Already invoiced by hand: 2
Invoiced, approved and emailed: 4, e.g. Harbour Café, 3 h labour and 1 part, $840.00
Held back for you: 1 (Northside Strata, quoted job, lines differ from the quote) Other ways to ask
- Every Friday at 4 pm, create final invoices for tasks completed this week and leave them In Progress for me to review.
- Email the invoices I approved yesterday that were never sent, as a link to view online.
- Show completed jobs with no invoice older than 7 days, but create nothing.
What AroFlo allows, and what to know first
- AroFlo Field raises Final Invoices only on completed tasks, and part invoices only on tasks still in progress.
- An Approved AroFlo invoice cannot be changed; set it back to In Progress or Pending Approval and save to edit it.
- An invoice must be Approved before AroFlo pushes it to your accounting package.
- AroFlo needs the invoice saved before it can be printed or emailed to the client.
- The Invoices List searches by Invoice No, Task Ref, Job Number, Cust. Order No or client name.
create_invoice_from_task, approve_invoice and email_invoice ask for your OK by default. To run it daily without you, switch confirmation off for those tools in your dashboard.
Sources: AroFlo Help: Create an Invoice for a Completed Job (Office) · AroFlo Help: Invoice Status · AroFlo Help: Send an Invoice · AroFlo Help: Invoices List · AroFlo Help: Periodic Invoicing
Call email_invoice from a script
curl -X POST https://cotlet.dev/api/v1/aroflo/invoices/inv_2041/email \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"accounts@harborcafe.example","format":"pdf"}' {
"invoice_id": "inv_2041",
"invoice_no": "2041",
"status": "Approved",
"sent_to": "accounts@harborcafe.example",
"format": "pdf",
"sent_at": "2026-10-23T09:12:00+11:00"
} MCP: add https://cotlet.dev/mcp/v1 with the same key; the call is aroflo_write → email_invoice. Example data.
Schedule it in n8n, Make, Zapier or cronAroFlo tools this automation uses
| Tool | Parameters |
|---|---|
| list_tasks | view, status, client, search, cursor |
| list_invoices | status, unpaid_only, search, business_units, from, to, cursor |
| create_invoice_from_task | task_id |
| get_task | task_id |
| get_invoice | invoice_id |
| approve_invoice | invoice_id |
| email_invoice | invoice_id, to, format, message |
Frequently asked questions
Is it safe to connect AroFlo to Cotlet?
Yes. You sign in to AroFlo yourself, in your own Cloud Browser in the EU, and we never save your password. Your agents only get AroFlo once you enable it, every background request is listed, and the browser profile is stored encrypted with AES-256-GCM, the cipher 1Password uses for its vaults. The AI model never sees a login, posts and messages wait for your OK, and Disable for agents cuts access in one click. Independent scanners grade cotlet.dev A+ on Qualys SSL Labs, securityheaders.com and Mozilla Observatory; live results are on https://cotlet.dev/security.
Give your agent access to AroFlo.
Free 7-day trial with 2,000 credits, no card needed. Cotlet is independent and not affiliated with AroFlo.