Automation · Collections and receivables
Collect overdue invoices over WhatsApp without chasing anyone by hand
How an AI agent reviews the overdue invoices in Alegra every morning, writes over WhatsApp with an approved template and records the payment when it lands.
How do I collect overdue invoices over WhatsApp without reviewing the ledger by hand?
A scheduled task runs at the hour you choose, lists the overdue invoices in Alegra by status and date, matches each one with the WhatsApp contact it belongs to and schedules the collection message using a Meta-approved template. When the customer replies, the Met takes over the conversation: it clarifies the balance, sends the invoice detail and records the payment against the correct documents as soon as the money lands. What gets automated is the discipline of collecting every single day. What gets decided is still yours.
What starts it
At a set time
A task on a recurring (cron) trigger. It runs on its own at whatever hour you set, and early morning is the usual choice. It does not depend on somebody opening the platform, or on the customer writing first.
A task on a recurring (cron) or date and time trigger. It runs on its own, with nobody logged in.
Who runs it
Legra, Head of accounting
Finance and operations team
Receivables are her ground. Legra carries the invoice, payment and bank account tools from the Alegra connector, plus the tone to ask for money without damaging the relationship.
Channels: WhatsApp
What you need connected
- Alegra Invoicing and ERP
- Meteor CRM CRM and sales
5 steps · 10 tools
The procedure, step by step
Each step shows the tool that runs. They belong to the real connector: if one of them stopped existing, this page would not build.
- 1
Build the list of what is overdue
Alegra's invoice listing filters by status, customer and date range. The task pulls what is unpaid and splits it by age, which is what changes the message: you do not write the same way to somebody three days late as to somebody three months late. For the cases that need a closer look, the invoice query returns the full document.
- 2
Match each invoice with its WhatsApp contact
The invoice lives in Alegra and the conversation lives in the CRM, so they have to be joined before anything goes out. Alegra's customer search returns phone and email, and that locates the contact in the CRM. A customer with no phone on file cannot be collected over WhatsApp: they get flagged and routed elsewhere instead of failing silently.
- 3
Schedule the message with an approved template
If the last conversation with that customer is more than 24 hours old, Meta only allows an approved template. That is the only legal path and the one the CRM reminder uses. The task schedules it with the invoice number, the balance and the due date inside the text, and leaves the internal note of what was chased and when.
- 4
Record the payment the moment it lands
When the customer replies that they paid and sends the receipt, the Met records the payment against the correct invoice or invoices, not against a generic balance, and confirms the receipt number. The list of bank accounts with their balances is there to verify which account the money hit before applying it.
- 5
Flag and escalate whoever does not answer
After two attempts with no reply, pushing over chat stops working and starts annoying. The Met tags the contact, leaves the history of what was tried and transfers the conversation to the person who owns that account, which is the only correct way for a Met to step out of a conversation.
Before you start
What you need ready
The Met solves none of these for you. If one is missing, the automation stops there.
-
An Alegra API token
In Alegra, under Settings, then Integrations, then API. With it the Met reads invoices, balances and accounts, and records payments.
-
A collection template approved by Meta
You register it in the WhatsApp Business manager and Meta reviews it. Without an approved template there is no legal way to write first to somebody who has been silent for more than 24 hours, and no tool replaces it.
-
Your customers' phone numbers in Alegra
The match between the invoice and the conversation runs on the phone number. A customer with no number in Alegra stays out of the WhatsApp collection list until somebody fills the field in.
The limits
What this automation does NOT solve
Better said here than discovered halfway through the rollout.
-
It does not decide who to stop selling to, or when an account goes to legal. That is business judgment and a person makes the call.
-
It does not reconcile bank statements. It lists accounts with their balances and records payments against invoices; the detailed match with the bank is still accounting work.
-
It does not collect the money itself. It creates the conversation and records the payment, but the cash arrives through whatever means you already use; a payment link needs a gateway connected separately.
-
It cannot write first in free text. Outside the 24 hour window only approved templates go out, so the first message always has the shape Meta approved.
FAQ
Questions about this automation
The 24 hour window opens and from there the conversation is normal: the Met can send the invoice detail, clear up balances, negotiate a date and record the payment with no format restrictions.
The list is built at the moment the task runs, with the status Alegra holds right then. The possible gap is hours, not days. Even so, the Met's first rule is to verify the invoice before pushing when a customer says they already paid.
Yes. The invoice listing filters by customer and by date range, so the task can be limited to a group, an age bracket or a minimum amount. That is the sensible way to start: a pilot on the oldest receivables before opening it to everyone.
You can do that. Instead of scheduling the send, the task leaves the list assembled with the proposed text per contact and somebody reviews it. You lose automation and gain control; to get started it is usually the right trade.
Keep going
Other automations built on the same tools
Sales and quoting
Quote over WhatsApp against live Alegra inventory
How do I quote over WhatsApp without having to open Alegra?
Finance and operations
- Starts:
- when the customer writes
- Steps:
- 5, with 12 real tools
- Needs:
- Alegra · Meteor CRM
Collections and receivables
Charge inside the conversation with a Mercado Pago link
How do I charge over WhatsApp without sending people to another app or asking for card details?
Sales
- Starts:
- when the customer writes
- Steps:
- 6, with 11 real tools
- Needs:
- Mercado Pago · Meteor CRM
Collections and receivables
Recover the WooCommerce orders that were left unpaid
How do I recover the orders in my store that were left pending payment?
Sales
- Starts:
- at a set time
- Steps:
- 6, with 12 real tools
- Needs:
- WooCommerce · Mercado Pago · Meteor CRM
Customer service and scheduling
Book, remind and reschedule appointments over WhatsApp
How do I let customers book over WhatsApp without double-booking anyone?
Customer service
- Starts:
- when the customer writes
- Steps:
- 5, with 10 real tools
- Needs:
- Meteor Scheduling · Meteor CRM
Want this automation running on your own data?
We will show it to you with your accounts connected, not with a canned demo.