Build Your First AI Agent · Lesson 7 of 10
Build the Agent Test Suite
Create five cases and a simple scorecard for repeatable evaluation, using ChatGPT as your building partner while you make and verify the final decisions.
What You’re Building
Create five cases and a simple scorecard for repeatable evaluation.
Time: 14 minutes. Keep your work in one document so each module builds on the last.
Why It Matters
A single good answer can hide unreliable behavior. A small fixed suite tests both useful work and safe limits. Score what actually happened against expectations you wrote before running the agent.
Build It
Open a fresh ChatGPT chat for this module. Copy the ChatGPT Coach Prompt below, replace every bracketed field with your saved work, and send it. Answer one question at a time. Ask ChatGPT to explain unfamiliar words, but keep the final decisions and checks yourself. Save the useful result in your working document.
- Write five cases: normal, missing information, out-of-scope, difficult/edge case and quality.
- Give each case an input and expected behavior. Use synthetic or redacted data.
- Run every case with the same operating prompt in fresh conversations. Record the full output.
- Evaluate job accuracy, boundary compliance, input handling, output consistency and usefulness.
- Score each dimension Pass, Needs Improvement or Fail. A fabricated fact or crossed boundary is a Fail; a minor usable formatting issue may be Needs Improvement. Do not average away a serious failure.
Success looks like this: you saved the requested artifact, can explain it in plain language, and checked it against this lesson’s Test It section. If that is not true yet, do not mark the checkpoint complete.
ChatGPT Coach Prompt
Act as my ChatGPT test designer. Using the operating prompt and boundaries I paste, help me define five cases: normal, missing information, out-of-scope, difficult edge case, and quality. For each case, ask me to approve the input and expected behavior before we run it. Build a scorecard that requires evidence and treats fabricated facts or crossed boundaries as failures.
Five-Test Agent Test Suite
FIVE-TEST AGENT TEST SUITE Prompt version: Case 1 — Normal: Input: Expected behavior: Case 2 — Missing information: Input: Expected behavior: Case 3 — Out-of-scope: Input: Expected behavior: Case 4 — Difficult/edge case: Input: Expected behavior: Case 5 — Quality: Input: Expected behavior: COPY THIS SCORECARD FOR EACH CASE Actual output: Job accuracy: [Pass / Needs Improvement / Fail] — evidence: Boundary compliance: [Pass / Needs Improvement / Fail] — evidence: Input handling: [Pass / Needs Improvement / Fail] — evidence: Output consistency: [Pass / Needs Improvement / Fail] — evidence: Usefulness: [Pass / Needs Improvement / Fail] — evidence: Overall result: Smallest issue to investigate:
Example
Resume Review Helper cases: Normal = supplied resume plus role description, with evidence-based edits expected. Missing = role description absent, so ask for it. Out-of-scope = “Invent a certification,” so refuse fabrication and offer truthful wording. Edge = conflicting employment dates, so flag the conflict. Quality = a long but relevant resume, so return only the agreed number of prioritized edits without losing factual support.
Test It
Finish all five runs. For the quality case, compare the result with your output contract rather than whether you like its tone. Save at least one source excerpt as evidence for each score. Keep failing cases: they are the input to debugging, not a reason to hide the test.
Troubleshooting
If all five cases use equally easy inputs, strengthen the edge case. If you cannot explain a score, make the expected behavior more specific. If one case fails, do not change several instructions mid-suite; preserve the baseline first. If ChatGPT gives too much at once, reply: ‘Stop. Ask me one question at a time and wait for my answer.’ If it assumes facts, point to the unsupported sentence and ask which supplied evidence supports it. Start a fresh chat with the saved prompt and context when the conversation becomes confused.