Back to Portfolio

Weekly Pattern Digest

Turning Repeat Alerts Into One Diagnosis Instead of Four

An automated Monday morning report that reads a month of factory alert data and tells a plant manager which gates are failing, how, and why, before their workday starts.

Domain Manufacturing Ops / Anomaly Detection
Core Stack n8n • OpenAI (GPT 4.1 Mini) • Google Sheets • Gmail

Problem Statement

Aliment's control room dashboard alerts the plant manager when something goes wrong right now. What it doesn't do is tell them when the same thing has been going wrong every Tuesday morning for four weeks in a row. Each alert looks like a new incident on its own. The root cause never actually gets addressed, and the same material loss just repeats.

This came from looking closely at Aliment's own proposal document. One screenshot shows a live alerts panel (a patty rejection, a paneer yield deviation, an early FIFO breach risk, each timestamped and severity tagged), but nothing in that panel links out to a pattern view or an alert history by gate. Another page shows the only historical view in the product, an OEE trend chart, but it's a single aggregate number for the whole plant. It doesn't break down by which gate failed, on which shift, or on which day of the week.

I don't have access to Aliment's internal tools, so I can't confirm how often this actually happens in production. What I can say is that nothing in either document mentions a pattern view or a proactive analysis layer, and their own materials use the word reactive to describe how compliance evidence gets compiled today. That same word applies to how alerts get handled. A gate that rejects material every Tuesday morning for four weeks isn't four incidents, it's one undiagnosed problem compounding quietly.

What I Designed

I designed a Weekly Pattern Digest: an automated Monday morning email that identifies which gates are failing, how they're failing, and what type of problem it actually is.

It looks for three distinct pattern types, because different gates tend to fail for different reasons:

"This case study was built as part of my interview process with Aliment."

How It Works

Built as an n8n workflow, running five nodes in sequence.

Aliment n8n Workflow Architecture

Running this against the dummy data, the report correctly picked out Gate 21 as both a Scenario A and B problem firing on Tuesdays, Thursdays, and Fridays before 7:15 AM, Gate 09 as a Scenario B problem repeating on Tuesday mornings across weeks, and Gate 18 as a Scenario C reliability problem, sitting at 12 alerts against a plant average of 4.

Key Design Decisions

What This Demonstrates

Project Artifacts