Skip to content
Optimal Lab

AI automation · interactive

One item through a workflow

A workflow is a fixed path with a branch. The email changes. The steps do not. Pick a message and watch which action it takes.

Inbox

sara@shop.com

Classifier

billing · bug · other

Billing queue

draft refund

Bug tracker

open ticket

Archive

no ping

Pick an email, then run it to see which branch it takes.

Step 1 of 5

  1. 1

    A new email arrives

    The trigger is the inbox. Nothing runs until a message shows up.

    From sara@shop.com. Order 1842 shows two identical charges.

  2. 2

    Read the subject and body

    Classification looks at the text, not at who sits in the inbox.

    Charged twice

    Order 1842 shows two identical charges.

  3. 3

    Classify it

    Billing, bug, or other. That label picks the branch.

    Label: Billing

  4. 4

    Take the matching action

    Each label has one action. The other actions do not run.

    • Billing → Draft a refund reply
    • Bug → Open a bug ticket
    • Other → Archive it
  5. 5

    Write down what happened

    The run ends with one result. A person can read the log without opening the inbox.

    A reply is drafted for the billing queue.

In production

Tools and technologies

Visual or code-defined workflows route events through branches and actions — no single language required.

Not tied to one language — use these names when you search docs or design a system.