Spanish SMEs were paid in 80.5 days on average in 2025, 34 % over the 60-day legal maximum, according to CEPYME. Most of that delay is not disputes; it is silence, because nobody reminded anyone at the right moment. A reminder sequence is the most boring and most profitable thing you can hand to a machine, as long as the machine stops at the right point. Here is the four-step sequence we run, the data it needs, the threshold where a person picks up the phone, and the legal limits on both sides of the Atlantic.
Reading time: ~8 minutes.
Two clarifications. This is about business-to-business invoices, a company reminding another company; collecting from consumers is a different trade with its own rules, and we say where below. And the AI does three modest things: it drafts the message in the right tone and language, it reads the reply and classifies it, and it writes the one-paragraph summary a person needs before calling. The timing is a rule engine; the decisions are human.
Why a sequence, and why a machine
CEPYME’s late-payment observatory, published April 7, 2026, puts the average payment period of Spanish SMEs at 80.5 days in 2025, 0.6 days less than in 2024 and still 34 % above the legal maximum; micro-companies worsened to 80.7 days, and the financial cost of trade debt for SMEs reached €1,957 million in the fourth quarter of 2025 alone. The law behind those numbers is Ley 3/2004 as amended in 2010: thirty calendar days by default, sixty as a maximum no contract can extend, and late-payment interest at the European Central Bank rate plus eight points. The US has no equivalent statute for commercial invoices: net 30 is a contract term.
The invoices that hurt are not the ones in dispute. They are the ones nobody chased between day 1 and day 30, because the person who should have done it was closing the month. A sequence removes that dependency; a machine runs it because the work is identical every time, and because a reminder sent on day 3 by a system is less awkward for everyone than one sent on day 25 by the founder.
The four steps
| Step | When | What it says, in one line | What the machine needs |
|---|---|---|---|
| 1. Heads-up | Day −5 | «Invoice 2026-118 for €4,200 is due on the 30th; copy attached with your PO number. Anything missing on our side?» | Payer contact, PO number, due date, the PDF. |
| 2. Gentle nudge | Day +3 | «It seems the payment has not reached us yet; could you tell us when to expect it? Happy to resend or correct anything.» | Invoice status from the ERP, updated daily, so that a paid invoice is never chased. |
| 3. Statement | Day +10 | «Attached is your account statement. Our agreed terms are 30 days; in Spain late-payment interest applies by law. Please confirm a payment date.» | Open items per customer, the contract terms, the legal text for the country. |
| 4. Last notice | Day +20 | «If we have not heard from you by day 30, your account manager will call, and the file moves to our collections process.» | A person’s name, and that person’s approval of this one message. |
Four messages, all by email from a mailbox someone reads, all logged. The machine stops the moment the ERP shows the payment, the moment a reply arrives, and in any case on day 30. The AI is in the drafting, since the same message reads differently to a Madrid wholesaler and a Miami distributor, and in the reading: «we will pay on the 15th» is a promise to pay, «the price is wrong» is a dispute, a bounce is a lost contact, and each goes to a different queue.
When a human must step in
- Any reply. A dispute, a promise to pay, a question, a request for a payment plan, a bounce. The machine classifies it and writes the summary; the person answers. An automated reply to a dispute is how a late invoice becomes a lost customer.
- Day 30. Not day 60, even in Spain where 60 is the legal ceiling. By day 30 you know whether this is forgetfulness or a cash problem, and only a call tells you which.
- Key accounts and large amounts. Set a threshold in euros or dollars above which step 2 already carries a person’s name. Your three largest customers never hear from a machine.
- Signs of distress. A second broken promise, a partial payment with no explanation, a contact who has left. These go to the owner, and often to the credit-hold conversation.
- Decisions. Stopping deliveries, charging interest, handing the file to a collections firm. A person decides, in writing, and the log shows who.
From day 60 the file is a different job, and in our case a different brand: myDebtCollector works on a no-win-no-fee basis because at that stage the tone, the law and the leverage change. The November call list in Collections before Christmas is what the sequence feeds: the machine clears the small, recent, silent invoices so that the calls go to the ones that need a voice.
The legal limits, descriptively
None of this is legal advice; coordinate the templates with your counsel in each country. What we check:
- GDPR, Europe. The accounts-payable contact’s name and email are personal data. The legal basis is usually the contract (Article 6(1)(b)) or the legitimate interest in being paid (Article 6(1)(f)); keep the data to what the reminder needs. Article 22 gives people the right not to be subject to a decision «based solely on automated processing» with legal or similarly significant effects: the machine sends reminders; a person decides on interest, holds and handovers. We covered what data you can use in AI and GDPR (in Spanish).
- AI Act, Europe. If the customer can reply to the machine and the machine answers, that is an interactive AI system under Article 50, applying since August 2, 2026: say it is one, as explained in the chatbot transparency check. Annex III lists systems that evaluate «the creditworthiness of natural persons» as high-risk from December 2, 2027; scoring companies is outside that, scoring the sole traders among your customers is not.
- United States: FDCPA. The Fair Debt Collection Practices Act and its Regulation F define «debt» as an obligation of a consumer for «personal, family, or household purposes», and «debt collector» as someone collecting debts owed to another. A company reminding another company about a commercial invoice is outside the statute. Two cautions: a creditor collecting under a name other than its own, suggesting a third party, is treated as a debt collector; and if any of your customers are individuals, the rules change.
- United States: CAN-SPAM. The FTC’s guide says the law covers business-to-business email: no false header information, no deceptive subject lines, a valid postal address, and an opt-out honored within ten business days for commercial messages. A message whose primary purpose is transactional, about a transaction already agreed or an account balance, is exempt from most provisions but may still not carry false routing information. Our four messages are transactional; the moment one of them sells something, they are not.
- United States: TCPA. The FCC requires prior consent for autodialed or prerecorded calls and texts to a wireless number, says «AI-generated voice calls are illegal unless the consumer has agreed to receive them or the caller is exempt», and bans telemarketing calls before 8 a.m. and after 9 p.m. Practical reading: no robocalls, no AI voice and no automated texts to a customer’s cell in the sequence. Email is the automated channel; the phone is the person’s.
- Pull the aged receivables and count the invoices between 1 and 30 days late that nobody has written to. That number, times the average invoice, is what the sequence is worth in its first month.
- Write the four messages in your own voice, one page, with the stop rules underneath, and run steps 1 and 2 by hand for two weeks before automating anything. The replies will rewrite the templates.
- Name the person for day 30 and set the amount above which they appear at step 2. Then decide what happens at day 60, before you have a day-60 invoice to decide about.
If you want to know what your receivables would look like with the sequence running, the free assessment looks at the aging report and the last three months of reminders, and says where the machine helps and where it would do harm.
Running the sequence inside the bookkeeping you outsource to us is part of myLeanTeam; the invoices that pass day 60 go to myDebtCollector; and when the problem is at the other end of the funnel, finding the customers, that is myOutreach.
Sources
- CEPYME. El esfuerzo financiero de las pymes como consecuencia de la morosidad se cifra en 1.957 millones de euros, press release, April 7, 2026 (Observatorio de Morosidad, second half of 2025). Average payment period 80.5 days in 2025, 34 % above the 60-day legal maximum; €1,957 million in Q4 2025. Accessed October 2026.
- BOE. Ley 3/2004, de medidas de lucha contra la morosidad en las operaciones comerciales, consolidated text. Article 4: 30 calendar days by default, 60 as a maximum that cannot be extended by agreement; Article 7: interest at the ECB rate plus eight points. Accessed October 2026.
- European Parliament and Council. Regulation (EU) 2016/679 (GDPR). Article 6(1)(b) and (f), Article 21, Article 22(1). Accessed October 2026.
- European Parliament and Council. Regulation (EU) 2024/1689 (AI Act). Article 50 and Annex III, point 5(b) (creditworthiness of natural persons); Annex III applies from December 2, 2027 under Regulation (EU) 2026/1744. Accessed October 2026.
- Federal Trade Commission. Fair Debt Collection Practices Act, text. Section 803 definitions of «debt» and «debt collector». Accessed October 2026.
- Consumer Financial Protection Bureau. Regulation F, 12 CFR 1006.2, definitions. «Consumer», «debt» and «debt collector». Accessed October 2026.
- Federal Trade Commission. CAN-SPAM Act: a compliance guide for business. Requirements, transactional or relationship messages, no B2B exception, opt-out within 10 business days. Accessed October 2026.
- Federal Communications Commission. Stop unwanted robocalls and texts, reviewed February 27, 2026. Consent for autodialed or prerecorded calls and texts to wireless numbers; AI-generated voice calls illegal without consent; calling hours. Accessed October 2026.