Email Automation
Send daily case priority digest emails from Clio to firm attorneys
Runs every morning to pull open Clio tasks, upcoming calendar entries and firm users, groups them by attorney and sends each attorney a personalized priority digest by SMTP email.
What it does
## Daily Case Priorities Digest ### How it works 1. The workflow triggers every morning to fetch open tasks, upcoming calendar entries, and firm user data from Clio. 2. It processes and filters these data streams separately, sorting tasks by due date and calendar entries by start date. 3. The filtered tasks and calendar entries are merged and grouped by attorney to prepare daily priorities and deadlines. 4. If any attorney has digest items, the workflow generates personalized morning digest emails for each attorney. 5. Each email send event is logged, and the digest emails are sent out to corresponding attorneys. ### Setup steps - [ ] Configure the Clio API base URL and provide API credentials in environment variables or n8n credentials. - [ ] Set up an email sending service in n8n with valid SMTP credentials for the "Send Morning Digest Email" node. - [ ] Ensure the "Log Digest Send Event" node workflow is correctly linked to log send events as required. ### Customization The grouping and formatting of the digest emails can be customized in the "Build Morning Digest Email" node's code. Filters and data requests can also be tailored by adjusting HTTP request query parameters.
The steps
- When Morning Digest Runs at 7am
- Fetch Open Tasks From Clio API
- Fetch Upcoming Calendar Entries From Clio
- Fetch Firm Users From Clio API
- Split Task Records From Response
- Split Calendar Entries From Response
- Filter Tasks With Assignee And Due Date
- Filter Calendar Entries With Attendee And Date
- Sort Tasks By Due Date Ascending
- Sort Calendar Entries By Start Date
- Merge Tasks And Calendar Entries Lists
- Group Digest Items By Attorney
- If Digest Items Exist For Any Attorney
- Skip When No Items To Digest
18 steps in total.
Similar automations
Email AutomationSend staged client onboarding emails from open Clio matters over SMTP15 stepsEmail AutomationChase overdue client documents with Clio and SMTP email escalations20 stepsAlerts & NotificationsSend client matter status updates from Clio by webhook and SMTP email26 stepsMonitoring, Ops & IncidentsMonitor Clio statute of limitations deadlines and send email alerts and partner escalations24 steps