# Collect overdue payments with Slack: n8n workflow template

> Started by another system calling it, and works across Gmail and Slack. 19 steps, 3 branches, 1 loop or waits: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/collect-overdue-payments-with-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Money admin](https://millionrounds.com/workflows?category=Money+admin#library)

# Collect overdue payments with Slack

Started by another system calling it, and works across Gmail and Slack. 19 steps, 3 branches, 1 loop or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcollect-overdue-payments-with-slack)

**19 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 3 Logic 9 Service 7

The steps in the order they run, from what starts it.

- 1 **Daily Check 9 AM** Schedule trigger *Starts it*
- 2 **Manual Trigger** Webhook *Starts it*
- 3 **Error Trigger** Error trigger *Starts it*
- 4 **Get Overdue Invoices** Http Request *Service*
- 5 **Format Error** Code *Logic*
- 6 **Has Invoices?** If *Logic*
- 7 **Slack Error Alert** Slack *Service*
- 8 **Process Each** Split In Batches *Logic*
- 9 **Check Reminded Today** Code *Logic*
- 10 **Build Summary** Code *Logic*
- 11 **Not Reminded?** If *Logic*
- 12 **Post Daily Summary** Slack *Service*
- 13 **Calculate Urgency** Code *Logic*
- 14 **Prepare Email** Code *Logic*
- 15 **Route by Urgency** Switch *Logic*
- 16 **Slack Critical Alert** Slack *Service*
- 17 **Send Reminder** Gmail *Service*
- 18 **Update Reminder Count** Http Request *Service*
- 19 **Log Attempt** Http Request *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 19, with 3 branches, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Slack
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Gmail and Slack accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 19 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcollect-overdue-payments-with-slack)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also money admin, with the same services where possible, closest in size first.

- [**Automated event management with Typeform and Stripe** 19 steps · Gmail, Google Calendar](https://millionrounds.com/workflow/automated-event-management-with-typeform-and-stripe)
- [**Monitor bank transactions with Google Sheets and Slack** 19 steps · Email, Google Sheets](https://millionrounds.com/workflow/monitor-bank-transactions-with-google-sheets-and-slack)
- [**Automate GST/VAT tax returns with OpenAI and Gmail** 19 steps · calls a model · Gmail](https://millionrounds.com/workflow/automate-gst-vat-tax-returns-with-openai-and-gmail)
- [**Draft CPQ quotes from Slack with TurboQuote and OpenAI** 19 steps · calls a model · Slack](https://millionrounds.com/workflow/draft-cpq-quotes-from-slack-with-turboquote-and-openai)
- [**Intelligent invoice processing & notification agent** 19 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/intelligent-invoice-processing-and-notification-agent)
- [**Match supplier invoices to purchase orders with Gmail** 19 steps · calls a model · Gmail, n8n data table](https://millionrounds.com/workflow/match-supplier-invoices-to-purchase-orders-with-gmail)
