Quick Overview
This workflow schedules and tracks client-matter retention reviews from Clio in a Google Sheets ledger, sends escalating retention reminder emails, and records attorney decisions (confirm deletion authorization, extend, or legal hold) via a webhook link.
How it works
- Runs daily and pulls the firm user directory and all Closed matters from the Clio API.
- Computes a retention deadline per matter based on practice area, deduplicates already-scheduled matters, and appends new retention rows to a Google Sheets “Retention” ledger.
- Runs daily and reads the Google Sheets retention ledger, keeping only entries still marked as scheduled.
- Calculates escalation tiers (90/30/7 days before, plus overdue) and builds a color-coded retention reminder email with one-click Confirm/Extend/Hold links.
- Logs each reminder to a separate compliance-audit workflow and sends the email via SMTP to the responsible attorney (or a fallback firm email).
- Receives webhook clicks from the email links, validates the request, updates the matching Google Sheets ledger row with the decision (and a new deadline for extensions), and returns an HTML confirmation or error page.
Setup
- Create a Clio OAuth2 credential, set the CLIO_BASE_URL variable, and ensure the workflow can read users and matters from Clio.
- Create a Google Sheets OAuth2 credential, set RETENTION_LEDGER_SHEET_ID, and create a “Retention” sheet with the required column headers (including status, last_action, and last_action_at).
- Add an SMTP email credential and set FIRM_FROM_EMAIL, FIRM_NAME, and FIRM_EMAIL variables for reminder delivery and fallback routing.
- Activate the workflow, copy the webhook Production URL from the retention-decision webhook, and save it as RETENTION_DECISION_WEBHOOK_URL.
- Set GUARDRAIL_WORKFLOW_ID to your compliance audit workflow (or update/remove the audit logging step) and adjust DEFAULT_RETENTION_YEARS and the practice-area retention map as needed.