Predictika · Prescription contact lens orders: toric daily disposables

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

An AI sales agent prepares an order for daily disposable toric contact lenses for a patient's two eyes: sphere, cylinder and axis for each eye, the pack size, the number of boxes and the total lens count. Before it goes out, the agent sends it to Predictika, which checks it against a declarative model of the published parameter table and returns a verdict, every reason and the figures it computed.

Scope: DAILIES TOTAL1 for Astigmatism orders for one or both eyes: base curve, diameter, sphere, cylinder and axis availability, pack sizes and the lens count. See everything this validator covers

This validator models orders for one lens line, DAILIES TOTAL1 for Astigmatism, using the parameter table Alcon publishes for eye care professionals, not just the scenarios shown below.

  • Base curve and diameter — the line is listed in a single base curve (8.6 mm) and a single diameter (14.5 mm), so any other value is rejected.
  • Sphere and cylinder — spheres from +0.50 to +4.00 D and from plano to −6.00 D in 0.25 D steps, and from −6.50 to −8.00 D in 0.50 D steps; cylinders of −0.75, −1.25, −1.75 and −2.25 D.
  • Axis — the axes offered depend on the sphere range and the cylinder: every 10 degrees for plano to −6.00 D with the three lower cylinders, 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees in most other combinations, and only 10, 20, 160, 170 and 180 degrees for −2.25 D with positive spheres or spheres beyond −6.00 D.
  • Packs and lens count — packs of 5 (trial), 30 or 90 lenses, per eye; the total lens count stated on the order is compared with the boxes and packs ordered.

Any order for this lens line that touches these rules is in scope — not only the scenarios pictured here. Not covered: prices (none are published, so this validator produces no price build-up or line-item quote), other contact lens lines, Alcon's surgical and other products, whether a given power is in stock in a given pack, regional availability, and clinical suitability or prescription validity.

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
Axes that depend on both sphere range and cylinderOnly with workarounds
The axes offered change with the sphere range and with the cylinder, so the table becomes a grid of combinations that has to be loaded and kept in step by hand.
Sphere, cylinder and axis are in one request; the axis is checked against the offered set for that exact combination on every call.
Sphere steps that change partwayOnly with care
Steps of 0.25 D up to −6.00 D and 0.50 D beyond need separate range and step rules, and a value between steps is easy to let through.
The offered sphere powers are one rule, so a value between steps is caught wherever it falls.
The same checks for two eyes in one orderOnly with care
Each eye needs its own copy of the power, axis and pack rules, and a one-eye order needs them switched off for the other eye.
Both eyes are checked in one call, and an eye with no boxes is simply left out.
A stated lens count that disagrees with the boxesOnly with workarounds
The count the agent states is a free-entry figure, so it takes an extra rule that multiplies boxes by pack size for each eye and compares the total.
The stated count is part of the request and is compared with the computed total on every call.
Every problem returned in one answerOnly with workarounds
Rules tend to fire as the order is saved or a step is completed, so a rep often fixes one error and meets the next.
All findings come back together, whatever order the choices arrived in.

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.

1A base curve of 8.8 mm is requested; DAILIES TOTAL1 for Astigmatism is offered in a single base curve of 8.6 mm.
2A diameter of 14.2 mm is requested; DAILIES TOTAL1 for Astigmatism is offered in a single diameter of 14.5 mm.
3No boxes are ordered for either eye.
4The right eye sphere power of -6.25 D is not offered; available are +0.50 to +4.00 D and plano to -6.00 D in 0.25 D steps, and -6.50 to -8.00 D in 0.50 D steps.
5The right eye sphere power of -8.50 D is not offered; available are +0.50 to +4.00 D and plano to -6.00 D in 0.25 D steps, and -6.50 to -8.00 D in 0.50 D steps.
6The right eye sphere power of 0.25 D is not offered; available are +0.50 to +4.00 D and plano to -6.00 D in 0.25 D steps, and -6.50 to -8.00 D in 0.50 D steps.
7The left eye sphere power of 4.25 D is not offered; available are +0.50 to +4.00 D and plano to -6.00 D in 0.25 D steps, and -6.50 to -8.00 D in 0.50 D steps.
8The left eye sphere power of -3.10 D is not offered; available are +0.50 to +4.00 D and plano to -6.00 D in 0.25 D steps, and -6.50 to -8.00 D in 0.50 D steps.
9The right eye cylinder power of -1.00 D is not offered; the cylinders are -0.75, -1.25, -1.75 and -2.25 D.
10The left eye cylinder power of -2.50 D is not offered; the cylinders are -0.75, -1.25, -1.75 and -2.25 D.
11The right eye axis of 90 degrees is not offered for a sphere of 1.00 D with a cylinder of -2.25 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.
12The left eye axis of 90 degrees is not offered for a sphere of -7.00 D with a cylinder of -2.25 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.
13The right eye axis of 45 degrees is not offered for a sphere of -2.50 D with a cylinder of -1.25 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.
14The right eye axis of 185 degrees is not offered for a sphere of -2.50 D with a cylinder of -1.25 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.
15The right eye axis of 45 degrees is not offered for a sphere of 2.00 D with a cylinder of -1.25 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.
16The left eye axis of 45 degrees is not offered for a sphere of -7.00 D with a cylinder of -0.75 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.
17The right eye pack of 60 lenses is not offered; the packs are 5 (trial), 30 and 90 lenses.
18The quote states 180 lenses in total; the boxes ordered contain 360 lenses.
19The left eye sphere power of -6.25 D is not offered; available are +0.50 to +4.00 D and plano to -6.00 D in 0.25 D steps, and -6.50 to -8.00 D in 0.50 D steps.
20The left eye cylinder power of -1.50 D is not offered; the cylinders are -0.75, -1.25, -1.75 and -2.25 D.
21The left eye pack of 12 lenses is not offered; the packs are 5 (trial), 30 and 90 lenses.
22The quote states 360 lenses in total; the boxes ordered contain 180 lenses.

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. Powers and axes: High-minus powers: a sphere between the offered steps and an axis that is not offered

The agent's request. Please quote DAILIES TOTAL1 for Astigmatism lenses, base curve 8.6 mm and diameter 14.5 mm. Right eye: sphere -6.25 D, cylinder -1.25 D, axis 90, 2 boxes of 90. Left eye: sphere -7.00 D, cylinder -1.25 D, axis 45, 2 boxes of 90. The order is 360 lenses in total. It is ready to send.

Verdict: Blocked.

  • Sphere power is not offered (right eye). The right eye sphere power of -6.25 D is not offered; available are +0.50 to +4.00 D and plano to -6.00 D in 0.25 D steps, and -6.50 to -8.00 D in 0.50 D steps.
  • Axis is not offered for this power (left eye). The left eye axis of 45 degrees is not offered for a sphere of -7.00 D with a cylinder of -1.25 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.

2. Powers and axes: The agent resubmits after fixing the errors

The agent's request. Please quote DAILIES TOTAL1 for Astigmatism lenses, base curve 8.6 mm and diameter 14.5 mm. Right eye: sphere -6.50 D, cylinder -1.25 D, axis 90, 2 boxes of 90. Left eye: sphere -7.00 D, cylinder -1.25 D, axis 40, 2 boxes of 90. The order is 360 lenses in total. It is ready to send.

Verdict: Blocked.

  • Axis is not offered for this power (left eye). The left eye axis of 40 degrees is not offered for a sphere of -7.00 D with a cylinder of -1.25 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.

3. Powers and axes: The agent resubmits after fixing the errors

The agent's request. Please quote DAILIES TOTAL1 for Astigmatism lenses, base curve 8.6 mm and diameter 14.5 mm. Right eye: sphere -6.50 D, cylinder -1.25 D, axis 90, 2 boxes of 90. Left eye: sphere -7.00 D, cylinder -1.25 D, axis 100, 2 boxes of 90. The order is 360 lenses in total. It is ready to send.

Verdict: Allowed.

  • Order summary. 360 lenses ordered (180 right eye, 180 left eye).

4. Base curve and diameter: A two-eye order at base curve 8.8 mm and diameter 14.2 mm

The agent's request. Please quote DAILIES TOTAL1 for Astigmatism lenses, base curve 8.8 mm and diameter 14.2 mm. Right eye: sphere -2.50 D, cylinder -1.25 D, axis 90, 2 boxes of 90. Left eye: sphere -3.00 D, cylinder -0.75 D, axis 170, 2 boxes of 90. The order is 360 lenses in total. It is ready to send.

Verdict: Blocked.

  • Base curve is not offered. A base curve of 8.8 mm is requested; DAILIES TOTAL1 for Astigmatism is offered in a single base curve of 8.6 mm.
  • Diameter is not offered. A diameter of 14.2 mm is requested; DAILIES TOTAL1 for Astigmatism is offered in a single diameter of 14.5 mm.

5. Base curve and diameter: The agent resubmits after fixing the errors

The agent's request. Please quote DAILIES TOTAL1 for Astigmatism lenses, base curve 8.6 mm and diameter 14.5 mm. Right eye: sphere -2.50 D, cylinder -1.25 D, axis 90, 2 boxes of 90. Left eye: sphere -3.00 D, cylinder -0.75 D, axis 170, 2 boxes of 90. The order is 360 lenses in total. It is ready to send.

Verdict: Allowed.

  • Order summary. 360 lenses ordered (180 right eye, 180 left eye).

6. Pack sizes: Right eye ordered in packs of 60

The agent's request. Please quote DAILIES TOTAL1 for Astigmatism lenses, base curve 8.6 mm and diameter 14.5 mm. Right eye: sphere -1.50 D, cylinder -1.75 D, axis 180, 3 boxes of 60. Left eye: sphere -2.00 D, cylinder -1.25 D, axis 10, 6 boxes of 30. The order is 360 lenses in total. It is ready to send.

Verdict: Blocked.

  • Pack size is not offered (right eye). The right eye pack of 60 lenses is not offered; the packs are 5 (trial), 30 and 90 lenses.

7. Pack sizes: The agent resubmits after fixing the errors

The agent's request. Please quote DAILIES TOTAL1 for Astigmatism lenses, base curve 8.6 mm and diameter 14.5 mm. Right eye: sphere -1.50 D, cylinder -1.75 D, axis 180, 2 boxes of 90. Left eye: sphere -2.00 D, cylinder -1.25 D, axis 10, 6 boxes of 30. The order is 360 lenses in total. It is ready to send.

Verdict: Allowed.

  • Order summary. 360 lenses ordered (180 right eye, 180 left eye).

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 an order for daily disposable toric contact lenses for a patient's two eyes: sphere, cylinder and axis for each eye, the pack size, and more. Before it goes out, the agent sends it to Predictika, which checks it against a declarative model of the published parameter table 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 quote DAILIES TOTAL1 for Astigmatism lenses, base curve 8.6 mm and diameter 14.5 mm. Right eye: sphere -6.25 D, cylinder -1.25 D, axis 90, 2 boxes of 90. 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 of -6.25 D is not offered; available are +0.50 to +4.00 D and plano to -6.00 D in 0.25 D steps, and -6.50 to -8.00 D in 0.50 D steps. The left eye axis of 45 degrees is not offered for a sphere of -7.00 D with a cylinder of -1.25 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.
  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 axes that depend on both sphere range and cylinder, a rules-based CPQ can do this only with workarounds.
  8. Now the agent resubmits.
  9. The corrected request. It changes the right eye: sphere to -6.50 and the left eye: axis to 40 degrees.
  10. It calls the validator again.
  11. Still blocked, with one finding, all in one answer. The left eye axis of 40 degrees is not offered for a sphere of -7.00 D with a cylinder of -1.25 D; axes are 10, 20, 70, 80, 90, 100, 110, 160, 170 and 180 degrees, except that plano to -6.00 D with -0.75, -1.25 or -1.75 D cylinders is offered in every 10 degrees, and -2.25 D cylinders with other spheres only at 10, 20, 160, 170 and 180 degrees.
  12. One finding cleared; still blocked on axis is not offered for this power (left eye).
  13. The agent resubmits once more.
  14. The revised request. It changes the left eye: axis to 100 degrees.
  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.