LESSON 02 / 16·2 min readFoundation

Why Not Let the LLM Control the Entire Workflow?

Must knowConcept lesson
01 Understand02 Recall03 Prepare

An LLM is useful for interpreting natural language, but its output is probabilistic. Two similar messages can produce different wording or interpretations. This is acceptable for many conversational tasks, but it becomes risky when the system must follow a fixed business process.

Consider a customer reporting an unfamiliar card transaction. The system may need to verify the customer, identify the transaction, classify the dispute, ask mandatory questions, and obtain confirmation before taking an action. These steps cannot be skipped just because an LLM generates a convincing response.

A deterministic engine helps enforce:

  • Consistency: The same validated facts and state lead to the same rule-driven decision.
  • Compliance: Mandatory checks and confirmations remain part of the workflow.
  • Auditability: The system can explain which rule or transition produced a decision.
  • Testability: Expected paths can be reproduced with scripted inputs.
  • Safety: Sensitive actions require explicit authorization and confirmation.

Determinism applies to the rule evaluation and state transition given the same inputs, not necessarily to the raw LLM extraction step. Extraction must therefore be validated before it can influence the workflow.

PAUSE & RECALL

Can you explain it without the notes?

Why Not Let the LLM Control the Entire Workflow?

Use your own words. Explain an example and one limitation before checking the explanation.

Check your explanation

An LLM is useful for interpreting natural language, but its output is probabilistic. Two similar messages can produce different wording or interpretations. This is acceptable for many conversational tasks, but it becomes risky when the syst

CONNECT IT TO YOUR INTERVIEW

Turn this concept into a clear answer.

Practice this concept
YOUR NEXT STEP

Keep connecting the ideas.

Next lesson: The Architecture at a Glance

Adapted from 19_deterministic_workflow_engine_learnings.md · “1. Why Not Let the LLM Control the Entire Workflow?”. Examples are study fragments; framework behavior can depend on your version.