Thanks for the demo.
Since the workflow runs with no human in the loop (“nobody clicks a thing”) and ends in an email to a real person, I’m curious how you make sure each step is reliable?
1. Structured output
The agent prompts ask for JSON. What happens when the model doesn’t comply?
- Is the output validated against a schema (e.g. JSON Schema, or the provider’s structured output / tool calling mode), or is it parsed as-is?
- If validation fails, is there a retry, a repair step, or a fallback (e.g. route to a human, skip the email)?
- Beyond format: what if the JSON is valid but the content isn’t? For example, a segment that isn’t in the allowed set, a score out of range, or a score that contradicts the stated industry or company size. Are there semantic checks, or does that pass straight to the second agent?
2. Evaluating the scoring agent
- Do you have a labeled set of leads with known ICP fit to measure against? Which metrics (accuracy per segment, agreement with sales, calibration of the score)?
- How do you check consistency, i.e. the same lead scored several times, or near-identical leads getting different segments?
3. Evaluating the message agent
- How is “grounded in what you told us” measured? Is there a faithfulness check that the message doesn’t invent facts about the lead’s company or promise things Liferay doesn’t offer?
- Is quality judged by humans, an LLM-as-judge, or both? If LLM-as-judge, how was the judge validated against human ratings?
4. Evaluating the whole workflow
- The second agent depends on the first one’s output, so a wrong segment can produce a confident but wrong message. Do you evaluate end to end, and can you attribute a bad final message to the step that caused it?
- What’s the release gate: which metrics have to hold before a prompt or model change goes live?