Lesson 2 of 4 · 30 min

AI Decision Steps vs Rules in Workflows

Use a rule when you can and a model when you must.

XDQ Tutor · AI guide

Hello. In this lesson I will take you through 3 ideas, one at a time.

  1. Two kinds of decision
  2. Writing the question
  3. When the model is unsure

Why it matters: Use a rule when you can and a model when you must. After each idea I will ask you one quick question.

Two kinds of decision

The short version: Some decisions are exact: is the amount above a limit, is an email present, is the score below sixty.

Some decisions are exact: is the amount above a limit, is an email present, is the score below sixty. Use a rule. It is free, instant and always the same.

Others need reading: is this message urgent, is this a real buyer, did the customer report damage. Use an AI decision with a plainly worded yes or no question.

Quick check

Which decision should be a rule?

Writing the question

The short version: Ask one thing.

Ask one thing. Say what counts as yes. Is this a real buyer enquiry that names a product and a quantity is better than is this a good lead. Vague questions give varying answers.

Keep a set of real messages with the right answer and test the question against them before relying on it.

Quick check

Where should an unsure AI answer go?

When the model is unsure

The short version: Decide in advance which way an unsure answer falls.

Decide in advance which way an unsure answer falls. For urgent symptoms, unsure should mean treat as urgent. For a refund, unsure should mean send to a person.

Choose the safer branch as the default and review the cases that took it.

Key takeaways
  • Exact conditions use rules
  • Reading and judgment use an AI decision
  • Ask one clear yes or no question
  • Unsure answers take the safer branch
Try it

Take two decisions from your process. Write one as a rule and one as an AI question, with five test messages and the expected answer for each.

That is the lesson.
Mark it complete to track your progress on this device.
← PreviousMapping a Business Process for AI AgentsNext lesson →Approval and Escalation Design in Workflows