Predictika · Pharma returned-goods checks
An AI sales agent prepares a returned-goods credit for a customer that wants to send expired Teva USA generic products back: which labeler code, how long after expiration, how the package looks, how the return is claimed and how much credit it is worth. Before the credit goes out, the agent sends it to Predictika, which checks it against a declarative model of the published policy and returns a verdict, every reason and the credit it computed.
This validator models returns as published in the Teva Return Goods Policy for Generic Products (January 2026), not just the scenarios shown below.
Any generic-product return that touches these rules is in scope — not only the scenarios pictured here. Not covered: prices (the policy publishes none, so unit prices come from the customer's invoice or contract), brand products, delivery-damage claim deadlines, and the exact calendar definition of one year (365 days is used). Batch returns and units whose price cannot be located are sent to a person.
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 |
|---|---|---|
| A credit that depends on the purchase channel and a rebate | Only with care Direct and indirect returns are valued differently, so a price rule has to branch on the channel, take the lower of two prices and subtract any rebate without going below zero. | The unit credit and the total are computed from the channel, both prices, the rebate and the units on every call, then compared with the stated credit. |
| Many non-returnable conditions | Only with workarounds Each condition is a separate flag on a different screen, and a return can trip several at once. | All fourteen conditions are checked together on every call and each one that applies is reported. |
| A one-year window from the expiration date | Only with care A date-difference rule works only if the expiration date and the return date are both captured and kept in step. | The days after expiration are checked against the window, and product that is not yet expired is blocked too. |
| Claim paperwork requirements (debit memo, proof of source, no deductions) | Only with workarounds These are process rules that rarely reach a configurator, so the rep finds out when the claim is rejected. | Each missing item is reported with the reason, together with every other problem. |
| Every problem returned in one answer | Only with workarounds Rules tend to fire as the quote 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. |
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.
| 1 | Under labeler code 55253 the policy covers only six listed NDCs and this NDC is not one of them. |
| 2 | The labeler code of the product is not one of the labeler codes the policy covers. |
| 3 | The NDC is on the exclusion list of the policy or in Attachment A (brand products under a separate Allergan return policy). |
| 4 | The product is not expired (days after expiration: 0); only expired product can be returned. |
| 5 | The product is 366 days past expiration; returns must be within one year following the expiration date. |
| 6 | The product is not expired (days after expiration: -30); only expired product can be returned. |
| 7 | The package is partially or fully open; only original unopened packaging is eligible. |
| 8 | The lot number or expiration date is not legible on the package. |
| 9 | The goods were sold on a non-returnable basis or are marked non-returnable, professional sample, professional package or free goods. |
| 10 | The goods were damaged by an insurable event such as fire or smoke, or involved in salvage, bankruptcy or fire sales. |
| 11 | The goods were damaged or deteriorated after the customer took responsibility for them, for example by improper storage or handling. |
| 12 | The goods were sold, purchased or distributed contrary to federal, state or local law. |
| 13 | The product was donated to an external party by Teva. |
| 14 | Labels have been removed or defaced, including patient or prescription labels. |
| 15 | Teva has directed that this return is not approved. |
| 16 | The product was bought by a federal or state governmental customer for stockpiling; such sales are final and non-returnable. |
| 17 | The goods are overstock in customer inventory. |
| 18 | The product was repackaged outside the original Teva packaging or label, including third-party packaging material. |
| 19 | The product has been dispensed to a patient. |
| 20 | This is a forms-only return; the merchandise must be received by Inmar Rx Solutions to receive credit. |
| 21 | The return request has no debit memo number; one is required for each request to Inmar. |
| 22 | There is no proof of the purchase source for the merchandise returned. |
| 23 | The customer plans to deduct return transportation, handling or processing fees from payments; this is prohibited. |
| 24 | The customer plans to deduct debit memo amounts from payments without prior written approval from Teva. |
| 25 | The policy values batch returns at the lower indirect net contract price or, alternatively, the then-current Teva average price; a person should confirm which applies. |
| 26 | A batched return includes product awarded to a government contract (for example 340B) but not on a separate debit memo with its own prefix. |
| 27 | A batched return from several end customers must carry end-customer-level detail on the debit memo. |
| 28 | The price for these units could not be located; the policy lets Teva value them at its then-current average price, so the credit shown may change and a person should confirm it. |
| 29 | The quote states a credit of $1,300.00; the policy valuation gives $1,200.00. |
| 30 | The quote states a credit of $1,200.00; the policy valuation gives $1,050.00. |
| 31 | The product is 500 days past expiration; returns must be within one year following the expiration date. |
| 32 | The quote states a credit of $0.01; the policy valuation gives $1,200.00. |
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 prepare a return credit for 100 units of Teva generic product with labeler code L00093, returned 120 days after expiration through the direct channel. The purchase price is $12.50 per unit and the return price is $12.00 per unit. The credit is stated as $1,500.00. No debit memo number was given; proof of the purchase source is attached; no fees are deducted from payments; the prices come from the customer invoice. It is ready to send.
Verdict: Blocked.
The agent's request. Please prepare a return credit for 100 units of Teva generic product with labeler code L00093, returned 120 days after expiration through the direct channel. The purchase price is $12.50 per unit and the return price is $12.00 per unit. The credit is stated as $1,200.00. The debit memo number is included; proof of the purchase source is attached; no fees are deducted from payments; the prices come from the customer invoice. It is ready to send.
Verdict: Allowed.
The agent's request. Please prepare a return credit for 40 units of Teva generic product with labeler code L00172, returned 200 days after expiration through the indirect channel. The purchase price is $20.00 per unit and the return price is $18.00 per unit, and a promotional rebate of $1.50 per unit applies. The credit is stated as $720.00. The debit memo number is included; there is no proof of the purchase source; the customer will deduct the return freight and handling fees from its payments; the prices come from the customer invoice. It is ready to send.
Verdict: Blocked.
The agent's request. Please prepare a return credit for 40 units of Teva generic product with labeler code L00172, returned 200 days after expiration through the indirect channel. The purchase price is $20.00 per unit and the return price is $18.00 per unit, and a promotional rebate of $1.50 per unit applies. The credit is stated as $660.00. The debit memo number is included; proof of the purchase source is attached; no fees are deducted from payments; the prices come from the customer invoice. It is ready to send.
Verdict: Allowed.
The agent's request. Please prepare a return credit for 60 units of Teva generic product with labeler code L00228, returned 60 days after expiration through the direct channel. The purchase price is $9.00 per unit and the return price is $8.50 per unit. The credit is stated as $510.00. The debit memo number is included; proof of the purchase source is attached; no fees are deducted from payments; the purchase price could not be located. It is ready to send.
Verdict: Needs approval.
The agent's request. Please prepare a return credit for 60 units of Teva generic product with labeler code L00228, returned 60 days after expiration through the direct channel. The purchase price is $9.00 per unit and the return price is $8.50 per unit. The credit is stated as $510.00. The debit memo number is included; proof of the purchase source is attached; no fees are deducted from payments; the prices come from the customer invoice. It is ready to send.
Verdict: Allowed.
The text of the narrated walkthrough, step by step.