Prep court hearing briefs and clash alerts with Google Sheets, OpenAI, WhatsApp and Telegram
Needs changesWhat this workflow does
This AI workflow has 43 nodes and runs on a schedule (cron 0 19 * * *) (plus 2 other triggers). Along the way it connects Google Sheets, Telegram, OpenAI Chat Model and WhatsApp Business Cloud.
How it runs
Trigger: On a schedule (cron 0 19 * * *) (plus 2 other triggers).
- Compute Next Hearing Date & Config (Code): runs custom JavaScript code
- Validate Outcome Entry (Code): runs custom JavaScript code
- Read Today's Hearings (Google Sheets): uses Google Sheets
- Read Active Cases (Google Sheets): uses Google Sheets
- Log Outcome in Hearing Log (Google Sheets): append or update
- Build Advocate Day Boards (Code): runs custom JavaScript code
- Read Court Sources (Google Sheets): uses Google Sheets
- Update Case Diary Sheet (Google Sheets): update
- Route Day Board by Channel (Switch): routes items into 2 branches
- Build Cause List Fetch List (Code): runs custom JavaScript code
…plus 26 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Telegram + OpenAI templates (807) · Other Telegram + Google Sheets templates (674)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Hearing Prep Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Hearing Prep Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (16)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - Extract from File
n8n-nodes-base.extractFromFile - Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Wait
n8n-nodes-base.wait - n8n Form Trigger
n8n-nodes-base.formTrigger
From the author
Quick overview This workflow schedules daily court-hearing preparation by pulling active cases from Google Sheets, downloading court cause lists via HTTP, extracting PDF/HTML text, matching listings, detecting advocate clashes, and using OpenAI to generate…