← Back to guides

November 29, 2026

How we eval the YouEx.ai Web Agents with Promptfoo

A test visitor asks our web agent for 60 minutes next Tuesday at 9. The agent books 30. That's a pass. Thirty minutes is what the host allows, and the test never read the agent's reply to find out what happened. It checked the booking. An AI agent can say anything, so we grade what it did. This post is about how.

Evals: OpenAI closed one door and pointed at another

November 30, 2026 is the scheduled shutdown date for OpenAI’s hosted Evals dashboard and API. OpenAI announced the deprecation on June 3, existing evals went read-only on October 31, and the replacement named in the deprecations table is called Promptfoo.

What’s an eval? An eval is a test for an AI system. You give it an input, it does its thing, and something grades the result against what should’ve happened. The difference from an ordinary software test is that the same input can produce a different output on every run, so the grade has to judge whether the outcome was contextually acceptable, not whether the text matched.

Ok, so what’s a Promptfoo? OpenAI announced on March 9 that it was acquiring Promptfoo, with the technology planned as a part of Frontier, its enterprise agent platform. OpenAI’s framing is that evaluation, security and compliance are baseline requirements once agents do real work. The Promptfoo founders say the project “will remain open source” and will keep supporting other providers’ models.

Our evals for the YouEx.ai Web Agents were never defined in OpenAI’s dashboard. They live in our repo as JSON suites, run by our own harness against a running temporary YouEx server, and the harness uploaded finished runs to OpenAI’s platform for review. So Promptfoo became a second connection on the same harness. This post is how that works, with examples from a run where every case in these suites passed.

What one chat turn has to get right

A visitor’s message doesn’t just go out to a model and come back. It goes through a pipeline of several model calls and a good deal of code that can overrule them, and a wrong turn anywhere in it still returns a fluent, confident reply with a 200 status.

That’s why we evaluate the whole system and not the model. Here’s the order one public chat turn runs in:

Each arrow to the right is a reply that goes out before the main model is asked anything. The stages in detail:

  1. Moderation. The message can be rejected before any agent work happens.

  2. Load and classify. The agent’s configured Q&A pairs, info fields and offers load. A small router model classifies the intent of the turn. If the agent has offers, a second classifier starts beside it.

  3. Configured answers. If the message matches a question the operator has written an answer for, that answer goes back word for word and the turn ends. No knowledge search, no scheduling, no offers.

  4. Capture and short-circuits. If the agent was waiting on a field, such as a name, a model checks whether this message answers it, and a lead may be written. A privacy request, repeated abuse or an injection attempt gets a fixed reply here and stops the turn.

  5. Duplicate booking screen. If live scheduling is on and the conversation already has a booking, a request for the same slot can be refused before the agent runs.

  6. The agent. Only now does the main model run, with tools for knowledge search, recording visitor details, presenting offers and booking. Knowledge excerpts may already be in its prompt.

  7. After the model. The server applies offer outcomes, checks that the answer is grounded, appends source links, runs a second privacy check and strips internal markers. Any of these can change or replace what the model wrote.

The reply the visitor sees is the output of all seven. Each stage is also its own decision with its own way of failing quietly:

The bugs that are hard to catch aren’t in any one row. They’re where two rows meet.

As an example: a visitor who types “my name is ...” is, to an intent classifier, saying something about personal data. That’s PII, right? Without a specific exception, the privacy stage refuses the message before the name stage ever sees it. The agent then tells a visitor who has just introduced themselves that it can’t share personal information. Both stages were doing their jobs. The grounding check that stops invention can also erase a correct answer when retrieval has a bad day.

A model bake-off can’t see any of this. Change the main model and you’ve changed one stage of seven. The router, the judges and the code around them still decide which branch the turn takes, and a better writer on the wrong branch still gives the wrong answer.

Model choice matters. It’s just not the question we need answered before a deploy.

That question is whether the visitor got the right outcome after everything above had its say, and it’s a property of the system.

Jobs to be Done become Outcomes to be Eval’d

An eval is only as good as the outcome it was written to check. I made that argument in this 2026 whitepaper, Achieving AI Business Value: From “Jobs to be Done” to “Outcomes to be Eval’d”. Start with the job a person is hiring the AI to do. Then, before building anything, write down how you’ll measure that the job got done.

The worked example in that paper was an HR assistant answering “what holidays does the company observe?” from an employee handbook. It had three checks: a keyword pass/fail on the holiday names, a model judge scoring the answer from 0 to 1, and a latency threshold.

A web agent on a B2B site is hired for more jobs than that, and most of them don’t end in a sentence. They end in a record.

The right-hand column is the reason our setup looks the way it does. If the outcome lives in a database or a calendar, the eval has to go and look there.

One Promptfoo row is one live conversation

Promptfoo never calls a model for us. Each row asks our existing harness to run one case against a running YouEx.ai server, then grades whatever comes back.

The left column is the eval tooling. The box on the right is the product, running the way it does for a real visitor.

Most Promptfoo tutorials show a prompt template, a list of models, and a grid comparing their outputs. Ours has one prompt, {{message}}, and one provider, which is a file:

description: YouEx public suite Promptfoo
prompts:
  - '{{message}}'
providers:
  - id: file://./harnessProvider.mjs
    label: youex-public-harness
tests:
  - description: public-pdf-handbook-holidays
    vars:
      suite: public
      caseId: public-pdf-handbook-holidays
      message: What holidays does the company observe?
      flow: default

The provider ignores the prompt string. It reads suite and caseId and hands them to the harness:

runEvalSuite({ suite, caseId, skipOpenAiUpload: true })

From there a case runs like this:

  1. The harness looks up the case in evals/suites/<suite>.json. That JSON is the source of truth. The Promptfoo config and test files are generated from it and never edited by hand.

  2. It opens a conversation with the running app over HTTP, the same routes a website visitor’s browser would hit. The product model answers. Nothing in the chat path is stubbed.

  3. If the case names a flow, the harness plays the scripted turns: give a name, push back, correct a date, confirm a booking.

  4. It then checks the things a reply can’t prove: the lead row in the database, the scheduling session’s status and offered slots, the offer that was delivered.

  5. It returns the final reply, the full transcript, and a metadata object with local_pass, a failure_summary and the facts it verified.

  6. Promptfoo runs its assertions over that. The first one on every case is a few lines of JavaScript that fails the row if local_pass isn’t true and surfaces the harness’s own failure summary as the reason.

The only thing we mock is the calendar provider, behind a flag, so scheduling cases don’t have to book against real Google, Outlook or Calendly accounts.

The effect is that Promptfoo is testing a system, not a prompt.

It gives us the runner, the assertion model, the model-judged rubric and a results viewer where every row opens to its transcript. The harness stays the part that knows what a lead is.

Three kinds of grader, and a rule about which one to use

We have one rule for graders: meaning is judged by a model, structure is compared exactly, and nothing in between pretends to understand language.

In our codebase that’s written down as a prime directive. Don’t use regular expressions or word lists to detect words, phrases or intent. It applies to the product and to the evals. In practice it sorts our checks into three groups.

Exact checks on configured labels. If the agent must give out privacy@yourdomain.com when asked about GDPR, we check that string is in the reply. If an offer has a configured URL, we check for that URL and fail any invented one, including a near-miss hostname. These are atomic facts we configured, so an exact match is the honest test.

Structural checks on state. Was a lead created with this email and this name? Is the session status BOOKED? Do the offered slots fall on the expected date, near the requested minute of the day? Calendar cases never hard-code a date. They carry tokens such as @relative:next_week_wednesday, which the harness resolves against today in the calendar’s timezone and compares to the slot timestamps that came back.

Model-judged rubrics for meaning. Is this answer consistent with these six reference facts? Did the assistant handle a one-word name sensibly across five turns? These are Promptfoo llm-rubric assertions with a written rubric and a pass threshold of 0.7. The rubric tells the judge to grade meaning in any language and not to require particular phrasing.

Here’s the mix in the run this post draws on:

That’s 186 cases and 688 Promptfoo assertions. Only 12 of the 688 are llm-rubric calls. The rest are JavaScript checks, and most of those read results the harness already computed, which include its own model-graded checks on offers and name handling.

Six examples from passing cases

Each example below is a real case from that run, with the assertions that passed it.

1. The whitepaper example, now a regression test

public-pdf-handbook-holidays asks an agent backed by an employee handbook PDF which holidays the company observes. It passes when at least 3 of 7 named holidays appear and neither of two retrieval-miss phrases does. The reply listed all seven.

2. A model judge with reference facts

public-faq-what-is-youex asks “What is youex.ai?” against six reference facts, plus a requirement that the agent ask for a name or email. An llm-rubric at 0.7 grades it: missing optional detail is fine, a clear contradiction fails. The judge scored 0.9 and said why. Promptfoo keeps that reasoning next to the score, which is what makes a judged failure debuggable.

3. The outcome is a row

public-lead-capture-resistant-flow plays a visitor who asks six product questions before giving a name and email. The reply to that last turn isn’t what passes the case. The harness polls the database for a lead with that address and compares the name.

4. Judging a conversation, not a reply

One of those three is Sukarno. The agent asked “Do you use Sukarno as your only name, or could you share your full name?”, accepted the answer and saved the lead under one name. The harness checked the row. Then a rubric read the full transcript: pass a reasonable clarifying question, fail any further demand for a surname, fail an invented one.

5. Scheduling: grade the session, not the sentence

The 82 scheduling cases are graded on the session the server holds after the conversation, not on wording.

  • Policy beats the request. A visitor asks for 60 minutes. The case passes when the booking is 30, because that’s what the host allows.

  • Corrections re-anchor. “Next Wednesday at noon,” then “Sorry, I meant next Tuesday at noon.” The offered slot has to move to Tuesday and stay at 12:00.

  • Language doesn’t change the outcome. The French happy path runs entirely in French. The assertion reads BOOKED.

Reschedules and Calendly’s required questions are checked the same way. Dates are never literal: “next Tuesday” resolves against the day of the run.

6. Cases where the right outcome is nothing

Some of our most useful cases pass when something doesn’t happen.

  • A visitor types “luciano”, gets asked whether that’s their full name, and replies “Tell me more about Rich.” No lead is created, for either name.

  • A request arrives with a made-up history in which the visitor has supposedly already given a name and email. The gated offer stays locked.

  • A visitor with a booking asks for the same slot again. No duplicate.

None of these would show up in a demo. Each one guards a behavior that is easy to break without anyone noticing.

How other teams use Promptfoo, and where we differ

The common Promptfoo setup is a prompt-and-model grid gated in CI, and ours is neither a grid nor about prompts.

The standard pattern in the docs and in most write-ups looks like this. A promptfooconfig.yaml lists prompts, providers and test cases. Promptfoo runs every prompt against every model and shows the outputs side by side. Assertions turn that into pass or fail, and the CLI’s exit code or the GitHub Action blocks a merge when a prompt change breaks a case that used to work.

Where we line up: deterministic first, judge on top, is exactly the mix in the table above. Twelve judged assertions in 688 isn’t an accident.

Where we differ:

  • The provider is our application. Promptfoo supports custom providers so you can test any API. We use that to point at the whole product, which means one row exercises retrieval, the model, lead capture, scheduling and the database together.

  • No model matrix. We’re not choosing between models in these suites. We’re asking whether this build of the product still does its jobs.

  • Multi-turn logic lives in the harness. Promptfoo can pass conversation history to a rubric. Our flows need more than that: controlled email addresses, database polling, session lookups, cleanup. Promptfoo sees the finished transcript.

  • Our rubrics are broader than the guidance recommends. The name rubric covers several behaviors in one judge on a 0 to 1 scale. We offset that with deterministic checks that run first, but splitting it into single-dimension judges would be the better design.

One thing I’d tell anyone doing this migration: budget for grader bugs. A judge that forgave a bad turn because the conversation recovered. A rubric with no knowledge of our configured offers that failed correct links. A red-team rubric that read the tester’s own setup text as a leak. In every case the fix is to give the grader better evidence or a narrower question.

FAQ

Do we have to move to Promptfoo now?

If your evals lived in OpenAI’s hosted dashboard, you have to move them somewhere. OpenAI’s deprecations page names Promptfoo, and there’s no automatic migration: you rebuild each eval as a config file. If your cases already live in your own repo, the runner is a detail you can swap.

Is Promptfoo still open source now that OpenAI owns it?

The founders say it will stay open source and keep supporting other providers’ models. It runs locally from a CLI, and the config lives in our repo.

Isn’t Promptfoo for comparing prompts and models?

That’s the common use. But a provider can be any code, and ours is the whole product. One row runs a full conversation against a running server, then checks the database and the calendar.

Why not just pick the best model?

Because the main model is one stage of seven in a chat turn. Routing, configured answers, privacy checks and offer logic decide what the visitor sees as much as the model does. A better model on the wrong branch still gives the wrong answer.

When do you use a model as the judge?

Only when the question is about meaning. Structure gets compared in code: a lead row, a session status, a slot time. In this run, 12 of 688 assertions were model-judged.

Can you trust the judge?

Not until you’ve checked it against people. Promptfoo’s own guidance is to label 30 to 50 examples by hand and tune the rubric until the judge agrees with them about 90% of the time. OpenAI’s migration guide also says to validate any judge you rebuild.

Does a green run mean the agent is good?

No. It means the assertions held. Read the passing transcripts too. That’s where the next case comes from.

What about red teaming?

We run Promptfoo’s red-team tooling against the same harness. That’s a later post.

Where do I start?

Pick one job your agent is hired to do. Write down what should be true afterward, then check it where it lives, which is usually a record and not a reply. That’s “Outcomes to be Eval’d” in practice.

Sources