Schedule logo
Cloudflare D1 logo
Slack logo

Workflow template

Send overdue paid orders to Slack

Post the IDs of paid orders still awaiting shipment after two business days. An empty result leaves the channel quiet.

How it works

Send overdue paid orders to Slack

1 Trigger · 2 Actions
Schedule1 · Trigger

Daily schedule

Run automatically on the configured schedule.

Cloudflare D12 · Action

Find overdue paid orders

Run a statement with bound values, or send a batch. Each row in the results uses the column names from your query.

Slack3 · Action

Post the overdue order IDs

Send text, Block Kit content, attachments, or a thread reply to a channel.

Before activation

Set up your workflow

  1. Check the order fields

    Select the database containing orders. The query reads order_id, paid_at and shipped_at. Map your column names in the SQL if they differ. Use UTC dates for payment and leave shipped_at NULL while shipment is pending.

  2. Review when an order is overdue

    The query counts Monday through Friday using UTC calendar dates. A payment made on Friday first appears on the following Wednesday if it still has no shipment date. The query returns no row when the backlog is empty.

  3. Choose the report time and channel

    Set the daily schedule to a time your team monitors. Connect Slack, select the operations channel and invite the FastHook app if the channel is private.

  4. Check a report before relying on it

    Use a test order paid more than two business days ago. Confirm its ID appears in Slack. Give it a shipment date and run again with no other overdue orders. The Slack step should be skipped.

Explore connected apps