Escalate process serving attempts and draft affidavits with OpenAI and Slack
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when someone submits an n8n form (“Service Attempt Log”). Along the way it connects OpenAI Chat Model, Slack and Google Drive. It also calls efile.courts.example over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Service Attempt Log”).
- Get Case Record (Data table): get
- Compute Attempt Count & SOL Countdown (Code): runs custom JavaScript code
- Classify Attempt Outcome (Text Classifier): classifies text into categories with AI, with model: GPT-4o-mini for Outcome Classification
- Is Alt-Service Eligible? (If): checks a condition and branches into true / false
- Request Alt-Service Approval (Slack): send and wait for a reply
- Finalize Case Status (Edit Fields (Set)): sets 2 fields: case_status, alt_service_authorized
- Was It Approved? (If): checks a condition and branches into true / false
- Update Case Record (Data table): create or update
- Is Case Ready to Close? (If): checks a condition and branches into true / false
- Generate Affidavit of Service Draft (Code): runs custom JavaScript code
…plus 4 more steps. See the full node list below.
Services it uses
Other OpenAI + Slack templates (979) · Other OpenAI + Google Drive templates (628) · Other Google Drive + Slack templates (222)
HTTP calls to: efile.courts.example
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge
From the author
Quick overview This workflow collects process-server attempt logs via an n8n form, updates a case tracker in n8n Data Tables, classifies field notes with OpenAI, escalates eligible cases for attorney approval in Slack, and drafts an affidavit saved to Google…