Quick Overview
This workflow runs daily and weekly schedules to fetch Clio calendar entries, time entries, and open matters, then flags calendar activity without matching time entries, emailing per-attorney daily digests and a firm-wide weekly unbilled-revenue estimate while also logging both emails to an audit sub-workflow.
How it works
- Runs every day at 7am (by default) and fetches the prior day’s Clio calendar entries, time entries, and open matters.
- Compares calendar entries to time entries at the matter level to identify matters with calendar activity but no logged time, estimating hours from start/end times (or a default duration).
- Groups the unbilled items by each matter’s responsible attorney and builds a per-attorney digest email with itemized matters and total estimated hours.
- Sends the digest content to a separate audit/guardrail workflow for logging, then emails the digest to each attorney.
- Runs every Monday at 8am (by default) and fetches the last 7 days of Clio calendar entries, time entries, and open matters.
- Repeats the unbilled-activity detection for the week, computes a firm-wide estimated dollar impact using a configurable hourly rate, logs the summary via the audit/guardrail workflow, and emails the weekly summary to the firm.
Setup
- Add Clio OAuth2 credentials and set the CLIO_BASE_URL variable used by the Clio HTTP requests.
- Configure an email account for sending and set FIRM_FROM_EMAIL plus the target firm recipient (FIRM_EMAIL) used for fallbacks and the weekly summary.
- Create or connect an audit/guardrail sub-workflow and set GUARDRAIL_WORKFLOW_ID to its workflow ID.
- Set DEFAULT_CALENDAR_DURATION_HOURS (for entries without clear start/end times) and DEFAULT_HOURLY_RATE (for the weekly value estimate), and optionally set FIRM_NAME for the weekly email text.
- Adjust the cron expressions on the daily and weekly schedule triggers to match your firm’s preferred run times.