Setup guide

Set Up Clockify Unbilled Hours Alerts in n8n: A Step-by-Step Guide

Clockify Unbilled Hours Alert prepares a weekly email showing billable hours by client, their calculated value at the rates you supply, and the oldest included entry. This guide takes you from importing the ready-made workflow through checking your own accounts before enabling weekly runs.

The workflow does not check invoices in your billing app. It relies on the last day you have already invoiced, recorded as invoiced_through in Google Sheets. You update that date after invoicing. The workflow does not write to the sheet or Clockify, and it does not create invoices.

Before you begin

You need a working n8n Cloud account or an existing self-hosted n8n installation, a Clockify workspace, and a Google account for Sheets and Gmail. Use a Clockify workspace owner’s or administrator’s API key so the required team entries can be read. The key connects the workflow to Clockify; it does not belong in the spreadsheet.

Version 1.1 was tested on 17 November 2026 with self-hosted n8n 2.46.4 and 2.48.4. Version 1.0 was tested on 27 October 2026 with self-hosted n8n 2.44.6, Clockify Free, Google Sheets and Gmail. This is the package author’s documented test information. The Cloud Google sign-in route below follows official documentation and was not tested hands-on for this guide.

The download is free. Your n8n plan, other accounts and service usage may have costs. Setting up a self-hosted server is outside this guide.

Explanatory diagram: Clockify and Google Sheets supply data to n8n, which prepares a reviewable report for Gmail. Nothing is written back to the sheet.

The diagram shows the data flow. Sheets holds the invoicing cut-off and hourly rates. A person reviews the report and handles invoicing.

1. Download and extract the correct package

Open the Clockify Unbilled Hours Alert download page and follow its download instructions. Extract the ZIP on your computer before importing it into n8n.

The English package contains clockify-unbilled-hours-alert.json, README.txt, REQUIREMENTS.txt, TESTING.txt, VERSION.txt and test-data/clients-template.csv. The JSON contains the workflow; the other files explain setup and provide a fallback sheet template.

Success check: the extracted folder contains the JSON and instruction files. If you can only see a ZIP, extract it first. Choose the Unbilled package: Retainer Hours Alert is a different workflow for monitoring a monthly hour allowance.

2. Import into a new n8n workflow

Sign in to your own n8n and select Create workflow. In the new workflow’s header, open … / More actions → Import → From file and choose clockify-unbilled-hours-alert.json.

Import into a new empty workflow rather than replacing an automation you already use. Name the first copy something like Clockify Unbilled – setup test and leave it unpublished.

The genuine n8n workflow menu showing Import, captured for the previous guide’s general import step.

The genuine Import submenu showing From file.

These menu images are from the previous n8n guide. Menu positions can vary by version. The English package’s notes, node names, sheet headers and report emails are in English. The Finnish package translates the instruction notes while keeping the other names in English.

Success check: the canvas contains 28 nodes, including five instruction notes. Look for Configuration, Read Clients and Compute Report. If import fails, check the filename and make sure you selected the JSON rather than the ZIP.

3. Run the example without connecting any services

Double-click Configuration and check that run_mode is fixture. This uses the package’s built-in sample. Clockify, Sheets and Gmail connections are not needed, and no emails are sent.

Close the node panel and select Execute workflow. If n8n asks which trigger to use, choose Run Now. After the run, open Compute Report → Output.

Sample clientExpected hoursSample valueOldest entry
Acme Ltd10.5 hUSD 997.503 September 2026
Beta Studio4.0 hUSD 320.0016 October 2026
Gamma Co1.0 hNo hourly rate22 October 2026
Total15.5 hUSD 1,317.50 for the 14.5 priced hours—

Northwind – Brand workshop appears separately with 3.0 hours on a project missing from the client list. Delta is disabled and does not appear. The sample uses a fixed calculation date of 27 October 2026, so the expected result does not change with today’s date. All names and figures are synthetic examples, not client outcomes.

Success check: status is ok and the per-client figures match the table. The email field is a message preview in this mode, not proof of delivery. If your result differs, check fixture first and compare with the supplied TESTING.txt.

4. Make your own Google Sheets copy

Open the Google Sheets copy link from README.txt. Select Make a copy into your own Google account. Your copy gets its own URL; use that URL later rather than the public template link.

Keep the tab name exactly Clients and preserve every column header. Use one sheet per Clockify workspace. Disable the sample rows until you replace their project placeholders with your own IDs.

If the copy link is unavailable, import test-data/clients-template.csv into a new Google Sheet using File → Import. Rename its tab Clients. The CSV’s first two sample rows are enabled (TRUE), so disable them before testing service connections.

Success check: your own Drive contains an editable copy with client_id, enabled, client_label, project_ids, hourly_rate, currency and invoiced_through columns. If you cannot edit it, check that you opened your copy with the correct Google account.

Read-only view of the Unbilled package’s public Clients sheet template: seven columns and sample project placeholders.

This is the original shared template’s read-only view. Make your own copy before editing.

5. Connect Clockify, Sheets and Gmail

A credential is a service connection saved in n8n. The workflow’s nodes are already connected to each other. Select your own service connections in the nodes below.

Service connectionNodes that need it
Clockify APIGet Clockify Projects; Get Clockify Hours; List Clockify Workspaces; List Clockify Projects
Google Sheets OAuth2Read Clients
Gmail OAuth2Send Test Email; Send Unbilled Hours Email; Send Technical Notice

Connect Clockify

Open Get Clockify Projects, use its credential selector and create a Clockify API connection. In Clockify’s profile menu, find Preferences → Advanced → Manage API keys. Use an owner’s or administrator’s key and follow Clockify’s current API-key instructions.

Enter the key only in the connection’s API Key field. Save it and select the same connection in all four Clockify nodes. Keep the key out of Configuration, the spreadsheet and screenshots.

Connect Google services on n8n Cloud

In Read Clients, create a Google Sheets OAuth2 connection using Managed OAuth2 → Sign in with Google. Choose the account that can access your sheet copy. Create the Gmail connection in Send Test Email, then select it in the other two Gmail nodes as well.

Managed OAuth2 does not require your own Google Cloud project or Client Secret. This Cloud route follows n8n’s official instructions, rather than a hands-on Cloud test for this guide.

Connect Google services on self-hosted n8n

Self-hosted n8n needs your own Google OAuth setup. Follow the same official guide’s Custom OAuth2 steps: project, required APIs, consent screen and a Web application OAuth client. Sheets needs the Sheets and Drive APIs; Gmail needs its own API. Copy n8n’s OAuth Redirect URL exactly into Google’s Authorized redirect URIs. Enter Client ID and Client Secret only in the n8n credential and finish Google sign-in. Google’s OAuth client creation guide complements these setup steps.

A genuine empty Client ID field in a self-hosted n8n Google connection, captured for the previous guide.

Success check: each node in the table has the appropriate connection selected. This alone does not prove the services work; the following steps test them. If sign-in fails, first check the Google account, exact redirect URL and any OAuth test-user restriction.

If your custom Google OAuth app is External/Testing, its permission may expire after seven days. Check Google’s token-expiration guidance before relying on unattended runs.

6. Find your Clockify workspace and project IDs

Set Configuration → run_mode to list_ids. Move out of the edited field, close the panel and run manually. Open Your Clockify IDs → Output → Table.

Find the required workspace_name and project_name. Copy that row’s workspace_id for Configuration and its project_id for the sheet’s project_ids cell. You can run this lookup before entering Configuration’s workspace_id.

The billable_by_default column describes a project’s default for new entries. It does not establish that every existing time entry is billable. Check the entries themselves in Clockify too.

Success check: the intended workspace and project appear with their names and IDs. No emails are sent. For 401/403 errors, check the selected Clockify connection and key owner’s role. For a missing project, check the workspace and permissions. Avoid repeated lookups: Clockify Free limits API use to 30 requests per hour per workspace.

7. Complete Configuration and both timezones

SettingWhat to provide
workspace_idThe workspace ID from step 6
billing_timezoneYour calculation timezone, such as Europe/London
owner_emailYour own recipient for tests and reports
sheet_urlThe full URL of your own spreadsheet copy
min_age_daysA whole number of 0 or more; default 7
run_modeNext use test_email or dry_run; do not publish yet

Also open the workflow’s … / More actions → Settings → Timezone and choose the same timezone. The package defaults to Europe/London. billing_timezone defines the calculation’s day boundaries; the workflow timezone determines the weekly run’s local time.

With min_age_days = 7, a normal report is prepared when at least one valid client’s oldest included entry is seven or more days old. That report also contains other clients’ more recent unbilled hours. Invalid sheet rows may produce a message needing attention. Hours on an unlisted project do not trigger a report by themselves in this version.

Setting 0 removes the age wait for existing client hours. It does not force an empty report when there are no included hours or row errors.

Success check: the three account-specific targets are filled in and both timezones agree. If a day boundary or delivery time looks wrong, check both timezones first.

Genuine initial Configuration fields for Clockify Unbilled Hours Alert: fixture, empty account-specific targets, Europe/London and min_age_days 7.

The image shows the initial empty settings. Choose the appropriate timezone and enter your own targets.

8. Fill in one real client row first

Choose a project you are permitted to access and whose entries you can check in Clockify. Enable only one test row initially; keep the other rows disabled.

ColumnExample and purpose
client_idtest-01; a unique, stable row identifier
enabledTRUE or a checked checkbox
client_labelMy Test Client; the name shown in the report
project_idsA real project ID; separate multiple IDs with commas
hourly_rateFor example 87.50; blank means hours only
currencyUSD, EUR or GBP; required when a rate is supplied
invoiced_throughThe last day already invoiced, for example 2026-09-30

With invoiced_through set to 2026-09-30, counting starts on 1 October 2026 and ends yesterday. Do not copy the example date in place of your real invoicing history. Choose the day that reflects what you actually invoiced. The cut-off covers a whole day; it cannot represent only part of a day as invoiced.

Use a decimal point when entering a rate as text. A genuine Sheets number cell can reach n8n as a number despite the sheet’s locale, whereas the text 87,50 is rejected. Enter the date as YYYY-MM-DD text or as a genuine Sheets date cell, which the workflow converts. Check the interpretation in dry_run.

Success check: one enabled row has the intended project, any rate and currency, and the correct invoicing cut-off. If it is later rejected, inspect IDs, date and decimal format first. A client_id must not repeat, and a project must not belong to two enabled clients.

9. Send yourself a test email

Check Configuration → owner_email, set run_mode to test_email and run manually. This sends a real email without reading hours or the sheet.

Its subject is [TEST] Clockify Unbilled Hours Alert: email works. Confirm both the receiving address and Gmail sender.

Success check: the message arrives in your inbox. If it does not, check spam and inspect this execution’s Send Test Email result in Executions, n8n’s run history. Read the error before trying again.

10. Compare your hours without sending a report

Set run_mode to dry_run and run manually. This reads your sheet and Clockify without sending messages or writing to either service.

In Compute Report → Output, inspect results, row_errors, window_end and lookback_start. A client’s unbilled_seconds / 3600 is its precise decimal-hour total. 10.5 h means 10 hours 30 minutes, not 10 hours 5 minutes. The report displays hours rounded to one decimal place; amounts use the underlying seconds and hourly rate.

In Clockify, open Reports → Summary or a Detailed report. Select the same projects, turn on the Billable filter, and use the period from the day after the invoicing cut-off through the result’s window_end. Match the timezone and remove rounding that would change the comparison. If the cut-off predates lookback_start, compare only the included window and check older hours separately.

Success check: matching projects, billable entries and dates give the corresponding seconds total. This guide does not include a newly completed report comparison for your account. If totals differ, do not use live mode yet. Resolve day boundaries, Billable flags, IDs and row errors first.

11. Run one controlled report delivery

Once dry_run agrees with Clockify and the recipient is your own address, temporarily set min_age_days to 0 and run_mode to live. Run once manually. Your test client needs included hours: 0 does not force an empty report.

This sends an actual report or technical notice. It does not change Sheets or Clockify. Check the email’s hours, currency, calculated amount and oldest entry. Different currencies remain separate rather than being converted into one currency.

Success check: the delivered report agrees with dry_run. Running again with unchanged data may send it again. This workflow does not keep the Retainer package’s once-per-month alert markers. After the check, restore your preferred min_age_days, such as 7, and leave the test copy unpublished.

12. Enable Monday runs after the checks pass

For regular use, choose the correct sheet, recipient, live mode and age threshold. Check Every Monday at 08:00 for a weekly Monday run at 8:00, and confirm the workflow timezone. This is not the Retainer package’s daily schedule.

After checking connections, calculation and delivery, select Publish to enable the schedule. Wait for n8n to confirm its publishing status. A successful manual run alone does not enable weekly runs. n8n’s publishing guide explains the difference between a draft and the published version.

To stop automatic runs, choose Unpublish from the publishing menu and confirm. Changing only the draft to fixture does not stop an already published live version.

The genuine n8n Unpublish menu from the previous guide, used to explain stopping automatic runs.

Success check: the first Monday run appears in Executions. Open its results even if no email arrived; the report’s sending conditions may simply not have been met. The workflow was not published or scheduled while preparing this guide.

13. Update the cut-off after every invoice

After invoicing a client’s entries through a particular date, open your Clients sheet and move that client’s invoiced_through to the last day covered by the invoice. Check before saving: a date that is too late can hide hours you have not yet invoiced.

The workflow cannot tell that you sent an invoice. Clockify’s Mark as invoiced flag does not replace the sheet’s cut-off. If a client row contains several projects, its one date applies to all of them. Projects with different invoicing cut-offs cannot be represented accurately by that shared row.

Success check: the next dry_run counts that client’s hours from the day after the updated cut-off. Already invoiced dates leave the included period. If the same hours remain, check the client row, selected spreadsheet URL and interpreted date.

Limits that affect how you read the report

Version 1.0 supports up to 20 active clients in one Clockify workspace. It looks back across up to three calendar months relative to yesterday’s month: the two preceding months and the month ending at yesterday. Older hours may still need invoicing even when they are outside this report. Check any warning that the cut-off predates the lookback window.

Only billable entries count. Today’s entries wait for a later run. Running timers count after being stopped, and an entry crossing midnight belongs entirely to its starting day. Archived projects’ hours can still count.

Projects missing from every sheet row appear separately in a report when one is produced. To hide one from that list too, add it to a row with enabled set to FALSE. This does not change its time entries in Clockify.

The package’s current endpoints support Clockify’s global server, rather than workspaces moved to a separate regional data server. A regional workspace needs a different implementation.

When a check fails

SymptomFirst thing to inspect
Clockify 401/403Selected credential, key validity and owner/admin permissions
Clockify 429API limit; wait before retrying instead of repeatedly starting runs
Sheet not foundYour copy’s sheet_url, Clients tab name and Google read access
Date or hourly rate rejectedYYYY-MM-DD or a real date cell; number versus text, decimal point
Duplicate client or projectUnique client_id values and one enabled owner per project
No clients in resultsenabled, project IDs, billable entries and calculation window
No emailrun_mode, min_age_days, included client hours or row errors, owner_email
The same hours appear againUnchanged invoiced_through; repeated reminders are intentional
The report is smaller than expectedThree-calendar-month limit, yesterday’s cut-off and Billable filter

An invalid individual row can be skipped while other clients continue. Some errors, such as duplicate client IDs or a project assigned to two enabled clients, prevent a normal report because the result could be misleading.

Check Executions even if no technical notice arrived. A Sheets or Clockify node can fail before a report is prepared. A Gmail failure can prevent both the report and its technical notice. Do not rely on the inbox as the only way to monitor runs.

Pick up where you left off

Keep the package instructions and your own setup notes. If necessary, start again in a new unpublished copy with the fixture exercise. Get Clockify Unbilled Hours Alert here.