Use casesUse case
Onboarding that learns which steps lead to paying customers
Every onboarding has choices in it: where to start, what to ask, what to skip. Zigbongo learns them together, from what customers go on to pay, while your app keeps its own routing.
What it decides
An onboarding is a run of small choices, each one a decision point, where your code asks Zigbongo to choose. Together they make one flow, and each account's run through it is one session:
- The first screen: a guided tour, a gallery of templates or a blank project.
- Which steps to include: inviting teammates now or later, connecting an integration, booking a setup call. Each optional step is a choice between
includeandskip. - The order of a setup checklist: which item comes first, which last.
- Which path: a short one for people who know the kind of product, the full one for everyone else.
Every step is one you built. Zigbongo never invents a step, and skips one only because you sent skip as an option.
Judge it by what customers pay
Completion rate is easy to raise: remove steps. The step you removed may be the one that made people stay and pay. So report revenue, by customer, from your billing system, and let every decision in the onboarding share it. A first screen that leads more people to pay gets the credit, even if the payment comes three weeks later and four steps on.
Set the flow's attribution window to cover the first payment, such as the trial plus a few days; it runs from the onboarding's first decision (see sessions and outcomes). If revenue comes too late to learn from (an annual contract signed after a sales call, say), report a step you know leads to it, such as a first project shared with a colleague. Zigbongo then optimizes for that step instead of revenue, so choose it with care.
Wire it into your app as it is
Onboarding is spread over days, so ask step by step. Your app keeps its routing and asks only where it has a real choice. Store the session id with the account, and continue the same session at each later step.
import { Zigbongo } from "@zigbongo/sdk";
const zb = new Zigbongo({ apiKey: process.env.ZIGBONGO_KEY, baseUrl: "https://zigbongo.com" });
// Right after sign-up: the first screen
const s = zb.session("onboarding", String(account.id));
const first = await s.decide("first_screen", ["tour", "templates", "blank"], "tour", {
inputs: { role: account.role, teamSize: account.teamSize, source: account.signupSource },
});
await accounts.update(account.id, { zbSession: s.sessionId, firstScreen: first.option });
// Days later, after their first project: suggest inviting the team now, or not yet
const later = zb.session("onboarding", String(account.id), { sessionId: account.zbSession });
const invite = await later.decide("invite_prompt", ["include", "skip"], "include", {
inputs: { projects: account.projectCount },
});
if (invite.option === "include") showInvitePrompt();
// In your billing webhook, for every payment
await zb.outcome({ outcomeId: invoice.id, flowKey: "onboarding", subjectId: String(account.id), value: invoice.total });
Inputs add up over the session, so the invite decision knows the account's role and source as well as its project count. For the checklist's order, ask one position at a time, with the items still left as the options.
A registered flow is the other way to run it: you declare the steps, branches and optional nodes up front, Zigbongo checks the steps can't loop or lead nowhere, and routes each step. A registered session ends after 30 minutes without a call, though, so it suits a flow done in one sitting, such as a setup wizard or a quiz, better than an onboarding spread over a week.
Context worth sending
Sign-up forms already ask useful questions: role, team size, what the customer wants to do first. Add the traffic source and platform. A developer from a documentation search and a manager from a webinar may need different first screens, and with context each group can get its own. Send what you learn later on later calls (the number of projects, whether data is connected), because a later step can use it.
Avoid anything that identifies a person, such as names or e-mail addresses: our terms ask for pseudonymous ids and inputs that don't identify anyone. See inputs.
What to expect
An onboarding has several decision points, and every one learns from the same payments. In simulation, a five-step quiz found its best version after about 20,000 sessions (the median of 100 simulated runs, in a scenario where the best version earns 44% more than the default). An onboarding that personalizes by role and source needs more sessions than that, and one that waits weeks for revenue takes longer in calendar time. If your sign-up volume is modest, a few clearly different options at the steps that matter most tend to tell you more than many small variations everywhere.
5% of accounts keep your current onboarding at every step, for the life of the flow: the holdout. The report compares revenue per session between them and everyone else, with a 95% interval, and leaves out sessions whose window is still open. See holdout and lift.
While you build, use a test environment: it works like a live one, and its sessions are free. See environments and keys.
Guardrails
- Never in the way. Each decision waits at most 150 ms, and on a timeout your app shows its default step.
- Only your steps, and only the ones you made optional are ever skipped.
- A kill switch. Pause the flow and, within seconds, every customer gets your default steps.
One onboarding is one session, however many decisions it makes along the way; pricing has the rates and how it works the learning. The trial that often comes with an onboarding has a page of its own: trial length.