Pier39.ai
Image about which AI models to choose in e commerce chat widgets
Sanjana's profile picture

Sanjana Haribhaskaran

Co-Founder & CTO

📅
⏱️8 minutes read

Which AI model does Nash use? Wrong question.

"Which AI model does Nash use?" is the first question most customers ask us. They usually expect one name.

The answer is more than one.

A salesperson on a shop floor does three different jobs in a few seconds:
1. They decide whether to walk over.
2. They decide what, if anything, to offer.
3. Finally, they find the words.

Most AI shopping assistants hand all three jobs to one large language model. We don't, because the model that is best at finding words is the wrong tool for deciding when to speak and what a discount is worth.

Different jobs deserve different models

Nash splits the work into deciding, speaking and checking, and gives each piece to the model that fits it.

One model decides when Nash should step in. The other decides what to offer, including nothing. The rest do the speaking and the checking, and we swap them as better ones arrive.

Nash Chat Widget - Flowchart about how Nash works

The limits are worked out in code before the ranker runs, and every reply passes the verifier before a shopper sees it.

The models that decide are not language models

The hesitation model and the offer ranker are the two we built in-house. Both are compact models that learn from tables of numbers, not from text. We built them that way for two reasons:

  • The inputs are numbers, not words. How a shopper moves through your store, compared with what is normal for your store, is a pattern in numbers.
  • It has to be fast. The decision has to arrive while the shopper is still on the page.

What makes these two models ours is what they learn from. Every decision Nash makes is logged with what it considered, what it chose and what happened next. The offer ranker learns from orders that were kept, not just placed. A model trained only on orders placed pushes the products that get returned. Ours learns to avoid them.

Picture a shopper who reaches checkout and stops when the shipping cost appears. The hesitation model notices the stop. The offer ranker then weighs what you allow: answering a delivery question costs you nothing, and a discount costs you margin. If an answer is likely to be enough, an answer is what the shopper gets.

Code sets the limits before any model runs

None of these models decides what Nash is allowed to offer. That is done in ordinary code, before any model is called.

For each shopper moment, Nash first works out the allowed set: the offers you have approved, checked against what is in stock and the limits you set. The ranker picks from that set and nowhere else. "No offer" is always one of the choices.

The same principle covers anything that changes by the minute. Prices and stock are read from your store at the moment they are needed, every time. Nash does not keep its own copy of your prices.

This is the part of the design we are least willing to trade for conversion. A model can be clever inside the limits. It does not get to set them.

Language comes last, and gets checked

Only once the decision is made do language models get involved. Here is one turn of a conversation, start to finish:

  1. Nash works out what kind of question the shopper asked.
  2. It finds the facts about your products that bear on it.
  3. It drafts an answer from those facts, in your store's voice.
  4. A separate check compares every claim in the draft with those facts. Anything unsupported is removed or softened. If the reply can't be made safe, Nash hands off to a person.

Those facts come from your own catalogue. When a store is onboarded, Nash reads your product pages and keeps a record of where each fact came from, so any statement it makes can be traced back to its source.

We use smaller, specialised models for the routine language jobs because they are faster and more consistent, and larger ones for the harder reasoning. Our providers are barred from training on your conversations.

What this means for our customer

Our customers don't need to care which language model is outperforming others this quarter. When a better one arrives, we swap it in for the job it is best at, and the limits they set stay exactly where they were.