Flow Maker

Write one step per line and get an editable flowchart that stays in your browser.

Flow Maker in half a minute

From a written process to a reviewed flowchart.

Read the transcript

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.

In three steps.

Write the process
See the flowchart
Review and share
1

Describe the process

Start from an example

Pick a card: the text is filled in and the flowchart is drawn at once.

2

Flowchart

StepWaitDecisionStart / EndParallel

Play the flow

Export

Deterministic parser: the same text always produces the same flowchart. Nothing is uploaded.

How it computes

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.

  1. Splits the text into steps

    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.

    Technical detail
    SettingValueNote
    Character limit16,000longer text is not parsed
    Unit limit160more units are not parsed
    Languagetr / enTurkish if its markers (ç ğ ı ö ş ü and words such as “ve”, “eğer”, “bekle”) outnumber English ones; otherwise English

    Source flow-maker/parser.js

  2. Recognises the step type

    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.

    Technical detail
    OrderRuleHow it is recognised
    1Loop close“end loop”, “döngü sonu”
    2Start“start”, “başla” and similar; only when the unit is that word
    3End“end”, “finish” and similar single-word units
    4Otherwise“otherwise”, “else”, “değilse”; the other arm of an open “if”
    5Retry“retry”, “try again”; a count such as “3 times” is written on the label
    6Inline repeat“repeat X until Y”
    7Loop header“repeat until”, “while”, “for each”, “repeat N times”, “…kadar tekrarla”, “her … için”
    8Parallel“parallel: A, B”, “A and B in parallel”; two to six actions
    9Meanwhilea branch opened by “meanwhile” or “bu sırada”
    10Condition“if … ,” / “if … then” / “if …:”; Turkish “…yüksekse,” with a comma; a closing “?” or mi / mı / mu / mü
    11Check“check”, “verify”, “kontrol et” with a condition word (is, ready, open, yeterli …)
    12Classifierwhen no rule above matches; it may suggest only start, end or otherwise (step 3)
    13Plain stepevery 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

  3. A small classifier

    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.

    Technical detail
    sc(x)=lnP(c)+∑v∈xWc,vs_c(x) = \ln P(c) + \sum_{v \in x} W_{c,v}

    x: the stems found in the unit, each counted once. The code sums integers scaled by 1/4096.

    Wc,v=lnP(v∣c)−lnP(v∣¬c)W_{c,v} = \ln P(v \mid c) - \ln P(v \mid \neg c)

    A positive W means the stem is more common in this class than in the others.

    P(v∣c)=nc,v+αNc+αVP(v \mid c) = \frac{n_{c,v} + \alpha}{N_c + \alpha V}

    Counted from the training examples. The α correction keeps an unseen stem from getting zero probability.

    P(c)=Nc+2N+2KP(c) = \frac{N_c + 2}{N + 2K}
    scs_c
    score of class c; the highest score is the suggestion
    P(c)P(c)
    prior probability of the class (the code stores its logarithm)
    nc,vn_{c,v}
    number of class-c examples that contain stem v
    P(v∣¬c)P(v \mid \neg c)
    share of stem v in the other classes (same correction)
    Nc,NN_c,\; N
    examples in class c; all examples
    α\alpha
    correction (additive α smoothing) 0.15
    V,KV,\; K
    number of stems; number of classes 184 · 8
    SettingValueNote
    Classes8start, end, decision, loop open, loop close, otherwise, parallel, process
    Stems184prefixes, phrases and whole words
    Smoothing α0.15dev/wasm-src/train.py
    Scale1/4096logarithms are rounded to integers
    Margin 1≥ 0.5best minus second class; below it no suggestion is used
    Margin 2≥ 0.7best minus plain step; below it no suggestion is used
    Accuracy0.970measured 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

  4. Draws the chart

    StartRead the pressureIt is above 6barClose the valveOpen the bypassRecord the valueEndyesno
    Schematic: a small two-branch example. Rows and columns are computed with the rules above; scaled down.

    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.

    Technical detail
    row(start)=0\mathrm{row}(\text{start}) = 0
    row(v)=1+maxu→vrow(u)\mathrm{row}(v) = 1 + \max_{u \to v} \mathrm{row}(u)

    The maximum over all steps u with a forward edge into v. Back edges (loops, retries) are left out.

    x¯v=1|Nv|∑u∈Nvxu\bar{x}_v = \frac{1}{|N_v|} \sum_{u \in N_v} x_u

    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.

    SettingValueNote
    Start, End150 × 50
    Step, wait210 × 64
    Decision200 × 86diamond
    Parallel210 × 40
    Join150 × 40
    Row gap56row step 86 + 56 = 142 (kernel path)
    Column gap40
    Margin28
    Kernel limit512 · 2,048nodes · 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

  5. Reviews the flow

    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”.

    Technical detail
    CheckLevelWhen
    No StartErrorno start step in the flow
    No EndWarningno end step in the flow
    Unreachable stepErrorno path from Start, forward or back, reaches it
    No otherwise branchWarninga conditional decision (not a loop or retry) with no “no” exit and fewer than two forward exits
    Dead endErrora non-End step with no forward or back exit
    Loop without exitErrora decision with only back edges
    Joined actionsHinta step or wait joining two actions with “and” / “ve”
    Could run in parallelHinttwo 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 chainHint8 or more process or wait steps in a row without a decision
    ort(a,b)=|Wa∩Wb|max(|Wa|,|Wb|)\text{ort}(a,b) = \frac{|W_a \cap W_b|}{\max(|W_a|,\, |W_b|)}

    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).

    M=E−V+2PM = E - V + 2P

    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

  6. Time estimate

    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.

    Technical detail
    dv=av+bv2·uvd_v = \frac{a_v + b_v}{2} \cdot u_v

    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.

    T=maxπ∑v∈πdvT = \max_{\pi} \sum_{v \in \pi} d_v

    π: a route from Start to End along forward edges. Back edges are skipped; at a branch the longer side is chosen.

    uvu_v
    unit factor (in seconds)
    TT
    total time, seconds
    UnitFactorWritten as
    seconds1sn · sec · s
    minutes60dk · min
    hours3,600sa · h
    days86,400days · gün

    Example: “2–3 minutes” = (2 + 3) / 2 × 60 = 150 seconds.

    Source flow-maker/review.js

Terms used on this page

Node types
Start, End and join are capsules; a decision is a diamond; a parallel node is a plain box; a step and a wait are rounded boxes, and a wait carries a clock icon. The type comes from keywords and the rules above.
Back edge
An arrow to an earlier step. Loops and retries are drawn with one. The layout routes it round the right side; the time estimate and the longest path leave it out.
Naive Bayes
A simple probability model that counts how often each stem appears in each class and adds up a score per class. “Naive” means the stems are treated as independent of one another.
Barycenter
The average column position of a node’s neighbours in the adjacent row. Sorting columns by this value aims to reduce edges crossing each other.
Cyclomatic complexity
A measure of the number of independent routes through the flow: E − V + 2P. Usually each decision or loop adds one.
Longest path
The route from Start to End along the edges that collects the most steps or the most time. Row numbers follow the number of steps; the time estimate follows the time.

Frequently asked

Which languages does Flow Maker understand?

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.

How is the flowchart built?

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.

What does the flow review check?

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.

Is my text sent to a server?

No. Everything runs in your browser. The draft is stored only on this device and is removed by the Reset button.

Which formats can I export?

SVG (vector drawing), JSON (nodes and edges) and a Markdown runbook. Exported files contain the text you wrote.

Go deeper.

Full library

Related questions

All questions
ASP Dijital

Start with a production problem.

Let’s review your data source, your existing system and the decision you want to improve.

Discuss your project ↗