Next Best Offer
A next best offer action picks one offer for each member out of a short list you give it, choosing the one that member is most likely to use. It looks at the member's history and the event that triggered the rule. You stay in control: it only ever picks from your list, and only offers the member is eligible for.
For example, a coffee chain's welcome rule offers new members one of three rewards: a free pastry, double points this week, or $2 off a bag of beans. A member who bought beans on their first visit gets the beans offer; one who bought a pastry gets double points.
Next best offer is turned on per brand. Ask your Loom Loyalty contact to turn it on.
Add it to a rule
Add an issueNextBestOffer action to an event rule:
{
"issueNextBestOffer": {
"goal": "Bring new members back for a second visit within 14 days",
"candidates": [
{ "kind": "COUPON_OFFER", "offerCode": "free-pastry" },
{ "kind": "TARGET", "targetCode": "double-points-week" },
{ "kind": "COUPON_OFFER", "offerCode": "beans-2-off" }
],
"fallbackOffer": { "kind": "COUPON_OFFER", "offerCode": "free-pastry" },
"minConfidence": 0.4
}
}
| Field | Required | Description |
|---|---|---|
candidates | yes | 2 to 50 options, each an offer or a promotion. |
goal | no | What you want the choice to achieve, in plain words. Up to 2,000 characters. |
fallbackOffer | no | Issued when the choice can't be made. Must be one of the candidates. Without one, the first eligible candidate is used. |
minConfidence | no | From 0 to 1. When the top choice is less likely than this, the fallback is issued instead. |
Each candidate has a kind:
| Kind | Identify it with | What happens when it's chosen |
|---|---|---|
COUPON_OFFER | offerCode | The member gets a coupon from the offer. |
EXTERNAL_OFFER | offerCode | The member gets the external offer. |
TARGET | targetCode | The member is registered in the promotion. |
The action runs in the background after the event, so a rule with it can't be synchronous.
Eligibility
Before choosing, Weave drops candidates the member can't have, for example an offer that isn't active, one they already hold, one outside its audience, one at its redemption limit, or one with no codes left. When only one candidate is left, it's issued without asking the model. When none is left, nothing is issued.
See what was chosen
Every choice is recorded as a decision:
GET /customers/{customerId}/next-best-offer-decisionslists a member's decisions, newest first: what was chosen and what happened.GET /customers/{customerId}/next-best-offer-decisions/{nextBestOfferDecisionId}shows one decision with every candidate, whether it was eligible, why it was dropped, and its score.
A decision also records how the winner was chosen: by the model, as the only eligible candidate, as the fallback, or nothing eligible.