Skip to content
Visual explainer 2h to learn 4 steps

Where a generative AI step fits in a business workflow

Decide for a given workflow step whether rules, a classifier or a generative model fits best and where human review is needed.

By Invicly Tech, , in Generative AI, Agentic AI and RAG. About 11 minutes to read.

Topic 1 of 34

In short

A generative model is one tool among several for automating a workflow step, not the default answer. Rules suit steps with fixed logic, a trained classifier suits steps that pick from a known list, and a generative model suits steps that must read or write free-form language. Because generative output can vary from run to run, you also decide where a person checks it before it reaches a customer or a system of record.

Think of it like this: Picking an automation method is like staffing a front desk: a printed sign answers fixed questions, a sorting tray routes known forms, and only open-ended conversations need a trained person.

Explained simply

A business workflow is a chain of steps. A support request arrives, someone reads it, picks a team, writes a reply and closes the ticket. Before you add AI, write that chain down. For each step note what comes in, what goes out, who uses the result and what goes wrong if the result is wrong.

Some steps follow fixed logic. If the order total is over 500, ask for approval. A rule handles that perfectly, every time, for almost no cost. Other steps choose from a short list, such as which of five teams should handle a ticket. A classifier, a model trained to pick a label, fits there if you have examples.

A generative model earns its place when the step needs to read or write free-form language. Summarising a long, messy email or drafting a polite reply are good examples. Rules cannot do this well, and a classifier cannot write anything new.

Generative models are nondeterministic. The same request can get a slightly different answer each time. That is fine for a draft a person will edit. It is not fine for a refund amount. So for each generated output, decide whether a person checks it, a program validates it, or both, before anything irreversible happens.

Press Play on a diagram to walk through it one step at a time.

FlowChoosing a method for one workflow step
  1. 1
    Describe the step

    Input, output, who uses the result

  2. 2
    Fixed logic?

    If yes, write rules

  3. 3
    Known label set with data?

    If yes, train or use a classifier

  4. 4
    Free-form language?

    Then consider a generative model

  5. 5
    Cost of a wrong answer

    High cost means human review

CompareRules, classifiers and generative models
Rules
  • Same input, same output
  • Cheap and fast
  • Easy to audit
  • Break on unexpected wording
Classifier
  • Picks from a fixed label list
  • Needs labelled examples
  • Returns a score you can threshold
  • Cannot write new text
Generative model
  • Reads and writes free text
  • Works with few or no examples
  • Output can vary between runs
  • Needs validation and review
MapSteps in a support workflow and their best method
Support request workflow
  • Receive and log
    • Plain code
  • Detect language
    • Library or classifier
  • Route to a team
    • Rules first
    • Model for the rest
  • Draft a reply
    • Generative model
    • Person reviews before sending
  • Issue a refund
    • Deterministic rules
    • Human approval over a limit

In depth

Mapping the workflow before choosing a tool

Start with a plain table, one row per step. Columns: input, output, owner, volume per day, how often the input is unusual, and the cost of an error. For our fictional internal knowledge assistant at Contoso, the steps might be: receive request, identify topic, find the right policy, draft an answer, send it, log it. Only some of these involve language understanding. Identifying topic is a labelling job. Finding the policy is a search job, which later modules handle with retrieval. Drafting the answer is a generation job. Sending and logging are plain code. Writing the table forces you to see that AI is a small part of the system, and that the boring parts still need to be reliable.

  • One row per step, with input, output and owner
  • Note volume and how varied the input is
  • Write the cost of a wrong output in plain words
  • Mark which steps need language understanding

Rules, classifiers and generation: the trade-offs

Rules are deterministic, cheap and auditable, but brittle when wording changes. A classifier handles varied wording and gives a score you can threshold, but it needs labelled data and can only return labels it was trained on. A generative model handles open-ended input and output with a few examples in the prompt, but it costs more per call, is slower, and can produce plausible but wrong text. A useful habit is to try the simplest option first and only move up when you can show it fails on real examples. Mixed designs are common: rules catch the obvious cases, a model handles the rest, and a validator checks the model's output against the allowed values.

LayersA mixed design for ticket routing
  1. 1
    Rules

    Exact matches such as 'invoice number' go straight to billing

  2. 2
    Generative model

    Reads the rest and proposes a category

  3. 3
    Validator

    Rejects categories outside the allowed list

  4. 4
    Human review

    Handles rejected or low-confidence results

Where variation is harmful

Variation is harmless when a person will read and edit the output, such as a draft reply or a meeting summary. It is harmful when the output feeds another system directly: a category that triggers an automatic refund, a field written into a customer record, or a decision about account access. It is also harmful when consistency matters for fairness, such as two customers with the same problem getting different answers. For harmful cases, constrain the output to a fixed set of values, validate it in code, keep the decision itself in deterministic logic, and log every generated value so you can audit it later.

  • Harmless: drafts, brainstorms, summaries a person reads
  • Harmful: money, access, records, legal wording
  • Constrain output to allowed values
  • Keep the final decision in code you can test

Placing human review points

Review is expensive, so place it where it matters. Good review points sit just before an action that is costly or hard to undo, such as sending an external email or changing a record. A second good place is wherever validation fails: unknown category, missing field, or the model refused. Avoid reviewing everything; reviewers who approve hundreds of correct items a day stop reading carefully. Track how often reviewers change the model's output. If they almost never change it for a step, you may be able to sample instead of reviewing every item. If they change it often, the step is not ready for automation.

Learn it in 4 short steps

About 30m each. Track them with a timer in your plan.

  1. 1
    Map the workflow and its inputs~30m
  2. 2
    Compare rules, classifiers and generation~30m
  3. 3
    Spot steps where variation is harmful~30m
  4. 4
    Place human review points~30m

Key points

  • Map the workflow first: inputs, outputs, owners and what happens downstream of each step.
  • Use the simplest method that meets the need; rules and classifiers are easier to test and audit.
  • Generation fits summarising, drafting and extracting from messy text, where fixed logic fails.
  • Steps that change money, access or records need deterministic checks or human approval.
  • Place review where an error is costly and hard to undo, not on every step.

Key terms

Tap a card to flip it. 0/5 known

Examples

Deciding on password reset requests

Contoso's help desk gets 300 password reset requests a day. Step 1: map the step. Input is an email; output is a reset link or a reply. Step 2: check for fixed logic. Most requests contain phrases like 'reset my password', so a keyword rule catches about 80 percent. Step 3: the remaining 20 percent are vague, such as 'cannot get in since Monday'. A generative model can read these and suggest 'password reset' or 'other'. Step 4: the reset itself changes account access, so it stays in code that checks the user's identity. The model never sends the link; it only proposes a category.

A routing rule with a model fallback

This sketch shows the mixed design. A rule handles obvious cases for free. Only unmatched text goes to the model, and its answer must be one of the allowed teams or the request goes to a person.

python
TEAMS = {"billing", "access", "hardware"}

def route(text: str, model) -> str:
    lowered = text.lower()
    if "invoice" in lowered or "refund" in lowered:
        return "billing"
    if "password" in lowered:
        return "access"
    guess = model.generate(f"Pick one of {sorted(TEAMS)}: {text}").text.strip()
    return guess if guess in TEAMS else "human_review"

Quick reference

  • Map each step: input, output, owner, volume, cost of an error
  • Fixed logic: rules. Known labels with data: classifier. Free text: generative model
  • Try the simplest method first and move up only when it fails on real examples
  • Never let generated text change money, access or records without validation
  • Put human review before costly, hard-to-undo actions and on validation failures
  • Track how often reviewers change model output to judge if a step is ready

Common mistakes

  • Using a model for a step a ten-line rule would handle more cheaply and reliably.
  • Letting generated text update a system of record with no validation or approval.
  • Adding review to every step, so reviewers rubber-stamp and miss the risky ones.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Which step is the best fit for a generative model?

Question 2

2What does nondeterministic output mean?

Question 3

3Where is human review most valuable?

Question 4

4A step picks one of six teams and you have 5,000 labelled tickets. What is a strong first option?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    List four steps of a help desk workflow and label each as rules, classifier, generative model or plain code.

  2. Exercise 2medium

    For a step that drafts refund replies, write where variation is harmful and how you would contain it.

  3. Exercise 3hard

    Write a Python function that routes text with rules first, then a model, and returns 'human_review' for anything outside the allowed set. Add a test with a fake model that returns an invalid team.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Should every workflow step use AI now that models are good?
No. Rules and plain code are cheaper, faster and easier to test. Use a generative model only where a step really needs to understand or write free-form language.
What is the difference between a classifier and a generative model?
A classifier picks one label from a fixed list. A generative model writes new output, which can include a label, but it can also produce values outside your list.
Can I remove human review once the model is accurate?
Sometimes, for low-risk steps, after you measure how rarely reviewers change the output. Keep review for actions that are costly or hard to undo.

Go deeper

ShareXLinkedInWhatsApp