A one-page brief for an industrial AI pilot
Put the business decision, data owner, baseline and acceptance criteria in one place.
Write one step per line and get an editable flowchart that stays in your browser.
From a written process to a reviewed flowchart.
Procedures live in documents, but people understand diagrams. Write one step per line. Words like if, otherwise, repeat until and at the same time become decisions, loops and parallel work. The flowchart appears at once. The review flags missing branches, dead ends, and loops without an exit. Play it step by step, estimate the total time, and export SVG, JSON, or a Markdown runbook. Everything runs in your browser.
Narration: synthetic voice (Piper, voice “Joe”, CC0 public domain). Captions are burned into the video.
Pick a card: the text is filled in and the flowchart is drawn at once.
Deterministic parser: the same text always produces the same flowchart. Nothing is uploaded.
Six steps. The text is cut into units; each unit gets a step type from fixed rules; a small classifier may suggest a type for plain steps the rules leave open; the chart is placed in rows and columns; the review reports findings; the time estimate follows the longest path. All of it runs in your browser.
First the text is cut into units. A numbered or bulleted list makes one unit per item; other text is cut at sentence ends. Sentences that carry structure, such as “if”, “repeat until” or “at the same time”, stay whole. Other sentences can also be split at “then” or at a semicolon. The language is chosen from the words in the text.
| Setting | Value | Note |
|---|---|---|
| Character limit | 16,000 | longer text is not parsed |
| Unit limit | 160 | more units are not parsed |
| Language | tr / en | Turkish if its markers (ç ğ ı ö ş ü and words such as “ve”, “eğer”, “bekle”) outnumber English ones; otherwise English |
Source flow-maker/parser.js
Each unit is checked against the rules below, from top to bottom; the first rule that matches sets its step type. If none matches, the unit is a plain step, and a plain step containing “wait”, “bekle”, “pause” or “delay” becomes a wait step. A step that opens with a name such as “Operator”, “PLC” or “Maintenance team” shows that name above its box.
| Order | Rule | How it is recognised |
|---|---|---|
| 1 | Loop close | “end loop”, “döngü sonu” |
| 2 | Start | “start”, “başla” and similar; only when the unit is that word |
| 3 | End | “end”, “finish” and similar single-word units |
| 4 | Otherwise | “otherwise”, “else”, “değilse”; the other arm of an open “if” |
| 5 | Retry | “retry”, “try again”; a count such as “3 times” is written on the label |
| 6 | Inline repeat | “repeat X until Y” |
| 7 | Loop header | “repeat until”, “while”, “for each”, “repeat N times”, “…kadar tekrarla”, “her … için” |
| 8 | Parallel | “parallel: A, B”, “A and B in parallel”; two to six actions |
| 9 | Meanwhile | a branch opened by “meanwhile” or “bu sırada” |
| 10 | Condition | “if … ,” / “if … then” / “if …:”; Turkish “…yüksekse,” with a comma; a closing “?” or mi / mı / mu / mü |
| 11 | Check | “check”, “verify”, “kontrol et” with a condition word (is, ready, open, yeterli …) |
| 12 | Classifier | when no rule above matches; it may suggest only start, end or otherwise (step 3) |
| 13 | Plain step | every other unit |
The box type is then read from the label: end first, then start, then wait, otherwise process. Decision, loop, parallel and join nodes come only from the rules above. For details, see node types in the glossary below.
A step that joins two actions with “and” or “ve” is flagged, and the review shows it as a hint (step 5). When a step opens with a recognised actor (operator, PLC, SCADA, HMI, maintenance, shift supervisor, quality, engineer, technician and their equivalents), a coloured chip is added above it.
Source flow-maker/parser.js · flow-maker/layout.js
When the rules leave a step plain, a small naive Bayes classifier running in WebAssembly takes a second look: does the unit look like a start, an end or an “otherwise” step? A suggestion is used only when the best class is clearly ahead of the second class and of the plain step. Decisions, loops and parallel work come from the rules alone.
x: the stems found in the unit, each counted once. The code sums integers scaled by 1/4096.
A positive W means the stem is more common in this class than in the others.
Counted from the training examples. The α correction keeps an unseen stem from getting zero probability.
| Setting | Value | Note |
|---|---|---|
| Classes | 8 | start, end, decision, loop open, loop close, otherwise, parallel, process |
| Stems | 184 | prefixes, phrases and whole words |
| Smoothing α | 0.15 | dev/wasm-src/train.py |
| Scale | 1/4096 | logarithms are rounded to integers |
| Margin 1 | ≥ 0.5 | best minus second class; below it no suggestion is used |
| Margin 2 | ≥ 0.7 | best minus plain step; below it no suggestion is used |
| Accuracy | 0.970 | measured on the training examples; there is no separate test set |
A stem matches when a word starts with it (“kontrol” matches “kontrolü”); a stem with a space matches a phrase; a stem ending in “!” must match a whole word.
Source dev/wasm-src/train.py · dev/wasm-src/kernel.c · dev/wasm-src/kernel_weights.h · flow-maker/index.html
Each step goes on a row. The row is set by the longest route from Start to that step: the further away, the lower. Columns within a row follow barycenter sweeps when WebAssembly is loaded and the writing order when it is not. Edges are drawn as horizontal and vertical segments; edges that go back round the right side.
The maximum over all steps u with a forward edge into v. Back edges (loops, retries) are left out.
x_u: column position of u; N_v: neighbours of v in the adjacent row (back edges included). A node with no neighbour there gets −1 and moves to the left. Eight sweeps, alternating top-down and bottom-up.
| Setting | Value | Note |
|---|---|---|
| Start, End | 150 × 50 | |
| Step, wait | 210 × 64 | |
| Decision | 200 × 86 | diamond |
| Parallel | 210 × 40 | |
| Join | 150 × 40 | |
| Row gap | 56 | row step 86 + 56 = 142 (kernel path) |
| Column gap | 40 | |
| Margin | 28 | |
| Kernel limit | 512 · 2,048 | nodes · edges; above it the columns keep the writing order |
On plain flows the sweeps usually keep the writing order; a difference appears only where edges would cross.
Rows are computed in topological order over the forward edges (Kahn’s method): a step’s row is set only after the rows of every step leading into it are known. So when a long and a short branch meet, the steps after the join go below the long branch and no forward arrow points upward.
Source flow-maker/layout.js · flow-maker/index.html · dev/wasm-src/kernel.c
The review gives each finding one of three levels: error (the flow cannot work, or a step cannot be reached), warning (check it) or hint (it could be written better). The overall verdict follows the most serious finding: “Needs attention”, “Worth a look” or “Looks clean”.
| Check | Level | When |
|---|---|---|
| No Start | Error | no start step in the flow |
| No End | Warning | no end step in the flow |
| Unreachable step | Error | no path from Start, forward or back, reaches it |
| No otherwise branch | Warning | a conditional decision (not a loop or retry) with no “no” exit and fewer than two forward exits |
| Dead end | Error | a non-End step with no forward or back exit |
| Loop without exit | Error | a decision with only back edges |
| Joined actions | Hint | a step or wait joining two actions with “and” / “ve” |
| Could run in parallel | Hint | two consecutive process steps, each with one entry and one exit; overlap at most 0.2; no dependency word in the second (“it”, “store”, “check” …) |
| Long straight chain | Hint | 8 or more process or wait steps in a row without a decision |
A parallel candidate needs ort ≤ 0.2. W: the words of a step (at least three letters; conjunctions and a few common words left out).
E: number of edges (back edges included); V: number of nodes; P: number of weakly connected pieces. A single connected flow has P = 1.
Source flow-maker/review.js · dev/wasm-src/kernel.c
If the text states durations (“10 seconds”, “5 min”, “2–3 minutes”), the times of process and wait steps are read and summed along the longest route from Start to End. Where the flow branches, the longer branch counts. Loops count once; the number of repeats is not counted. Example: a step waiting “10 seconds” followed by one waiting “5 minutes” gives 310 seconds, shown as 5.2 minutes.
a_v–b_v: the range written on the label (a = b for one value). Several durations in one label are added. Only process and wait steps are read; a step without a duration counts as 0.
π: a route from Start to End along forward edges. Back edges are skipped; at a branch the longer side is chosen.
| Unit | Factor | Written as |
|---|---|---|
| seconds | 1 | sn · sec · s |
| minutes | 60 | dk · min |
| hours | 3,600 | sa · h |
| days | 86,400 | days · gün |
Example: “2–3 minutes” = (2 + 3) / 2 × 60 = 150 seconds.
Source flow-maker/review.js
Turkish and English. Patterns such as “if … otherwise”, “eğer … değilse”, “repeat until”, “…a kadar tekrarla” and “at the same time” become decisions, loops and parallel steps. Numbered lists and one-step-per-line text work too.
A rule-based parser decides the type of each unit. Where the rules leave a plain step, a small naive Bayes classifier running in WebAssembly may suggest a start, an end or an otherwise step, and the suggestion is used only when it is clearly ahead. The parsing is deterministic: the same text gives the same steps and connections in the same browser. Column order and these suggestions depend on WebAssembly; if it does not load, the chart can look different. No cloud language model is involved.
Steps with no way out, decisions missing an “otherwise” branch, steps that cannot be reached, loops and retries without an exit, two actions joined by “and”, and consecutive steps that look independent and could run in parallel. It also reports a missing Start or End. Each finding is an error, a warning or a hint. If you wrote durations (for example “30 seconds” or “5 min”), it estimates the total along the longest path and highlights that path on the chart; loops count once in that total.
No. Everything runs in your browser. The draft is stored only on this device and is removed by the Reset button.
SVG (vector drawing), JSON (nodes and edges) and a Markdown runbook. Exported files contain the text you wrote.
Put the business decision, data owner, baseline and acceptance criteria in one place.
Alarm floods are solved with an alarm philosophy first, not a model. AI works better on an orderly alarm list.
Let’s review your data source, your existing system and the decision you want to improve.