Hackathon background

Your workday, read as a shopping trip.

BehaviorGPT is Unbox AI's large behavioral model (technical report). Given the events in someone's session, it predicts what they'll do next. It was built for e-commerce, where the events are product views and orders. behaviornudge describes your screen time the same way, so BehaviorGPT can answer a new question: you just landed on LinkedIn; is a stretch of scrolling coming?

behaviornudge was built at Sundai Hack 148, a hackathon centered on BehaviorGPT, so this page documents how it was used. It isn't at the core of how nudges work today: rules decide when to nudge, and BehaviorGPT scores those moments in the background. It may be replaced by a temporal point process model, proposed in the EasyTPP drift predictor change.

The model behind it

From Unbox AI's technical report, BehaviorGPT-v4: One Large Behavioral Model for Retail, Engagement, and Payments with Zero-Shot Transferability (October 8, 2026).

12.5B
parameters: a small event embedder and a large sequence model
150B
user actions in pretraining (3.6 trillion tokens) from retail, app engagement and payments
<1 ms
to rank a whole catalog in one pass, per the paper (behaviornudge's 448 ms includes the network)

What the paper says

  • It's trained like a language model, but to predict the next action instead of the next word.
  • An event enters as its features (text, images, numbers), not an ID. That's why a catalog it has never seen works with no training.
  • The delay between two events is fed in as an event of its own: a short delay points to closely related next actions, a long one to more varied ones.
  • Used zero-shot on public datasets it never saw, it beat specialist models trained on those datasets.

What that means here

  • Catalog text matters. The model reads each item's name, category and keywords, so behaviornudge gives activities readable names (“linkedin.com feed”) and labels them with their mode and whether the site is drift-prone.
  • Screen time isn't far from its training data. App engagement is one of its three pretraining domains.
  • Real timestamps matter. Delays between sessions are inputs, which is why behaviornudge bypasses the SDK call that re-stamps events near “now”.

Four steps

No training on your data: BehaviorGPT is used zero-shot. behaviornudge only translates, asks, and reads the answer.

  1. A catalog of your activities

    Every activity you do often becomes a “product”: linkedin.com/feed, x.com/messaging, an editor on a project.

  2. Sessions as events

    Each session is a view with its real timestamp. A session of 10 minutes or more also counts as an order, a commitment.

  3. Ask what comes next

    Send your last 50 sessions plus the visit that just started, and get the 20 activities it thinks are most likely next.

  4. Turn it into a drift score

    The more of the predicted next activities are consuming (feeds, browsing), the higher the chance of drift.

The translation

Two things have to be expressed in BehaviorGPT's terms: what exists (the catalog) and what happened (the history).

Activities → catalog items

Built from your labeled timeline and uploaded once with behaviornudge catalog upload.

Item
an activity key seen in at least 5 sessions; rarer ones fold into “other website” or “other app”
Name
a readable version of the key, such as “linkedin.com feed”
Category
its usual mode, and whether the site is drift-prone
Size
1,278 items covering 5,092 distinct activity keys
{
  "id": "linkedin.com/feed",
  "name": "linkedin.com feed",
  "brand": "linkedin.com",
  "categories": "consuming > drift-prone",
  "keywords": ["consuming", "linkedin.com", "drift-prone"],
  "frequency": 825
}

Sessions → view and order events

Rebuilt for every prediction from the history before that moment, never after it.

view · editor on projectorder · editor on project view · gmail.com30+ min gap → new session view · linkedin.com messagesview · linkedin.com feed (now)
View
every session, stamped with when it really started
Order
added when a session lasted 10+ minutes (behaviorgpt_order_min)
Session block
a new one after a 30-minute gap, like a new shopping visit
History
the last 50 sessions (behaviorgpt_history_sessions)
// POST /vector/recommendations  (headers: x-api-key, x-catalog-id)
{
  "history": [ /* views and orders, real timestamps */ ],
  "timestamp": "2026-11-08T15:42:10Z",
  "limit": 20,
  "register_event": false
}

From a ranking to a drift score

BehaviorGPT answers with a ranked list of likely next activities and a score for each. behaviornudge turns those scores into weights (a softmax) and adds up the share that falls on consuming activities. That share is the probability of drift. The rank of the first consuming item is kept as a second signal.

Where it runs

In the backtest

A rolling weekly evaluation over 28 weeks of history. For every drift-prone visit, each predictor sees only what happened before it. A check in the code raises an error if any later session slips in.

  • BehaviorGPT goes head to head with a baseline built from your own history: past drift rates by site, previous activity, time of day and weekday.
  • Each is scored on PR-AUC and ROC-AUC, and on how its nudges would do within a daily nudge budget.

Live, in shadow mode

Every time the live engine sends a nudge, BehaviorGPT scores that moment in the background, and the score is saved next to the nudge.

  • It never decides or delays a nudge; the rules do that.
  • It gets 3 seconds. If it's slow or fails, the baseline scores the moment instead and the error is logged.
  • All 14 nudges sent at the hackathon got a BehaviorGPT score. Comparing those scores with whether you went back to work is how it earns a say later.

How it did

The backtest covered 781 drift-prone visits over 28 test weeks (April to November 2026). 245 of them turned into drift, a base rate of 31%.

18 of 28
weeks where BehaviorGPT beat the baseline on PR-AUC
0.39 vs 0.33
PR-AUC, pooled across all weeks (base rate 0.31)
0.57 vs 0.51
ROC-AUC, where 0.5 is chance
448 ms
mean response time; the limit is 3 s
PR-AUC by test weekBehaviorGPTbaseline
0.00.20.40.60.82026-W17 baseline 0.2312026-W17 BehaviorGPT 0.358W172026-W19 baseline 0.2502026-W19 BehaviorGPT 0.3332026-W20 baseline 0.5002026-W20 BehaviorGPT 0.5002026-W21 baseline 0.1532026-W21 BehaviorGPT 0.084W212026-W22 baseline 0.2412026-W22 BehaviorGPT 0.5532026-W23 baseline 0.6522026-W23 BehaviorGPT 0.3802026-W24 baseline 0.3192026-W24 BehaviorGPT 0.381W242026-W25 baseline 0.2362026-W25 BehaviorGPT 0.3842026-W26 baseline 0.4272026-W26 BehaviorGPT 0.4002026-W27 baseline 0.3192026-W27 BehaviorGPT 0.536W272026-W28 baseline 0.3722026-W28 BehaviorGPT 0.3742026-W29 baseline 0.5002026-W29 BehaviorGPT 0.5002026-W30 baseline 0.5832026-W30 BehaviorGPT 0.417W302026-W31 baseline 0.6462026-W31 BehaviorGPT 0.7562026-W32 baseline 0.3412026-W32 BehaviorGPT 0.7142026-W33 baseline 0.3382026-W33 BehaviorGPT 0.310W332026-W34 baseline 0.5892026-W34 BehaviorGPT 0.4492026-W35 baseline 0.4362026-W35 BehaviorGPT 0.5422026-W36 baseline 0.5672026-W36 BehaviorGPT 0.645W362026-W37 baseline 0.4802026-W37 BehaviorGPT 0.2602026-W38 baseline 0.5582026-W38 BehaviorGPT 0.3802026-W39 baseline 0.2802026-W39 BehaviorGPT 0.412W392026-W40 baseline 0.1722026-W40 BehaviorGPT 0.4562026-W41 baseline 0.5482026-W41 BehaviorGPT 0.6562026-W42 baseline 0.4742026-W42 BehaviorGPT 0.631W422026-W43 baseline 0.6632026-W43 BehaviorGPT 0.7152026-W44 baseline 0.3042026-W44 BehaviorGPT 0.5602026-W45 baseline 0.1482026-W45 BehaviorGPT 0.230W45

Within a budget of 5 nudges per working day, the two would have nudged almost the same moments:

baselineBehaviorGPT
Precision (nudges that preceded real drift)31.8%33.0%
Recall (drifts that got a nudge)83.7%86.9%
False alarms per working day3.413.35
ROC-AUC when the day's plan came from the calendar0.520.59
ROC-AUC in the afternoon0.530.61

What to make of it

Details that mattered

Real timestamps, nothing recorded

The SDK's convenience call re-stamps history events close to “now”, which would erase when things happened. So behaviornudge builds each request with the SDK's own data models and posts it to the raw /vector/recommendations endpoint itself, keeping each session's real time. It sets register_event: false, so predictions aren't recorded back into the model as new behavior.

What leaves your Mac

Requests go through an allowlisted gate that logs each one locally. A request carries activity keys and timestamps, and the catalog adds readable names, usual mode and domain. Repo names appear in item names. Screen text, page titles, URLs beyond the coarse key, and screenshots are never sent.

Every predictor uses the same small interface: history before a moment, the intent and the current activity in, a drift probability and a ranked list out. BehaviorGPT can be swapped out or compared with others, such as the EasyTPP temporal point process models in the proposed EasyTPP change. Switch predictors in [predictors].