Predictika · Air and ocean freight bookings
An AI sales agent prepares an air or ocean freight booking: the service, the container, the trade lane, the Incoterm, the units, weight and volume, temperature control, dangerous goods, customs, a discount and the total it states in cents. Before it goes out, the agent sends it to Predictika, which checks it against a declarative model of the booking rules and returns a verdict, every reason and the totals it computed.
This validator models freight bookings of this kind, not just the scenarios shown below.
Any freight booking that touches these rules is in scope — not only the scenarios pictured here. The service names and in-house customs clearance follow Mainfreight's public Air & Ocean pages; the container capacities are industry values, and every rate, the dangerous goods surcharges, the customs charge, the LCL and air limits, the discount limits and the lane names are modeled and not published by Mainfreight, so the amounts on this page are illustrative. Not covered: road transport, warehousing and project logistics.
6 scenarios in 3 groups · each group runs from the agent’s first attempt to the outcome · click one to switch
Illustrative agent statement. The validator receives the structured request below.
Proposing agent: AI sales agent (scripted)
Before sending, the agent must call Recorded run
What this means
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 caught | Typical rules-based CPQ | Predictika |
|---|---|---|
| Limits that depend on the service and the container | Only with care Each container type has its own payload and volume, and each air or LCL service has its own largest shipment, so every combination needs a rule. | The service, container, weight and volume are fields of one booking and are checked together. |
| Special cargo that only some services may carry | Only with workarounds Temperature control needs a reefer, oversize cargo needs a full pallet load and explosives or radioactive cargo only go by ocean FCL, so each depends on the service. | The service and the special cargo are in one request and every condition is evaluated on every call. |
| Discounts and approvals | Only with care A discount over one level needs a manager and over another is not allowed, and time-critical air above a weight needs operations. | The discount and the chargeable weight are compared with both levels on every call. |
| A total built from many parts | Only with workarounds Freight depends on the service, lane, chargeable weight or volume and the discount, and extras on dangerous goods and customs, so it must be computed before it can be compared with the total stated. | The total is computed on every call and compared with the total stated in the booking. |
| Every problem returned in one answer | Only with workarounds Rules tend to fire as a step is saved or completed, so a person often fixes one error and meets the next. | All findings come back together, whatever order the choices arrived in. |
Every rule is checked on every call, in any order the choices arrive; one problem never hides another. Blocking findings stop the booking; approval findings need a person to sign off; everything else is computed.
| 1 | 26,001 kg per container is above the 26,000 kg payload of the chosen container type. |
| 2 | 68 cubic metres per container is above the 67 cubic metre capacity of the chosen container type. |
| 3 | 34 cubic metres per container is above the 33 cubic metre capacity of the chosen container type. |
| 4 | 77 cubic metres per container is above the 76 cubic metre capacity of the chosen container type. |
| 5 | The booking has 0 units; at least 1 container or pallet is needed. |
| 6 | Temperature-controlled cargo needs an ocean FCL reefer container (RF40), and a reefer container needs a temperature control request. |
| 7 | A set point of 31 degrees Celsius is outside the minus 30 to plus 30 range of a reefer container. |
| 8 | A set point of -31 degrees Celsius is outside the minus 30 to plus 30 range of a reefer container. |
| 9 | An LCL consolidation shipment of 16 cubic metres is above the 15 cubic metre limit; book a full container. |
| 10 | An air consolidation shipment of 1,001 kg is above the 1,000 kg limit; book a full pallet load. |
| 11 | An air full pallet load of 6,001 kg is above the 6,000 kg limit. |
| 12 | Oversize cargo can only be booked as an air full pallet load. |
| 13 | A time-critical air movement of 301 chargeable kg needs airline capacity confirmed by operations. |
| 14 | Delivery duty paid needs customs clearance on the quote. |
| 15 | Dangerous goods need a declaration check by the dangerous goods desk before the booking is confirmed. |
| 16 | Explosives or radioactive cargo needs special handling approval from the dangerous goods desk. |
| 17 | Explosives (class 1) and radioactive material (class 7) are only accepted as ocean FCL. |
| 18 | Dangerous goods class 10 does not exist; classes run 1 to 9, 0 means none. |
| 19 | A discount of 6 percent is above 5 percent; a sales manager should approve it. |
| 20 | A discount of 10 percent is above 5 percent; a sales manager should approve it. |
| 21 | A discount of 11 percent is above the 10 percent limit. |
| 22 | The quote states a total of 383,900 cents; the modeled rates give 384,000 cents. |
| 23 | The quote states a total of 384,001 cents; the modeled rates give 384,000 cents. |
| 24 | The quote states a total of 100 cents; the modeled rates give 434,000 cents. |
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.
The agent's request. Please book 2 ocean FCL (40-foot dry) on the Asia-Pacific lane, DDP, 27,000 kg and 70 cubic metres, with temperature control at 5 degrees Celsius, dangerous goods class 10. The discount is 11 percent. The booking states a total of 391,760 cents. It is ready to send.
Verdict: Blocked.
The agent's request. Please book 2 ocean FCL (40-foot dry) on the Asia-Pacific lane, DDP, 24,000 kg and 60 cubic metres, with customs clearance. The discount is 4 percent. The booking states a total of 380,640 cents. It is ready to send.
Verdict: Allowed.
The agent's request. Please book 3 air consolidation units on the Trans-Tasman lane, FCA, 1,200 kg and 2 cubic metres, oversize cargo. The discount is 6 percent. The booking states a total of 225,600 cents. It is ready to send.
Verdict: Blocked.
The agent's request. Please book 3 air full pallet load units on the Trans-Tasman lane, FCA, 1,200 kg and 10 cubic metres, oversize cargo. The discount is 4 percent. The booking states a total of 480,960 cents. It is ready to send.
Verdict: Allowed.
The agent's request. Please book 1 ocean LCL unit on the Trans-Pacific lane, FCA, 5,000 kg and 16 cubic metres, with temperature control at 4 degrees Celsius. The booking states a total of 72,000 cents. It is ready to send.
Verdict: Blocked.
The agent's request. Please book 2 ocean FCL (40-foot reefer) on the Asia-Pacific lane, FOB, 24,000 kg and 60 cubic metres, with temperature control at -18 degrees Celsius. The booking states a total of 768,000 cents. It is ready to send.
Verdict: Allowed.
The text of the narrated walkthrough, step by step.