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.
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.
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.
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.
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.
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.
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.
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.
We build workflow automation, API integrations, and reporting tools that run on a schedule and get out of your team's way.