Case 11 · AI & Automation

n8n Self-Hosted AI Claims Automation

Automation & Applied-AI Engineersn8n.ioAI & AutomationProduct EngineeringData & Integration
← All case studies

n8n is a fair-code, self-hostable workflow automation platform with a native AI Agent node and a visual editor (Node.js/TypeScript). We deployed it on the client's VPC and built an AI claims-triage workflow that keeps PII off third-party SaaS.

The challenge

A mid-market insurance brokerage wanted to automate inbound claim emails — parse the attachment, classify severity with an LLM, push structured data into Salesforce, and notify the adjuster in Slack — without sending PII to a third-party SaaS like Zapier.

  • Running the whole automation, including the LLM step, inside the client's VPC so claim PII never left their network.
  • Reliably extracting structured data from messy email attachments and enforcing a JSON schema on the output.
  • Routing by severity and keeping a human approval step before any automated customer reply.
Our solution

We deployed n8n with Postgres and Ollama via the self-hosted AI starter kit on the client's VPC: an IMAP trigger ingests email, a Code node extracts the attachment, a local LLM runs schema-enforced extraction, a Switch routes by severity, and Salesforce/Slack nodes create the case and notify the adjuster.

  • A self-hosted n8n + Postgres + Ollama stack in the client's VPC so claim data and the LLM both stay in-network.
  • An extraction step that runs a local model with a structured JSON schema, then a Switch node that routes cases by severity.
  • Salesforce Case creation and a Slack DM to the assigned adjuster, with an Approval node gating any auto-reply and every run logged to the client's SIEM.

A customized view of the system we shipped for this engagement — the components and how requests and data flow between them.

extractcasenotifylog📧IMAP EmailTrigger⚙️n8n Workflow(VPC)🧠Ollama Local LLM🔀Severity Switch🏢Salesforce Case💬Slack AdjusterDM🛡️SIEM Audit Log
Node.js / TypeScriptVue.jsPostgreSQLOllama (Local LLM)n8n AI Agent NodeSalesforce APISlack APIDocker
Automated inbound claim triage end-to-end with no PII leaving the client's VPC.
Replaced manual email reading with schema-enforced LLM extraction and severity routing.
Auto-created Salesforce cases and notified adjusters in Slack, with every run logged to the SIEM.
Direct value addedTurns a manual, error-prone claims inbox into an automated, auditable pipeline the brokerage runs entirely on its own infrastructure.
Why it mattersAutomation in regulated industries needs to stay in-network. A self-hosted workflow engine with a local LLM gives the speed of no-code automation without handing PII to a SaaS vendor.

Before — manual bottleneck flow

1Manual Inbox TriageBottleneck
Intake Clerk · 10 mins/claim

Clerk opens each claim email, reads the attachment, and judges severity by hand.

2Salesforce Re-EntryBottleneck
Intake Clerk · 8 mins/claim

Details are re-typed into a Salesforce case, with frequent transcription errors.

3Adjuster Hand-OffBottleneck
Supervisor · Hours

A supervisor manually assigns and emails the right adjuster, adding delay.

After — automated optimized flow

1IMAP Email Trigger
n8n Workflow · Instant

An inbound claim email fires the workflow and the attachment is extracted in-VPC.

2Local LLM Extraction
Ollama Node · 3 secs

A local model returns schema-valid structured data and a severity classification.

3Case + Adjuster Notify
Salesforce / Slack · Instant

A Salesforce case is created and the assigned adjuster is DMed; the run is logged to the SIEM.

Portrait of Daniel Okafor
Claims used to sit in an inbox until someone got to them. Now they're triaged the moment they land — case created, severity routed, adjuster notified — and our security team signed off because none of it leaves our network and every run lands in the SIEM.
Daniel Okafor at CSAA Insurance Group

Have a problem like this?

Tell us your goal and we'll turn it into a structured plan — from idea to stable, scalable reality.

Contact us