What can you use this flow for?
- Automatically remind customers of due and overdue invoices.
- Escalate unpaid invoices to the finance team via Telegram.
What you need before starting
- An n8n instance and a Google Sheet of invoices with valid due dates and payment statuses.
- Google service account, SMTP account and Telegram bot for escalations.
How to set it up
- Request the premium package and import the workflow into n8n.
- Connect Sheets, SMTP and Telegram credentials; share the invoices sheet with the service account.
- Configure reminderDays, timeZone, paymentInstructions, sender address and adminChatId.
- Test a dummy invoice across due dates, then mark it paid in the sheet to confirm reminders stop.
Payment status is read from your invoice sheet. This flow does not confirm bank transfers automatically.
The package includes detailed installation, configuration and troubleshooting guides.
Works with
- Google Sheets
- Telegram
Requirements
- Google service account (JSON key)
- SMTP account of your mail provider, for the invoice emails
- Telegram bot, for escalations (optional)
You connect your own accounts inside your n8n. Jervis never sees or stores your credentials.
Settings you'll fill in
- Invoices spreadsheet
- The spreadsheet's URL or id. Share it with the service account email as Editor.
- Invoices tab
- The tab with your invoices, one row each, under a header row (see docs/configuration.md). The flow adds its own columns to the right.
- Business name
- Shown in the emails and their subject.
- Sender
- The address invoice emails come from, optionally with a name. Your SMTP provider must allow it.
- Reply-to address (optional)
- Where customer replies go, e.g. your accounts inbox. Optional.
- Time zone
- Your time zone, such as Africa/Cairo or Asia/Riyadh. Due dates and the sending hour follow it.
- Sending hour (optional)
- Emails and escalations go out from this hour on (0 to 20, your time), once a day per invoice.
- Reminder days (optional)
- Days relative to the due date: -3 is three days before, 0 the due date, 7 a week late. Empty: no reminders.
- Escalate after (days late) (optional)
- An invoice still unpaid this many days after its due date is sent to your team on Telegram, once. 0: no escalation.
- Send new invoices (optional)
- "yes": customers get an email when an invoice is added (on its issue date). "no": only reminders.
- Paid statuses
- Values of the status column that mean the invoice is paid; its reminders stop. Any language; case and Arabic spelling variants (ة/ه, أ/ا) do not matter.
- Stop statuses (optional)
- Values of the status column for invoices that get no emails, such as cancelled ones or drafts.
- Open statuses (optional)
- Values of the status column for invoices still to be paid. An empty status is open too. A row with any other status gets no emails and is reported, because it might mean paid.
- Default currency (optional)
- Three-letter currency code for rows with an empty currency column, e.g. EGP or SAR.
- Payment instructions (optional)
- How to pay when there is no payment link, e.g. bank transfer details. Shown in every email. Optional.
- Telegram chat for escalations (optional)
- Chat id of the group or channel that hears about overdue invoices, failed emails and rows to fix. Empty: no Telegram messages and no escalation.
- Language (optional)
- "en" or "ar": the language of the emails (unless a row sets its own) and of the Telegram messages.
Supported runtime
n8n >=2.42.0 <3.0.0
Jervis Runtime support for catalog flows is planned.
Documentation
Installation, configuration, troubleshooting and architecture guides are included in the package.
What's new in 1.0.0
Released October 7, 2026
Added
• Invoices from a Google Sheets tab, read every hour: number, customer, email (up to five addresses), amount,
• currency, issue and due dates (date cells or 2026-10-15), status, payment link, notes and language.
• New-invoice email on the issue date and reminders on configurable days around the due date (default 3 days
• before, on the day, 3 and 7 days late; the last one says so), HTML with a plain-text part, in English or Arabic
• (right-to-left), with the amount, dates, payment link and payment instructions.
• Escalation of invoices still unpaid a configurable number of days after the due date (default 14) to a Telegram
• chat, once per due date, together with emails that failed and rows to fix. The message stays within Telegram's
• length and says how many were left for the next one; an escalation counts as told only when Telegram delivered
• the message (or may have: delivery unknown), and is sent again after a refusal.
• Status columns written by the flow in the same tab (followUp, lastEmail, emailsSent, escalatedAt),
• added to the header on first use; the customer's columns are never changed.
• Paid, stop and open statuses (default English and Arabic words, compared without Arabic spelling variants); an
• unknown status is reported instead of reminded. A changed due date starts the reminders again.
• Amounts from number cells, or text only in an unambiguous form (18,500.50); comma decimals and dotted
• thousands are reported. Three decimals for BHD, IQD, JOD, KWD, LYD, OMR and TND.
• Safeguards: emails only from the sending hour in the business's time zone, one per invoice per day, reminders
• at most two days late, at most 30 emails per run; each email claimed in its row before it is sent (not sent
• when the claim cannot be written), never retried, and kept due only when it demonstrably never reached the mail
• server; memory kept before the sheet is written; runs stopped after 45 minutes; invalid, duplicate and overlong
• invoice numbers reported instead of emailed; invisible direction characters removed and sheet values isolated
• in Arabic and English messages.
• Import-tested in a clean n8n 2.42.3 against fake Google Sheets, Telegram and mail server, including a refused
• login, a refused message, overlapping runs, an unwritable sheet and Telegram refusals and errors.