Measure how often your classification step gets the label right before you rely on it.
Open your inbox, your past form responses or the sheet your flow reads from, and copy out 20 real messages of the kind your AI step will handle. Gathering them takes about half an hour. In Lesson 5.2 you wrote a classification prompt and tried it on a couple of messages. Getting those right shows the step can work. It doesn't show how often it works, or which kinds of message it gets wrong. Running it on 20 real messages turns your feeling about the step into a number you can compare later.
Use real messages. Invented ones are tidier than what people actually send, so they make the step look better than it is.
Aim for a spread. Most should be ordinary messages, a few should be awkward, and at least one or two should be messages you would hesitate over yourself.
Remove personal details such as names, phone numbers and email addresses before you use the messages, unless your workplace has approved sending that data to the model provider. Lesson 2.4 of the course AI at work, "Redact a real document so you can still get help", shows how to take these out without losing the meaning of a message.
Set up a sheet with five columns: message number, message text, your label, AI label, and match. Fill in your own label for all 20 messages before the AI sees any of them. Once you have seen the AI's answer, you'll be tempted to agree with it, and your labels stop being a fair check.
Then run the messages through the step. You can trigger the whole flow once per message using test data, or use your tool's option to test a single step with different inputs. Record each AI label in its column.
Mark each row with one of three results. A match means the AI label is the same as yours. A mismatch means the AI gave a different real label. Unsure means the AI answered unsure. When every row is marked, count how many rows have each of the three results.
Mismatches are the dangerous result, because they send a message down the wrong path and nobody notices. Unsure results are safe because they go to a person, but if you get too many of them, the step isn't saving much work.
Mei Ling runs enquiries for a tuition centre. Her step uses three labels: trial, schedule and unsure. On her first run of 20 enquiries she got 14 matches, 3 mismatches and 3 unsure (example figures; yours will differ). That is 14 out of 20, or 70 percent right. The 3 mismatches mean 15 percent went down the wrong path, and the 3 unsure mean 15 percent came to her to sort.
When you see your totals, don't jump to adding instructions to the prompt. Read each mismatch first and work out why it happened. A mismatch usually has one of three causes:
Overlapping label definitions, where the message genuinely fits two labels. Tighten the definitions so each message has one home. A kind of message missing from the labels entirely. Add a label if that kind needs its own action, or state explicitly which existing label it belongs to. Your own label was wrong or inconsistent, which happens more often than people expect. Correct the label in the sheet and note the correction.
Two of Mei Ling's mismatches were messages asking "is there still space in the Saturday class?" The AI labelled them trial and she had labelled them schedule, because her definitions didn't say where questions about availability belonged. The third was a parent asking about make-up classes for a missed lesson, which fitted none of her labels and should have come back unsure.
Change the label definitions or examples to address what the mismatches showed. Change as little as possible each time, so you know which change made the difference. Adding general advice such as "be careful and think step by step" rarely helps and makes the prompt harder to maintain.
Mei Ling made 2 changes. She added "including whether a class has space" to the schedule definition. She added "questions from current students about their own classes" to the unsure definition, because she wants to handle those personally.
Rerun the same 20 messages through the revised prompt. If you used different messages, you couldn't tell whether a better result came from the prompt or from easier messages. Record the new results next to the old ones, then undo the change if the result got worse, or keep it if the result got better.
Mei Ling's second run on the same 20 gave 17 matches, 1 mismatch and 2 unsure. That is 85 percent right, 5 percent misrouted and 10 percent sent to her. You can repeat the cycle, but for this exercise the target is one careful revision.
Twenty messages is a small sample, so treat your percentages as a rough guide to how the step performs, and expect most of the value to come from reading the mismatches and finding out why each one happened.
Keep the 20 messages and your labels. Whenever you change the prompt in future, test the new version on the same set before it goes live.
Have the sheet ready with all 20 messages labelled by you, and keep the prompt from Lesson 5.2 open so you can edit its label definitions between runs. A good result has fewer mismatches on the second run than the first, and each change can be traced back to a specific mismatch you read.
Run 20 labelled examples through your AI step and record the results in a table, with a count of matches, mismatches and unsure for each run. Revise the prompt once, then run them again, and add a one-line note of what you changed and why.
Junxiong-WFG Organisation is an authorised representative of AIA Financial Advisers Private Limited (Reg. No. 201715016G).