Happy Bundle for AI assistants
Ask Shopify Sidekick, Claude, ChatGPT or any MCP-capable assistant about your offers, how they perform, what your customers buy together and what to bundle next. If you allow it, let it create the offers for you.
Shopify Sidekick
Nothing to set up. Once Happy Bundle is installed, Sidekick can read your offers and their results, what sells together and the AI suggestions, and it can open the bundle editor pre-filled when you ask it to create a product bundle. The first time in a conversation, Sidekick asks you to allow Happy Bundle for that request.
Try: "Which of my products are bought together?" · "How are my bundles doing?" · "Bundle the snowboard with the wax at 15% off."
Claude, ChatGPT and other assistants (MCP)
Happy Bundle runs an MCP server at https://app.happybundle.app/mcp. The quickest way: in Happy Bundle › Settings › AI assistants, click Connect to ChatGPT or Connect to Claude, then Allow in your Shopify admin. No password, no key to paste. Tools that cannot sign in use a key from the same page.
ChatGPT
Open Happy Bundle in ChatGPT, click Install and then Allow in your Shopify admin.
Not there? In developer mode: Plugins › + › Add custom MCP server, URL https://app.happybundle.app/mcp, authentication OAuth.
Claude (claude.ai, desktop, mobile)
Open Happy Bundle in Claude's directory, click Connect and then Allow in your Shopify admin.
Not there? Add a custom connector: name Happy Bundle, URL https://app.happybundle.app/mcp, leave client ID and secret empty.
Claude Code
claude mcp add --transport http happybundle https://app.happybundle.app/mcp
Approve in your Shopify admin on first use. With a key instead: add --header "Authorization: Bearer <key>".
Cursor
Cursor Settings → MCP → Add new server, or in .cursor/mcp.json:
{ "mcpServers": { "happybundle": { "url": "https://app.happybundle.app/mcp", "headers": { "Authorization": "Bearer <key>" } } } }
VS Code (Copilot)
{ "servers": { "happybundle": { "type": "http", "url": "https://app.happybundle.app/mcp", "headers": { "Authorization": "Bearer <key>" } } } }
In .vscode/mcp.json.
Windsurf
{ "mcpServers": { "happybundle": { "serverUrl": "https://app.happybundle.app/mcp", "headers": { "Authorization": "Bearer <key>" } } } }
In ~/.codeium/windsurf/mcp_config.json.
Gemini CLI
{ "mcpServers": { "happybundle": { "httpUrl": "https://app.happybundle.app/mcp", "headers": { "Authorization": "Bearer <key>" } } } }
In ~/.gemini/settings.json.
Any other MCP client
Streamable HTTP at https://app.happybundle.app/mcp. OAuth 2.1 with PKCE and dynamic client registration; discovery at https://app.happybundle.app/.well-known/oauth-protected-resource. Or a key as Authorization: Bearer <key>, or as the last path segment https://app.happybundle.app/mcp/<key> for clients that only take a URL.
Ready-made prompts and context
Assistants that support MCP prompts (Claude shows them as slash commands) get four workflows: Review my offers, Propose a quantity break for a product, Bundle ideas from what sells together, and a Weekly check-in. Each walks the assistant through the right tools in the right order for your store. Attachable context: the working guidance, a live snapshot of your offers with their performance, your store profile, and this page.
What an assistant can ask
list_offersSidekick tooList the merchant's Happy Bundle offers: product bundles, quantity breaks (volume discounts), product add-ons and cart gifts (free gift over a cart value), with status, scope, discount, features (Repeat packs, mix & match, rows where the shopper picks 1 of several products, buy X get Y) and a link to edit each. Filter by type, status or a search term.
offer_performanceSidekick tooHow Happy Bundle offers are performing for this store: orders and revenue attributed to bundles, quantity breaks and add-ons since install, the top offers ranked by revenue (orders, units, revenue, discount given), and how many offers exist per type and status.
frequently_bought_togetherSidekick tooWhich products this store's customers buy together, from the order history: pairs with how many orders contained both. Optionally for one product. It answers 'what sells with X', the ground for a bundle or an add-on.
bundle_suggestionsSidekick tooThe bundles, quantity breaks and add-ons Happy Bundle computes for this store from its order history, each with the numbers behind it and a link that opens the offer editor pre-filled.
get_offerSidekick tooEverything about one Happy Bundle offer by id: type, status, scope, tiers (quantity, discount, free units, gift), repeat_packs (a cart past the top tier priced as repeated Price, amount-off or free-units tiers), bundle components (a component with choose_one is a row where the shopper picks 1 of those products; preselect: the first is picked when the page loads), add-on product, mix & match builder, a cart gift's gift_product, threshold and choose_variant, and the edit link.
product_offersSidekick tooWhich Happy Bundle offers apply to one product: bundles it is part of, quantity breaks and add-ons on its page. One quantity break shows per product: the most specific (selected products, then a collection, then all except, then all), then higher priority, then older; `shown` marks it. Quantity breaks limited to different variants each show for their own variants (`shown` on each). With explain=true also `why` (every offer on the product in any status: shows yes/partly/no, and the reasons) and `store`.
store_profileSidekick tooThis store's numbers and settings for grounding a proposal: units per order, price band, top products, the last 30 days of offer results (revenue from offers, orders with an offer, average order with vs without an offer and the uplift, views, conversion), offers by type/status, what is switched on (quantity breaks in every cart, sticky bar, countdown timer and low-stock notice, frequently bought together), whether the storefront has ever shown an offer, and Happy Bundle's default tiers/discounts.
product_statsSidekick tooOne product for an offer decision: price range and variants, how many units per order it sells, what sells with it, which offers already apply, and notes on its sales (e.g. "1.7 units per order on average").
check_offerSidekick tooDry run of a quantity break, add-on, bundle or cart gift: kind plus the offer's fields; nothing is saved. Returns errors, warnings (over 40% off, a tier saving less or costing more per item than the one before, a per-item price that is not a whole cent, set price not below list), conflicts with live offers on those products, price_preview (what the shopper pays) and editor_url (the app's offer editor with these fields filled in; nothing is saved until the merchant saves).
list_ab_testsSidekick tooThe merchant's A/B tests of offers (arms A, B, C... each an offer, one arm per shopper by traffic weight) with views, add-to-carts, orders, units, revenue, AOV, conversion and revenue per view per arm, day by day, the leader, the statistical confidence and a verdict. A test ends itself at 95% confidence once every arm has min_views, or after max_days with A kept.
get_settingsSidekick tooThe store's Happy Bundle settings and design: where add to cart goes, quantity breaks in every cart, sticky bar, countdown timer, low stock, cart progress bar, cart add-ons, sold-out variants, widget layouts, badge and saving style, swatches, brand colors, frequently bought together. Field names are the ones the settings and design tools take.
offer_analyticsSidekick tooAnalytics for 7, 30, 90 or 365 days: orders and revenue with an offer, average order with vs without an offer and the uplift, views, add-to-carts, conversion, discount given, top offers, by offer type, cart gifts, compared with the previous period. Optionally one offer (offer_id) and per-day rows (daily).
change_historyWhat changed in Happy Bundle and when, newest first: offers created, edited (field by field), activated, paused, deleted; settings, design and text changes; whether a person in the admin, an AI assistant or the app made it. Filter by offer_id or area.
list_cart_giftsThe free gifts unlocked by cart value ("free tote over $75"): gift product and variant, threshold, cart label per language, status and schedule.
get_store_textsThe storefront words Happy Bundle shows in one language ("Most popular", "Buy {count}, Save {discount}", "Offer ends in", the checkout label...): each key with its default and the store's own text. Keys are what set_store_texts takes.
What an assistant can do, if you allow it
Only with a connection or key you created with read and change. New offers start as drafts: nothing appears on your storefront until you (or the assistant, on your say-so) activate it. Products are named by title; if a title is ambiguous the assistant is told the candidates and asks you. An assistant never deletes an offer: it can pause one, and deleting is done in the Happy Bundle app.
update_offerChange an existing offer of any type - only the fields you pass; everything else stays. Quantity breaks: tiers (the full list, each {quantity, discount_type, value, gift_product, badge, label, preselected}), tier_badges, preselected_quantity, allow_more, builder (mix & match), show_variants, subscriptions, gift_ladder. Add-ons: addon_product, discount. Bundles: components, get_components (buy X get Y), discount, title, description, group_with / group_label / group_popular (other bundles shown on the same page as pack cards; this changes those bundles' pages too), group_product_pages / group_default_card / group_solo_products (the cards also on the product pages of the products in these bundles). All: name, products/collections/all_products/exclude_products/variants, targeting (first order, customer tags, hide if in cart, B2B customers), schedule (starts_at, ends_at in store time, priority), countdown timer, low stock, next-tier nudge, sticky bar, layout and badge/saving style, colors, benefits, cart label, personalization, texts per language, status. A DRAFT is saved at once. A LIVE offer (active or scheduled) - or a change that makes it live - is saved only with confirm=true; without it nothing is saved and the answer is the exact change plus price_preview (what each tier charges, by the cart's own rounding) to show the merchant.
duplicate_offerCopy an offer as a new DRAFT (same tiers, scope, look, targeting; no schedule). Optionally name the copy.
schedule_offerRun an offer in a time window: starts_at and/or ends_at in STORE time (the shop's time zone, as Shopify's discount dates; get_offer and the answer name it in time_zone): ISO 8601 like 2026-11-27T00:00:00 is store time, one with an offset (+01:00, Z) is that exact instant; "" clears. Answers give times as ISO 8601 with the store's offset. Optional priority, activate=true to switch it on for the window (it shows "scheduled" until the start). Live changes need confirm=true, as for update_offer.
update_settingsChange store-wide settings (only the fields passed; null = back to the default): add_to_cart_goes_to (cart|checkout), apply_in_every_cart, price_on_button, theme_quantity_sync (the quantity field of the theme product form follows the chosen quantity break, for cash on delivery and order form apps), sticky_for_new_offers, timer, timer_mode, timer_minutes, timer_text, low_stock, low_stock_threshold, cart_progress_bar, cart_upsell, sold_out_variants (show|hide), klaviyo_events, placement_price/quantity/variant/widget (CSS selectors). Live at once, so saving needs confirm=true; without it the answer is the exact change.
update_designChange how every widget looks (only the fields passed; null = default): tier_layout, addon_layout, badge_style, badge_icon, saving_format, saving_style, tier_images, sticky_layout, swatches, color_options_show, single_value_options, next_tier_nudge, heading, saving_position, price_per_unit, selected_tier, tier_text_font, bundle_rows, bundle_total, bundle_text_font, addon_heading, corner_radius, colors {accent, accent_text, text, price, price_old, border, badge, badge_text, pill, pill_text, edge} as "#rrggbb". Needs confirm=true. colors_reach_widgets says which widget kinds take the colors now and which keep a stylesheet saved on the Design page.
set_fbtFrequently bought together: Happy Bundle keeps an add-on offer per product built from the order history. enabled on/off, max_items (1-3 products shown), min_times (bought together at least), discount_type (none|percentage|fixed) and discount_value. Needs confirm=true.
set_cart_giftCreate or change a free gift unlocked by cart value: gift_product (and gift_variant, or choose_variant to let the shopper pick), threshold (order value in the shop currency), count_products / count_collections (only these count toward the threshold, e.g. leave a kit out; [] for both = every product), label (cart line text; labels per language), name, schedule, status. New gifts are drafts; a live gift (or going live) needs confirm=true.
set_store_textsChange storefront words in one language: texts = {key: text} with keys from get_store_texts ("" = back to the default). Every offer shows them at once, so saving needs confirm=true.
translate_bundle_productSave a bundle product's title and/or description in another store language (a bundle is sold as its own Shopify product). Happy Bundle does not translate: provide the translated text yourself, written in that language. Only a fixed bundle's own product (offer_id); other products are translated in Shopify. locale is one of the store's languages other than the main one. Shoppers in that language see it at once, so saving needs confirm=true: without it nothing is saved and the answer lists the change. Offer texts (badges, tier names) in another language are update_offer texts.<locale>.
update_ab_testChange an A/B test: action add_arm (another side C/D copied from A, with its own tiers or discount), remove_arm (offer_id; a draft test only; that arm's offer stays as a draft), set_split (weights {offer_id: percent}, sum 100), start, delete (the test only; its offers stay; a running test ends first and A stays live). start, and set_split, remove_arm or delete on a running test, need confirm=true (shoppers see a change): without it nothing changes and the answer describes the change. end_ab_test ends it.
import_offersOffers the merchant already runs: YOU read their screenshot, export or description of those offers and pass each as a structured item {kind: quantity_break|addon|bundle|cart_gift, source (what you read), and the fields of create_quantity_break / create_addon / create_bundle / set_cart_gift}. dry_run (default true) checks every item (errors, warnings, conflicts, price preview) and creates nothing; dry_run=false creates the items that pass as DRAFTS. Nothing goes live.
create_ab_testStart an A/B test on an existing offer of any type: the offer stays as arm A (the control), a copy with your changes becomes arm B, each shopper sees one arm. For a quantity break pass the full tier list for B; for an add-on or a bundle pass B's discount (a bundle arm shares the bundle product: same components, different discount). split = the percent of shoppers who see B (default 50). Starts at once only with confirm=true; start=false (or no confirm) keeps it a draft test the merchant or update_ab_test starts later.
end_ab_testEnd an A/B test now and keep one side: winner_offer_id (A or B's offer id); omitted = keep A. The other side becomes a draft. Ending needs confirm=true: without it nothing ends and the answer lists which side stays live and which become drafts.
create_quantity_breakCreate a quantity-break (volume discount) offer: tiers like "buy 2 save 10%, buy 3 save 20%", "3 for $25", "buy 3 get 1 free", or a price per item by quantity (price_each: from 12 items every item 9.24, from 24 every item 8.40; any quantity in between counts), optionally a free gift, a badge ("Most popular") and a subtitle per tier, for chosen products, collections or the whole store. Optionally a mix & match builder. Created as a DRAFT; status=active also needs confirm=true (the merchant agreed to go live).
create_addonCreate a product add-on offer: one product (addon_product) or up to 4 (addon_products) offered as one-click extras (with the offer's discount) on chosen products, collections or the whole store. Created as a DRAFT; status=active also needs confirm=true (the merchant agreed to go live).
create_bundleCreate a fixed product bundle (this also creates the bundle product in Shopify): components with quantities, one discount for the bundle, or buy X get Y (the get components free or discounted). Created as a DRAFT; status=active also needs confirm=true (the merchant agreed to go live).
set_offer_statusActivate, pause (inactive) or draft one offer (id) or several (ids). Activating honors the offer's schedule (a future start = scheduled). Putting an offer live, and pausing or drafting a live offer, need confirm=true: without it nothing changes and the answer lists each offer's status now and after. Offers are not deleted from an assistant: pausing takes an offer off the storefront and keeps it, and deleting is done in the Happy Bundle app (the offer's url).
Security
- A connection or key is for one store and answers only for that store.
- The approval page in your admin says what the assistant may do: read, or read and change. For a read-only assistant, use a read-only key.
- Connections are approved inside your Shopify admin, by someone signed in to the store. Happy Bundle does not see your Shopify password.
- Disconnect any assistant, or revoke a key, at any time in Settings › AI assistants. It stops working immediately.
- Access tokens expire after a day and are renewed silently; a connection unused for 90 days ends by itself. Only hashes of keys and tokens are stored.
Questions or a client that does not connect? Write to support from inside the app and tell us which assistant and what it showed.
Storefront events for developers
The widget fires these events on document (bubbling), for themes, pixels and other scripts:
happybundle:selected: a tier or subscription plan was chosen. detail: {offer_id, type: "quantity_break", tier, quantity, selling_plan}.
happybundle:quantity: the quantity break's selection, on the first paint and whenever it changes (tier, quantity stepper, variant). detail: {offerId, productId, variantId, quantity, tierIndex}; quantity is the number of units the widget adds. With no tier on the page tierIndex is null and quantity is the theme's own quantity field.
happybundle:added: an add-to-cart from the widget succeeded. detail: {items: [{id, quantity, properties, selling_plan}]}, the lines as sent to /cart/add.js, with __happybundle_id and the readable _hb_offer property.
document.addEventListener('happybundle:added', function (e) {
console.log('bundle added', e.detail.items);
});
The quantity break's box (#moose-vd__container) also carries the selection as data-hb-quantity, data-hb-variant-id and data-hb-tier. Apps that read the theme's product form (cash on delivery and order form apps): turn on Settings › Integrations › Keep theme quantity in sync, and the form's input[name="quantity"] gets the selected units, followed by input and change events.
document.addEventListener('happybundle:quantity', function (e) {
console.log(e.detail.quantity, e.detail.variantId);
});
Every line the app adds carries _hb_offer, e.g. Quantity break: buy 3, save 20%, readable in the order, the orders webhook and Klaviyo flows.
Choose a variant from your own code
happybundle:ready fires on document once the widget is on the page and working (HappyBundle.isReady is then true). From then on, HappyBundle.selectVariant() chooses a variant in the widget's own pickers, exactly as a shopper's pick does: the prices, the add to cart and happybundle:quantity follow, and the chosen tier stays chosen.
HappyBundle.selectVariant({ option: 'Color', value: 'Blue' }): every item that has that option (all tiers). The item's other options stay where they are.
HappyBundle.selectVariant({ options: { Size: 'M', Color: 'Blue' } }): several options at once.
HappyBundle.selectVariant({ variantId: 1234567890 }): that variant.
- Add
tier: 2 (the second tier from the top) and/or unit: 1 (the first item) to set only those.
It returns {ok, changed: [{tier, unit, variantId}], unchanged, skipped: [{tier, unit, reason}], error}. A sold-out variant, a value the product does not have or a malformed call changes nothing (ok: false). It works with the quantity break's item pickers (dropdowns, buttons and swatches) and the mix & match builder (products already picked; with variantId that product is picked). When the widget shows no variant pickers it has nothing to set.
function whenReady(run) {
if (window.HappyBundle && HappyBundle.isReady) run();
else document.addEventListener('happybundle:ready', run, { once: true });
}
whenReady(function () {
HappyBundle.selectVariant({ option: 'Color', value: 'Blue' });
});
In a link: ?hb_variant=1234567890 or ?hb_option=Color:Blue (several options: ?hb_option=Color:Blue;Size:M) chooses the variant when the page opens, and works together with ?hb_tier=2.