FlowRunner
Features Pricing
Theme
Start Free

Weekly overdue invoice reminders from weclapp

Each week this flow emails a reminder with the invoice PDF for every overdue weclapp invoice, and hands the long overdue ones to your controller in Slack instead.

The prompt

Every week, find the open invoices in weclapp that are past their due date. For each one, load the invoice and the customer and download the invoice PDF. If it's no more than 30 days overdue and the customer has an email address, send them a payment reminder from Gmail with the PDF attached. If it's later than that, or there's no email, don't send anything. Post it to our controller in Slack instead, with the PDF, what the invoice shows about payments and reminders already sent, and the customer's other open invoices.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

Repeats for each item For each overdueinvoice Action Find overdueopen invoices

Inside the loop: For each overdue invoice

No Yes Action Download theinvoice PDF Action Load the invoice Action Email the customera reminder Action Load thecustomer Condition Controller's call? Action Find the customer'sother open invoices AI agent Write the controller'sbrief Code Work out how late itis Asks a person Hand it to thecontroller

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. Find overdue open invoices Lists the weclapp invoices with payment status Open whose due date has passed.
  2. For each overdue invoice Runs the steps below once for each invoice on the list.
  3. Load the invoice Loads the full invoice with its payment and dunning state, and saves the invoice PDF weclapp generated so it can go out as an attachment.
  4. Controller's call? An invoice more days overdue than the Controller after days setting, or one whose customer has no email in weclapp, goes to the controller. Every other invoice gets a reminder.
  5. Email the customer a reminder Sends a payment reminder from Gmail with the invoice PDF attached.
  6. Write the controller's brief Looks up the customer's other open invoices, then an AI agent sums up the invoice, the payments and reminders it shows, and the customer's other open items. It does not recommend an action.
  7. Hand it to the controller Posts the brief and a link to the PDF in Slack. No reminder goes to the customer, so the controller decides what happens next.

Before you turn it on

  • Connect your Gmail and Slack accounts, and enter your weclapp tenant and API token.
  • Add your Anthropic key in the flow setting Anthropic key.
  • Set how many days overdue an invoice can be before it goes to the controller in the flow setting Controller after days. It starts at 30.
  • Give the flow a weekly schedule, for example Monday morning.
  • Pick your controller's Slack channel in Hand it to the controller, and change the wording in Email the customer a reminder if you want your own.