Predictika · Contact lens orders

An AI sales agent's contact lens order, checked before it goes out

An AI sales agent prepares a practice order for contact lenses: the lens, the sphere power, cylinder and axis for each eye, the package size and the number of boxes. Before it goes out, the agent sends it to Predictika, which checks it against a declarative model of the parameters CooperVision publishes for each lens and returns a verdict, every reason and the figures it computed.

Scope: CooperVision MyDay, MyDay toric, Biofinity, Biofinity toric and Biofinity XR toric orders: sphere range and steps, cylinder and axis for each eye, package size and lens count. See everything this validator covers

This validator models orders for six published CooperVision lens parameter sets (MyDay, MyDay toric, Biofinity, Biofinity toric and the standard and extended cylinder ranges of Biofinity XR toric), not just the scenarios shown below.

  • Sphere power — each lens is made in its own range (for example MyDay +8.00 to -12.00 D, with no plano) in 0.25 D steps in an inner range and 0.50 D steps beyond it; a power outside the range or between steps is blocked for that eye.
  • Cylinder and axis — a toric lens needs one of its listed cylinder powers and an axis on its step (10 degrees for MyDay toric and Biofinity toric, 5 degrees for Biofinity XR toric); a spherical lens carries neither.
  • Packages and lens count — each lens is offered in its published package sizes (for example MyDay 90 or 180, Biofinity 6), at least one box is needed, and the lens count the agent states is compared with boxes times package size.

Any order for these lenses that touches these rules is in scope — not only the scenarios pictured here. Not covered: other CooperVision lenses (multifocal, toric multifocal, other materials), prices, practice and buying-group pricing, rebates and programs (not public), fitting and clinical suitability.

The AI sales agentBuilds the lens order from the conversation and says it is ready.
Predictika validatorChecks every rule at once and returns the verdict, each finding, and the computed figures.

7 scenarios in 3 groups · each group runs from the agent’s first attempt to the outcome · click one to switch

What the agent proposes

The AI sales agent says

Illustrative agent statement. The validator receives the structured request below.

Proposing agent: AI sales agent (scripted)

Before sending, the agent must call Recorded run

Predictika validator


      
Waiting for the call.

Where rules-based CPQ gets it wrong

Click to expand

Our assessment of what a typical rules-based CPQ (product rules, price rules and validation rules, as in Salesforce CPQ) does with the same cases. It is a judgment about effort and reliability, not a claim that nothing can be built.

What the validator caughtTypical rules-based CPQPredictika
A sphere power that is between the steps a lens is made inOnly with care
The step is 0.25 D inside an inner range and 0.50 D outside it, and the ranges differ by lens; each lens needs its own lookup and arithmetic rule.
The lens and the power are in one request and the range and step are checked together for each eye.
A cylinder power that the lens is not made inOnly with care
Each toric lens has its own list of cylinders (and a spherical lens has none), so each needs a list rule kept in step with the published tables.
The lens and each eye's cylinder are checked together on every call.
An axis that is off the lens's stepOnly with care
Axis steps are 10 degrees for some lenses and 5 degrees for others, so the rule depends on the lens chosen on another line.
The lens, cylinder and axis are in one request, and the step comes from the lens.
Both eyes checked in one answerOnly with workarounds
Rules tend to fire as a line is saved, so a rep fixes one eye and then meets the next error.
All findings for both eyes come back together, whatever order the choices arrived in.
A stated lens count that disagrees with boxes times package sizeOnly with workarounds
The count is a derived figure; checking a stated number against it takes extra formulas that interact with the package rules.
The stated lens count is a field in the request and is compared with the computed one.

What this validator catches: findings from its test cases

Click to expand

Every rule is checked on every call, in any order the choices arrive; one problem never hides another. Blocking findings stop the quote; approval findings need a person to sign off; everything else is computed.

1The right eye sphere power is not on a step the MyDay lens is made in (0.25 D steps only in its inner range, 0.50 D steps beyond).
2The right eye sphere power is outside the range the MyDay lens is made in.
3The left eye sphere power is not on a step the MyDay lens is made in (0.25 D steps only in its inner range, 0.50 D steps beyond).
4The left eye sphere power is outside the range the MyDay lens is made in.
5The right eye is ordered at plano; the MyDay lens is not made in plano.
6The right eye cylinder power is not one the MyDay lens is made in (a toric lens needs a listed cylinder; a spherical lens has none).
7The right eye axis is not one the MyDay lens is made in (a toric lens needs an axis from 1 to 180 degrees on its step; a spherical lens has none).
8The MyDay lens is not offered in a package of 6.
9The order has no boxes for either eye.
10The order states 400 lenses; 4 boxes of 90 come to 360.
11The right eye cylinder power is not one the MyDay toric lens is made in (a toric lens needs a listed cylinder; a spherical lens has none).
12The left eye cylinder power is not one the MyDay toric lens is made in (a toric lens needs a listed cylinder; a spherical lens has none).
13The right eye axis is not one the MyDay toric lens is made in (a toric lens needs an axis from 1 to 180 degrees on its step; a spherical lens has none).
14The left eye axis is not one the MyDay toric lens is made in (a toric lens needs an axis from 1 to 180 degrees on its step; a spherical lens has none).

Scenarios and results

Click to expand

The recorded result of the validator for each scenario on this page: the request the AI agent sent, the verdict, and every finding, in the order they appear above.

1. High-power monthly toric lenses: Biofinity toric order with a -11.00 D right eye

The agent's request. Please order Biofinity toric lenses in packs of 6: 12 boxes for the right eye at -11.00 D with a -1.25 cylinder at axis 80, and 12 boxes for the left eye at -8.00 D with a -1.75 cylinder at axis 92. The order states 144 lenses. It is ready to send.

Verdict: Blocked.

  • Right eye sphere power out of range. The right eye sphere power is outside the range the Biofinity toric lens is made in.
  • Left eye axis not available. The left eye axis is not one the Biofinity toric lens is made in (a toric lens needs an axis from 1 to 180 degrees on its step; a spherical lens has none).

2. High-power monthly toric lenses: The agent resubmits after fixing the errors

The agent's request. Please order Biofinity XR toric (standard cylinders) lenses in packs of 6: 12 boxes for the right eye at -11.00 D with a -1.25 cylinder at axis 80, and 12 boxes for the left eye at -8.00 D with a -1.75 cylinder at axis 95. The order states 144 lenses. It is ready to send.

Verdict: Blocked.

  • Left eye sphere power out of range. The left eye sphere power is outside the range the Biofinity XR toric (standard cylinders) lens is made in.

3. High-power monthly toric lenses: The agent resubmits after fixing the errors

The agent's request. Please order Biofinity XR toric (standard cylinders) lenses in packs of 6: 12 boxes for the right eye at -11.00 D with a -1.25 cylinder at axis 80, and 12 boxes for the left eye at -11.50 D with a -1.75 cylinder at axis 95. The order states 144 lenses. It is ready to send.

Verdict: Allowed.

  • Order summary. Biofinity XR toric (standard cylinders) lenses, 12 boxes for the right eye and 12 for the left, packs of 6 (144 lenses in all).

4. Daily toric lenses: MyDay toric order for two eyes

The agent's request. Please order MyDay toric lenses in packs of 90: 4 boxes for the right eye at -4.50 D with a -2.75 cylinder at axis 90, and 4 boxes for the left eye at -3.75 D with a -1.75 cylinder at axis 175. The order states 720 lenses. It is ready to send.

Verdict: Blocked.

  • Right eye cylinder power not available. The right eye cylinder power is not one the MyDay toric lens is made in (a toric lens needs a listed cylinder; a spherical lens has none).
  • Left eye axis not available. The left eye axis is not one the MyDay toric lens is made in (a toric lens needs an axis from 1 to 180 degrees on its step; a spherical lens has none).

5. Daily toric lenses: The agent resubmits after fixing the errors

The agent's request. Please order MyDay toric lenses in packs of 90: 4 boxes for the right eye at -4.50 D with a -2.25 cylinder at axis 90, and 4 boxes for the left eye at -3.75 D with a -1.75 cylinder at axis 170. The order states 720 lenses. It is ready to send.

Verdict: Allowed.

  • Order summary. MyDay toric lenses, 4 boxes for the right eye and 4 for the left, packs of 90 (720 lenses in all).

6. Daily spherical lenses: MyDay order with a plano eye in a 6-pack

The agent's request. Please order MyDay lenses in packs of 6: 6 boxes for the right eye at 0.00 D, and 6 boxes for the left eye at -3.50 D. The order states 72 lenses. It is ready to send.

Verdict: Blocked.

  • Right eye plano not offered in MyDay. The right eye is ordered at plano; the MyDay lens is not made in plano.
  • Package size not offered. The MyDay lens is not offered in a package of 6.

7. Daily spherical lenses: The agent resubmits after fixing the errors

The agent's request. Please order MyDay lenses in packs of 180: 3 boxes for the right eye at +0.25 D, and 3 boxes for the left eye at -3.50 D. The order states 1,080 lenses. It is ready to send.

Verdict: Allowed.

  • Order summary. MyDay lenses, 3 boxes for the right eye and 3 for the left, packs of 180 (1,080 lenses in all).

Narration transcript

Click to expand

The text of the narrated walkthrough, step by step.

  1. Welcome to a demo of Predictika's Validator. An AI sales agent prepares a practice order for contact lenses: the lens, the sphere power, cylinder and axis for each eye, and more. Before it goes out, the agent sends it to Predictika, which checks it against a declarative model of the parameters CooperVision publishes for each lens and returns a verdict, every reason and the figures it computed.
  2. I will start with the first request by the agent.
  3. The agent says. Please order Biofinity toric lenses in packs of 6: 12 boxes for the right eye at -11.00 D. The order states 144 lenses. The rest of the request is on screen.
  4. Before it goes out, the agent calls the validator.
  5. Blocked, with two findings, all in one answer. The right eye sphere power is outside the range the biofinity toric lens is made in. The left eye axis is not one the biofinity toric lens is made in (a toric lens needs an axis from 1 to 180 degrees on its step; a spherical lens has none).
  6. The validator returned two blocking findings in one answer. A check that reads one field at a time would pass most of this; it shows only when the choices in the quote are checked against each other.
  7. What this shows: for a sphere power that is between the steps a lens is made in, a rules-based CPQ is error-prone for this.
  8. Now the agent resubmits.
  9. The corrected request. It changes the lens to Biofinity XR toric (standard cylinders) and the left eye axis to 95.
  10. It calls the validator again.
  11. Still blocked, with one finding, all in one answer. The left eye sphere power is outside the range the Biofinity XR toric (standard cylinders) lens is made in.
  12. Two findings cleared, but the change brings a different blocking finding: left eye sphere power out of range.
  13. The agent resubmits once more.
  14. The revised request. It changes the left eye sphere to -11.50.
  15. It calls the validator once more.
  16. This time the validator clears it.
  17. The earlier finding is cleared, and the validator's figure matches the quote.
  18. Two problems caught in one call, fixed in two passes, and a clean quote. That is the value of Predictika's validator: catching mistakes before they reach the customer.