Skip to content

AI 202 · Module 1

From Workflow to Adaptive Agent

When is a Workflow not enough, so that the agent has to decide the next step itself?

Start Section 1
0 / 5 completed
Sync my progressJoin a session to keep progress across devices and share it with your instructor

Info

After you join, your completed lesson numbers are sent to your instructor together with your learner code, so they can see your progress. Use the codes your instructor gave you, and do not enter your name, company secrets or other personal data. Progress is kept with the rest of that session's data.

Learning objectives

  • Distinguish a Fixed Workflow, a Conditional Workflow, an Agentic Workflow and an Adaptive Agent
  • Explain what makes an agent adaptive: the next step depends on goal, state, observations, available actions and previous results
  • Describe an agent task using Goal, State, Observation, Action, Environment and Feedback
  • Name the Constraints, Bounded Autonomy and Stop Conditions that keep an adaptive agent under human control
  • Choose one real use case, described with simulated data, to carry through the whole course

Problem and need

8 min

When the path cannot be written in advance

In AI 104 you designed workflows: the steps, their order and the checkpoints were decided by a person in advance. That works well as long as you can write the path down. This course starts where that stops. The core question is: when is a Workflow not enough, so that the agent has to decide the next step itself?

Work scenario (simulated)

A research assistant is asked: "Find out why course sign-ups dropped this term." There is no fixed path. The first data source may show that the drop is only in evening classes, which changes what to look at next. A second source may be missing, so another one is needed. The right next step depends on what was just found, and nobody can list every step before starting.

  • The next step depends on what the last step returned, so it cannot be fully predefined
  • The same goal may need different paths on different days or with different data
  • Some steps only make sense after earlier ones have revealed the situation
  • A fixed script either breaks on the unexpected or ignores it

Warning

More freedom is not automatically better. An agent that chooses its own next step is less predictable, costs more to run and is harder to review. Use adaptive behavior only where the path truly cannot be fixed, and always with limits and a person who remains responsible.

Key takeaway: When the path cannot be fully written in advance, the next step has to depend on the situation. That is the adaptive part.

Core concepts

10 min

Four stages: Fixed to Adaptive

Between a script and an agent there is a progression. Each stage hands a little more of the "what next" decision to the AI.

From Fixed Workflow to Adaptive Agent
  1. Fixed Workflow: every step and its order is defined in advance
  2. Conditional Workflow: defined steps with branches chosen by explicit rules
  3. Agentic Workflow: a mostly fixed flow with some steps judged by the AI within limited options
  4. Adaptive Agent: the next step depends on goal, state, observations, available actions and previous results

Text equivalent: the four stages run in a line from the most predictable to the most flexible. A Fixed Workflow always follows one path. A Conditional Workflow follows one of several paths chosen by rules written in advance. An Agentic Workflow keeps the overall flow fixed but lets the AI make a few bounded judgments. An Adaptive Agent chooses each next step from the situation it is in.

Comparing the four stages (simulated examples)
StageWho decides the next step?Example
Fixed WorkflowThe designer, once, in advanceEvery Friday: collect feedback, classify, summarize, draft the report
Conditional WorkflowRules written in advanceIf the message is about billing, send it to flow A; otherwise to flow B
Agentic WorkflowMostly the designer; the AI judges a few steps within limitsThe flow is fixed, but "does this comment need follow-up?" is judged by the AI, and unclear cases go to a person
Adaptive AgentThe agent, based on the goal and what it has observed so farGoal: "find out why sign-ups dropped"; the agent chooses which data to look at next, within allowed sources and a step limit
Check yourself

A mailbox sends each message to one of three predefined handling flows by category. Every flow has fixed steps. Which stage is it?

A mailbox sends each message to one of three predefined handling flows by category. Every flow has fixed steps. Which stage is it?

Key takeaway: The stages differ in one thing: who decides the next step, and how open the choice is.

12 min

Goal, State, Observation, Action: the vocabulary of an agent

An adaptive agent is easiest to understand as a loop. It has a goal, looks at the situation, picks an action, carries it out and looks at what happened. Six words describe that loop precisely, and the rest of the course uses them every time.

The basic agent loop
  1. Goal: what the agent is trying to achieve
  2. Observe State: what is the situation right now?
  3. Choose Action: which available action fits best?
  4. Execute: carry the action out in the environment
  5. Observe Result: the feedback from the environment; then return to Observe State

Text equivalent: the loop starts from a Goal. The agent observes the current State, chooses an Action, executes it, and observes the result. The result changes the State, and the loop repeats until the goal is reached or a Stop Condition applies.

Six terms, illustrated with a simulated sign-up analysis
TermMeaningExample
GoalThe result the agent works towardExplain the sign-up drop in a short note a manager can review
StateWhat the agent currently knows and has doneSign-up counts loaded; drop seen only in evening classes; marketing data not yet checked
ObservationNew information the agent receivesThe marketing export shows no change in ad volume
ActionSomething the agent can do nextOpen the class schedule; compare with last term; ask a person for missing data
EnvironmentThe world the agent acts in and can only partly seeThe data sources, documents and systems it is allowed to use
FeedbackWhat the environment returns after an actionA table of numbers, an error, an empty result

Workflow

  • The next step is mostly predefined
  • Observation only confirms the step is done
  • Predictable and easy to review

Adaptive Agent

  • The next step depends on goal, state, observations, available actions and previous results
  • Observation changes what happens next
  • Flexible, but needs limits and review
Check yourself

The agent opens a data file and finds that the "evening" column is empty. In the loop, what is that empty column?

The agent opens a data file and finds that the "evening" column is empty. In the loop, what is that empty column?

Key takeaway: Goal, State, Observation, Action, Environment and Feedback describe every adaptive agent, however it is built.

Boundaries and control

10 min

Constraints, Bounded Autonomy and Stop Conditions

The more an agent decides for itself, the more important its limits become. Three ideas keep an adaptive agent useful and safe: Constraints define what it must respect, Bounded Autonomy defines how much it may decide alone, and Stop Conditions define when it must stop.

Three controls for an adaptive agent
ControlThe question it answersExample (simulated)
ConstraintsWhat must the agent always respect?Use only the approved data sources; no personal data; finish within 20 minutes
Bounded AutonomyWhat may it decide alone, and what needs a person?It may read and summarize freely; sending anything outside the team needs human approval
Stop ConditionsWhen must it stop, whether or not the goal is reached?Goal reached; 10 steps used; two errors in a row; required data missing; needs a decision beyond its limits
  • Read-only actions can usually be given more freedom than actions that change or send something
  • The bigger the impact of a mistake, the earlier a person should be involved
  • A stop condition is a design decision made before the run, not something the agent decides on its own

Info

Human-AI-Human: a person defines the goal and the limits, the agent chooses its steps inside those limits, and a person reviews the result and stays responsible for it. Later modules add Human Escalation, which is the rule for when the agent must hand a decision back to a person.
Check yourself

Which is a well-formed Stop Condition for an adaptive research agent?

Which is a well-formed Stop Condition for an adaptive research agent?

Key takeaway: Autonomy always comes with Constraints, Bounded Autonomy and Stop Conditions that a person sets before the run.

Practice and apply

10 min

Practice: Workflow or Adaptive Agent?

Below are 8 simulated scenarios. For each, choose one: Fixed Workflow, Conditional Workflow, Agentic Workflow or Adaptive Agent, and say who decides the next step. Some cases can reasonably be read two ways; what matters is that you can explain your reasoning. Please do not enter real company secrets, client personal data or any unauthorized sensitive information in this exercise.

8 scenarios (decide for yourself)
CaseScenarioThink about
1Every Monday: export attendance, calculate rates, paste into a template, send for review, always in this orderIs anything decided along the way?
2Expense claims under a set amount go to automatic checks; claims above it go to a manager, by a ruleAre the branches and their conditions written in advance?
3A reviewing flow is fixed, but "is this source reliable?" is judged by an AI against a checklist, and doubtful cases go to a personMostly fixed, with a bounded AI judgment
4Goal: "find why lab bookings fell"; the agent picks which records to open, follows leads and stops at 12 steps or when it needs data it lacksWho decides the next step? What are the limits?
5A form letter is filled from a template with a name and dateIs there any real decision?
6A helper that, given "prepare a briefing on options for the new room booking system", searches, reads, changes its approach when sources disagree, and asks a person when it hits a policy questionHow open is the path? Where is the person?
7Messages are sorted into billing, technical or general by an AI, then follow three fixed handling flowsWhere does the AI decide, and what happens after?
8A nightly job backs up files to a set folder and logs the resultAny need to adapt?
  • Fixed Workflow: every step and its order is defined in advance
  • Conditional Workflow: defined steps with branches chosen by rules written in advance
  • Agentic Workflow: mostly fixed flow, some steps judged by the AI within limited options
  • Adaptive Agent: the next step depends on goal, state, observations, available actions and previous results
  1. Apply: choose one real use case for the whole course
    Pick a task where the path really cannot be fully predefined: the next step depends on what you find. Every later module practices on it, and it ends up in your Agent Planning & Reasoning Canvas.
  2. Describe it with simulated data
    Write only the goal and the nature of the work, with no real names, client personal data or company secrets. If the task involves sensitive content, use a simulated version.
  3. Write the Goal and the limits
    One sentence for the Goal, for example "Explain why sign-ups dropped, in a note a manager can review", plus one Constraint and one Stop Condition.
Check yourself

You need to pick one use case for the whole course. Which is the best fit?

You need to pick one use case for the whole course. Which is the best fit?

Key takeaway: Human-AI-Human: a person defines the goal and limits, the agent chooses its steps inside them, and a person reviews and stays responsible for the result.

What next?