Back to Product Updates
Key Feature
Feature Flags
Beta

Personalize variations with contextual bandits (beta)

September 22, 2026

Contextual bandits learn which variation works best for each kind of user, not only which one works best overall. You personalize on attributes such as country, device, or plan. Traffic weights then adapt within each context toward one decision metric.

From one winner to a winner per segment

A multi-armed bandit shifts traffic toward a single winner for everyone. A standard experiment can show in its dimension breakdowns that segments preferred different variations. You still have to build and ship those targeting rules by hand. A contextual bandit shifts traffic within each segment during the run and keeps adapting after you would have stopped an experiment.

How it learns within each context

GrowthBook fits a decision tree over your context attributes, grouping users who share similar context. Within each group, Thompson sampling balances trying variations with sending more traffic to better performers. Every variation keeps at least a small share of traffic in each context.

  • Personalize on attributes your SDK knows when it assigns a variation.
  • Choose one Fact Metric as the decision metric.
  • Watch current weights and per-context results on the bandit's page.

When to use one

Contextual bandits fit when you expect the best variation to differ by segment. Examples include checkout copy that lands differently by country, or a layout that helps on mobile but not on desktop. They also suit short-lived tests, such as promotional copy, when performance likely varies by context. Each segment needs enough traffic to learn, and GrowthBook pools smaller segments with similar users. For unbiased effect estimates or several outcome metrics, run a standard experiment.

Getting started

Contextual bandits are a beta feature on Enterprise plans.

  • Under SDK Configuration → SDK Connections, check that the connection uses a supported SDK language and a compatible version.
  • Log the context attributes used for assignment, and include matching columns in your Contextual Bandit Assignment Query.
  • Create a bandit under Experiments → Contextual Bandits and link at least one feature flag. Starting the bandit automatically publishes pending drafts on its linked flags.

Follow the contextual bandit setup guide for supported SDK versions and the full launch steps.

Similar updates

See All Updates
Key Feature
SDKs

Evaluate multiple Java feature flags in one call

October 15, 2026
Key Feature
Product Analytics

Inspect warehouse query statistics and audit records

October 12, 2026
Key Feature
Product Analytics

See how analysis adjustments affect a metric's results

October 12, 2026
Key Feature
Feature Flags

Reuse Saved Groups and find broken targeting references

October 9, 2026
Key Feature
Product Analytics

Connect LLM traces to experiment metrics

October 5, 2026
Key Feature
AI Platform

Set up GrowthBook SDKs with your coding agent

September 29, 2026
Key Feature
Product Analytics

Explore user journeys in Product Analytics

September 22, 2026
Key Feature
Product Analytics

Explore SQL results and turn them into charts

September 22, 2026
Key Feature
Integrations

New Slack integration

September 22, 2026
Key Feature
AI Platform

Connect agents to hosted MCP with OAuth

September 22, 2026
Key Feature
Experimentation

Measure multi-step funnels inside experiments

September 22, 2026
Key Feature
Product Analytics

Keep Managed Warehouse event data in the EU

September 11, 2026
Key Feature
Experimentation

Capture reusable Learnings across experiments

August 27, 2026
Key Feature
Integrations

Analyze Adobe Experience Platform data in GrowthBook

August 18, 2026
Key Feature
SDKs

Use typed feature values in Swift and Kotlin

August 15, 2026
Key Feature
Feature Flags

Share feature flags across projects

July 24, 2026
Key Feature
Feature Flags

Validate string and number flags with schemas and scoped hooks

July 23, 2026
Key Feature
Integrations

Connect Databricks with service principal OAuth

July 22, 2026
Key Feature
Product Analytics

Product Analytics is generally available

July 20, 2026
Key Feature
AI Platform

Build website variations with the AI Visual Editor

July 20, 2026
Key Feature
AI Platform

Use the in-app AI Assistant across GrowthBook

July 20, 2026
Key Feature
AI Platform

Use agent skills and the rebuilt GrowthBook CLI

July 20, 2026
Key Feature
Experimentation

Create experiment drafts before finishing analysis setup

July 20, 2026
Key Feature
Experimentation

Apply custom validation before experiment changes

July 16, 2026
Key Feature
Feature Flags

Scheduled analysis refreshes for monitored ramps

July 14, 2026
Key Feature
SDKs

Remote evaluation in Python, PHP, and Java

June 30, 2026
Key Feature
Feature Flags

Review and schedule changes to Saved Groups

June 29, 2026
Key Feature
Feature Flags

Override selected fields in JSON flag values

June 19, 2026
Key Feature
Product Analytics

Use incremental refresh with Snowflake

May 28, 2026
Key Feature
Feature Flags

Run bandits without sticky bucketing

May 27, 2026
Key Feature
Product Analytics

Run Product Analytics explorations through MCP and REST

May 27, 2026
Key Feature
AI Platform

Ask the AI Data Analyst about your product metrics

May 27, 2026
Key Feature
Feature Flags

Plan gradual releases with ramp schedules

May 27, 2026
Key Feature
Experimentation

Manage the experiment lifecycle through the REST API

May 27, 2026