Free lesson · Module 1, lesson 3 of 7

When not to build an agent

Apply a four question test (is the path known, is a mistake costly, is it worth the money, can you check the result) and judge three agent ideas: one a simple program does better, two that should not be built.

Lessons in this module

Lesson notes

For the student

An agent chooses its own next step, and that freedom has a price: more model calls, more waiting and less predictability. Before you build one, put the idea through four questions. Many ideas end as a form, a search box or a script, and that is a good result.

The four question test

  • Is the path known? If you can write the steps down in advance, a workflow or a plain program does it better
  • Is a mistake costly? If a mistake cannot be undone (money sent, a record deleted, a result published), a person approves that step, or there is no agent
  • Is it worth the money? An agent makes several model calls for one task; they must cost less than the task earns or saves
  • Can you check the result? If nobody can tell a right result from a wrong one, do not automate the task

Three verdicts

  • Ask the questions in order and stop at the first one that rules the agent out
  • Simplify: the path is known, so build a workflow, a form, a search box or a script
  • Do not build: the calls cost more than the task is worth, or nobody can approve the risky step, or nobody can check the result
  • Build an agent: the path is open and the other three questions pass; a costly step waits for a person's approval

The three ideas from the lesson

  • Canteen orders from a fixed menu: the path is known, so simplify (a form and a script)
  • A chat agent for a photocopy shop: each chat costs about ₹2 and a small job earns about ₹1, so do not build
  • Marks for 3,000 answer scripts: a mistake cannot be undone and nobody can approve or check every mark, so do not build

A quick check for question one

  • Try to write the task as a numbered list of steps. If you can, it is a workflow or a script
  • The list answers only question one. If you cannot write it, still ask the other three

Why the Campus Helpdesk is an agent

  • One fee enquiry alone has a known path: a workflow can handle it
  • Students ask open questions that mix fees, the timetable and notices, and nobody can list those paths in advance
  • A wrong answer can be corrected, and each answer can be checked against the fee table or the notice
  • One step is risky: raise_request acts on the college office, so the agent proposes it and a person approves it first
  • Whether it is worth the money is measured, not assumed: you will log the cost of every model call later in the course

Try it

Worksheet: apply the test to these five ideas and mark each one build, simplify or do not build. Write down which question decided it.

  • An agent that takes hostel leave requests: the student gives two dates and a reason, and the warden signs
  • An agent that sends the same fee reminder message to every student on the first of each month
  • An agent that answers students' mixed questions on hostel rules, mess timings and notices, and changes nothing
  • An agent that refunds fees into students' bank accounts on its own, in an office where nobody has time to approve each refund
  • An agent for a grocery shop that shows an item's price when the shopkeeper types its name

You should end with three simplify, one build and one do not build.

Lesson quiz

Checked in your browser. Nothing is sent or saved.

5 questions

Question 1 · easy

Which of these is not one of the lesson's four questions?

Question 2 · easy

Canteen orders from a fixed menu: what is the verdict of the test?

Question 3 · medium

A chat agent for a photocopy shop costs about ₹2 a chat, and a small job earns about ₹1. Which question rules it out?

Question 4 · medium

In the Campus Helpdesk, how is the raise_request step handled?

Question 5 · hard

An agent would refund fees into students' bank accounts on its own, in an office where nobody has time to approve each refund. What is the verdict?

Chatbot, workflow or agent: three ways to build one featureNext: Reading an agent run, step by step