Portfolio  /  Automation

Client
Budget Tracker

A Cloudflare Worker that pulls time and cost data from ClickUp and HubStaff each month, calculates each client's budget consumption, and posts a formatted summary to Slack — with no manual input from the team.

Cloudflare Workers ClickUp API HubStaff API Slack API Cron Triggers TypeScript
Monthly
Auto-runs
2
Data sources
Slack
Delivered to
The Problem

Tracking how much of each client's monthly budget had been used required manual work every month.

The team tracked time in HubStaff and managed tasks and estimates in ClickUp. At the end of each month, someone had to export reports from both tools, reconcile the hours against each client's budget, calculate the remaining allocation, and post a summary in Slack. This took time, was prone to copying errors, and sometimes got skipped.

The team needed the report to appear automatically, with no manual steps, pulling the actual numbers from both systems and formatting them clearly.

What Was Built

A monthly reporting worker that runs itself.

Cron-Triggered Execution

A Cloudflare Workers cron trigger fires on the first day of each month at midnight. No server needs to be running, no job needs to be queued, and no one needs to remember to run anything. The worker starts, runs the full report cycle, and exits.

Two-Source Data Pull

The worker calls the ClickUp API for task estimates and project budgets, and the HubStaff API for logged hours and member rates. It joins the two datasets by project, calculates hours used against the budget, and flags any client over 90% consumption for the team's attention.

Formatted Slack Post

The report is posted to a Slack channel using the Slack API with block-kit formatting. Each client appears on its own row with hours used, total budget, percentage consumed, and a colour-coded status tag. The post is timestamped and attributes both source systems.

The Outcome

The report appears on the first of every month without any action from the team.

Zero manual work per reporting cycle

No exports, no copy-paste, no Slack message to draft. The worker handles the full cycle from API calls to Slack post. The team sees the report when they open Slack, with no lag and no dependence on anyone remembering to run it.

Both tools reflected in one number

HubStaff hours and ClickUp budgets are merged before the report is posted. The team no longer needs to open two tools and reconcile the figures themselves — the worker does the join and shows a single consumption percentage per client.

Near-limit clients flagged automatically

Clients who have consumed more than 90% of their monthly budget are highlighted in the Slack message with a warning tag. The team can act on overruns before the month ends, rather than discovering them in the following month's report.

Start a project

Have something similar in mind?

We build workflow automation, API integrations, and reporting tools that run on a schedule and get out of your team's way.