Use casesUse case
Add-on and bundle testing, position by position
Which bundle you lead with, the order of your add-ons and whether the add-ons step appears at all are separate decisions. Zigbongo learns each one from the margin of the orders that follow.
What it decides
Add-ons and bundles are less about one offer than about how a set of them is arranged:
- Which bundle to lead with: the starter, standard or complete bundle you've put together, or no bundle and the products on their own.
- The order of the add-ons list: delivery insurance, express shipping, gift wrapping, an extended warranty. Which goes first, which second.
- Whether to show the add-ons step at all, or send people straight to payment.
The bundles, their contents and their prices are yours. Zigbongo chooses among them and never composes a bundle or sets a price.
An order is a decision per position
To learn an order, ask for one position at a time and send the items still left as the options. The first call picks the item for the first slot, the second call picks from what's left, and so on. Each position learns separately which item does best there, so the list can end up with the express option first and the warranty last without anyone testing all 24 orders of four items.
The default at each position is the next item in your current order. A customer in the holdout, the 5% who always see your default choices, gets your order throughout.
import { Zigbongo } from "@zigbongo/sdk";
const zb = new Zigbongo({ apiKey: process.env.ZIGBONGO_KEY, baseUrl: "https://zigbongo.com" });
const s = zb.session("addons", String(customer.id));
// Show the add-ons step at all?
const step = await s.decide("addons_step", ["include", "skip"], "include", {
inputs: { device: req.device, plan: customer.plan, basket: basket.total },
});
const list = [];
if (step.option === "include") {
let remaining = ["insurance", "express", "gift_wrap", "warranty"]; // your current order
while (remaining.length > 1) {
const pick = await s.decide("addon_order", remaining, remaining[0]);
list.push(pick.option);
remaining = remaining.filter((key) => key !== pick.option);
}
list.push(...remaining);
}
basket.zbSession = s.sessionId;
Four add-ons take three calls. Each waits at most 150 ms and, on a timeout, returns its default, so a slow moment gives your own order. If you'd rather describe the list once, up front, a registered flow does the same with a sequence step; see registered flows.
Report margin, not revenue
Bundles trade price for volume. A discounted bundle can raise revenue per order and lower what you keep, and a cheap add-on with a high margin can be worth more than a dearer one. Report the margin of each order as the outcome, so that's what gets maximized. In PHP, from the handler that confirms payment:
$zb->session('addons', (string) $order->customerId, sessionId: $order->zbSession)
->outcome($order->margin, (string) $order->id);
If an add-on is a subscription, such as a monthly protection plan, its value builds over months. Report each payment by customer with a longer attribution window, as on the trial length page.
When your catalogue changes
Option keys are what Zigbongo learns about, so treat them as stable names:
- Keep keys stable. Call an add-on
express, notexpress-2026-q4. A renamed option starts learning from scratch. - New items get a fair chance. A new add-on starts cold. It gets traffic while it might be the best item for its position, and keeps a small share (2% by default) until it's confidently beaten.
- Changes are flagged. The dashboard flags a decision point, a place where your code asks Zigbongo to choose, whose options or default vary from one basket to the next, as a notice rather than an error, so a deploy that drops an add-on by mistake shows up. If your list differs by product line on purpose, give each line its own decision point (
addon_order_shoes,addon_order_bags), so each learns from like with like.
Context worth sending
Which add-on sells depends on what's in the basket and who's buying: insurance on an expensive basket, express shipping for someone ordering from their phone, a warranty for a first-time customer. Send basket value as a number, the device, the customer's plan or tier, the main category and whether they've ordered before. Send them with the first call: inputs add up over the session, so every position uses them. See inputs.
What to expect
Each position is a decision point of its own, and the step decision is one more: the sample above has four, not one. Expect it to need more traffic than a single upsell, and more again when it personalizes by context. Learning starts with the first order; positions with clear differences between items settle sooner than positions where the items are close.
The report compares margin per session for everyone else against the 5% who keep your step and your order, with a 95% interval, starting once each side has 20 sessions with a non-zero outcome. Read more in holdout and lift.
Guardrails
- Only your bundles and add-ons, at your prices. How you present optional extras must comply with consumer law, and our terms leave every option you send in your hands.
- Skipping only what you allow. The add-ons step is skipped only because
skipis an option you sent. - A kill switch. Pause the flow and every customer gets your step and your order within seconds.
The whole basket, every position included, is one session: see pricing, and how it works for the learning. For a single offer at checkout or after it, see upsells and cross-sells.