<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aspedan.dev on Medium]]></title>
        <description><![CDATA[Stories by Aspedan.dev on Medium]]></description>
        <link>https://medium.com/@aspedan-dev?source=rss-b4f7865bd847------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L934BjoG0O2zB8dJiVOpQg.jpeg</url>
            <title>Stories by Aspedan.dev on Medium</title>
            <link>https://medium.com/@aspedan-dev?source=rss-b4f7865bd847------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:08:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aspedan-dev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What a 2027 Revenue Optimization Suite Looks Like (And Why No One Has Built It Yet)]]></title>
            <link>https://aspedan-dev.medium.com/what-a-2027-revenue-optimization-suite-looks-like-and-why-no-one-has-built-it-yet-7675a7d462ec?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/7675a7d462ec</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[pricing-strategy]]></category>
            <category><![CDATA[future-of-commerce]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[shopify]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-08-26T12:01:01.328Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Promotional discounts and dynamic pricing run on the same profit model. The suite that combines them, the real one, doesn&#39;t exist yet. Here is what it will look like.</em></p><p><strong>Primary audience: </strong>Shopify merchants at $10M+ GMV, product leaders, investors tracking commerce tooling</p><p><strong>Goal of this piece: </strong>Close the series with a clear, opinionated forward vision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*giWzGnf_yVFg6w7gAFrvKg.png" /></figure><p>This is the ninth and final article in The Agentic Commerce Playbook for Shopify Merchants. Eight articles back, the series opened with a claim: AI agents are a new checkout surface, and the promotion stack most merchants run is invisible on it. Every article since has pointed at one layer of the response: protocols, mechanics, measurement, operations, philosophy, and ecosystem structure. This article is the closing vision: what the composite capability looks like eighteen months from now, why no one has shipped it yet, and who is positioned to.</p><h3>Why discount and pricing have always been two tools</h3><p>For two decades, promotional discounting and dynamic pricing have been separate software categories. Discount tools were built by marketing-oriented teams, priced for merchants who ran campaigns, and optimized for time-bounded events. Pricing tools were built by data-oriented teams, priced for merchants who adjusted base prices, and optimized for continuous adjustment. The two categories rarely overlapped in the same company, and when they did, the combination felt bolted together: two products pretending to share a story.</p><p>The separation was not ideological. It was the result of the data. Discount tools had access to campaign-level data. Pricing tools had access to catalog-level data. Neither had the cost-price data and margin-floor infrastructure needed to reason together. Each optimized against the piece of reality it could see. A merchant running both tools ran two optimizers, each one unaware of what the other was doing to the same catalog on the same day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YkpFKWobu-gdW9yR420MLQ.png" /></figure><h3>The missing layer: a shared margin engine</h3><p>The piece that would unify them is a shared margin engine: a single model of what each SKU costs, what the floor margin is, what the current effective selling price is across all active discounts, and what the system&#39;s willingness to discount further should be, given all of that. With a shared margin engine, a promotional discount and a dynamic price adjustment are two ways of reaching the same outcome (moving the effective price to a target), and the system can choose between them instead of running two uncoordinated optimizers.</p><p>No existing product has this. Discount apps do not, because they do not own the base price. Pricing tools do not, because they do not own the promotional layer. Shopify does not, because the margin data is not fully in its system. The unified margin engine is the unbuilt infrastructure, and whoever builds it first owns the category that follows.</p><h3>What a real suite looks like end-to-end</h3><p>The suite I am describing has three layers. The bottom layer is foundation: cost-price data ingestion, margin floor configuration, per-order attribution across every channel, including agent-originated orders, and an experimentation framework that can run both discount A/Bs and price holdouts on the same data. This layer is unglamorous and expensive.</p><p>The middle layer is intelligence: a copilot that can reason about both promotional and pricing actions, a stacking optimizer that respects margin floors, a price optimizer that respects promotional windows, and a cross-channel coherence engine that prevents the web and the agent surface from presenting contradictory effective prices. This layer is hard to build but straightforward to specify. It is what the machinery of the bottom layer enables.</p><p>The top layer is the experience. Merchants running promotional campaigns see a campaign designer. Merchants managing base pricing see a pricing monitor. Agents querying the MCP endpoint get deterministic answers that reflect both layers. The experiences look familiar from today&#39;s tools. The difference is that they share a substrate. A promotional campaign launched by the designer inflates the margin-floor awareness in the pricing monitor. A price drop from the monitor reshapes the pool the campaign designer is drawing from. The two surfaces know about each other because, beneath the surface, they are part of the same system.</p><h3>Why building this from scratch is much harder than adding features</h3><p>The reason this suite does not exist is not that nobody has noticed the opportunity. Analysts have written about it for years. It does not exist because building the foundation layer takes years, and none of the incumbents have had both the incentive and the runway to do the work.</p><p>Discount tools would need to rebuild their data model to handle continuous pricing, which is not just a feature addition but a reshaping of what a &#39;promotion&#39; means in their system. Pricing tools would need to add promotional campaign management, which means acquiring a user persona they have not served before. Shopify itself would need to host merchant cost-price data at a resolution it does not have today, which runs counter to the platform&#39;s layering philosophy. Each natural builder has a structural reason not to do the work, which is why the work has not been done.</p><p>The builders who will ship this are the teams who started the foundation early with both products in mind. A team with a discount app but no pricing partner is doing the first half. A team with a pricing app but no discount partner is doing the second. A team with both, built separately but on shared infrastructure, is doing the whole thing. There are not many of those teams. There does not need to be.</p><h3>The closing argument, and what happens in the next 18 months</h3><p>Zoom out. The Shopify app economy is consolidating. Shopify is absorbing the basics; agents are reshaping the distribution surface; AI is eating the low-intelligence tier of tooling. Three trends, one direction: surviving in the 2027 category requires depth in data, intelligence, and interoperability that the average 2025 app was not built for. The apps that did will compound. The apps that did not will be acquired or delisted.</p><p>At the top of the surviving tier will be a small number of suites that did the unified work. They will share three structural properties. A foundation built for margin, not just for revenue. An intelligence layer that operates across promotional and pricing levers simultaneously. An interoperability layer that puts the suite&#39;s capabilities in reach of every agent that matters. This is what a 2027 revenue optimization suite looks like, and the companies that will have built it are the ones who started with two separate products, chose to share the foundation, and were patient enough to wait while the depth accumulated.</p><p>That is where this series has been pointing from article one. The agentic commerce playbook is not really about agents. It is about what a discount program needs to become when the channels, the protocols, and the intelligence all shift at once. Nine articles ago, this series opened with a channel most merchants could not see. It closes with the suite most merchants will not know to ask for until the first version arrives. The question for every operator reading this is not whether the suite is coming. It is whether your current tooling is on the path to becoming part of it or to being replaced by it.</p><p>End of series. The Agentic Commerce Playbook: nine layers of response to the most disruptive eighteen months in Shopify&#39;s history, from invisible promotions to the unified revenue optimization suite. Thank you for reading.</p><blockquote><em>Part 9 of 9, The </em><strong><em>Agentic Commerce Playbook for Shopify Merchants</em></strong><em>. Each article in the series stands on its own, but is designed to be read in sequence.</em></blockquote><h3>Key Angle</h3><p>The series ends where it must: a vision article that pulls every prior piece together. The argument is that promotional discounts and dynamic pricing have been artificially separated for two decades because they were built by separate vendors using separate data. When they run on a single profit model with shared attribution and a single margin floor, merchant outcomes compound. This is what the next three years of Shopify revenue tooling will look like, and it will be owned by the vendor who gets the foundation right first.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7675a7d462ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Two Shopify Apps in Parallel: Dynamic Pricing vs. Promotional Discounts]]></title>
            <link>https://aspedan-dev.medium.com/building-two-shopify-apps-in-parallel-dynamic-pricing-vs-promotional-discounts-6762a16df3cb?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/6762a16df3cb</guid>
            <category><![CDATA[product-strategy]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[founders]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 19 Aug 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-08-19T12:01:01.382Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The honest version of what it&#39;s like to ship Discount Prime and PrimePrice on overlapping timelines, and why keeping them separate is the hard call that pays off.</em></p><p><strong>Primary audience: </strong>Founders, product leaders, anyone considering multi-product plays in the same category</p><p><strong>Goal of this piece: </strong>Humanize the work and set up the series finale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2pjFBB8uxEFcfKg301UQdA.png" /></figure><p>This is a companion piece to The Agentic Commerce Playbook for Shopify Merchants. For the last year, we have been building two separate Shopify apps in parallel. Discount Prime for promotional discounts and PrimePrice for dynamic pricing. They sound like the same product. They are not. Keeping them structurally separate has been one of the more contested decisions on our team, and the reasoning behind that call has shaped how we think about the 2027 roadmap. This piece is the honest version of why.</p><h3>The moment it became clear they had to be two products</h3><p>We started with the plan to ship them as one app. &#39;Revenue optimization for Shopify&#39;: a suite that covers both promotional discounts and dynamic base pricing under a single brand. It was cleaner on the pitch deck, simpler on the install, and better positioned. The customer never has to choose between tools.</p><p>Three months in, the evidence began to contradict the plan, two specific things. First, the user who buys a dynamic pricing tool is often a different person from the user who buys a promotional discount tool. An ops lead, a pricing analyst, or a founder operates dynamic pricing. A marketer, a CRM manager, or a growth lead operates promotional discounts. The two buyers care about different metrics, ask different questions, and use different vocabulary. Shipping one product to both required either compromising the UX for each or shipping a product that felt committee-designed.</p><p>Second, the lifecycles of a promotional discount and a dynamic price differ. A discount is bounded in time: start, end, and evaluate. A dynamic price is continuous, always on, always adjusting. The data model, the workflow, the observability needs, and the reporting cadence: all of them diverge. We were writing code that tried to serve both patterns, and producing code that served neither well.</p><h3>What the two products share</h3><p>They share more than the admin panel assumes. Both need accurate cost-price data per SKU. Both need margin floors that the merchant can configure. Both require per-order attribution to distinguish their effect from that of every other promotional lever. Both need an MCP server to expose their capabilities to agents. Both need an experimentation framework to run controlled trials. Five large pieces of infrastructure, each expensive, each identical in principle between the two products.</p><p>The strategic unlock of keeping the products separate while sharing the infrastructure is that those five pieces are built once and serve both. The marginal cost of the second product, on top of the first, is dramatically lower than starting fresh. We did not appreciate how important this was until we started shipping features in one and realized they were landing in the other for free. The shared layer is the real asset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*au5zgJXYp_1_CHvkYi7jQw.png" /></figure><h3>What they don&#39;t share, and why that&#39;s non-negotiable</h3><p>The products diverge at the user surface. Discount Prime&#39;s primary surface is the campaign designer: a workflow oriented around time-bounded events, messaging, and merchandising. PrimePrice&#39;s primary surface is the pricing monitor: a continuous, data-dense view of how prices are evolving across the catalog. The workflows are not interchangeable. Trying to build a single surface that serves both audiences produced an experience that felt foreign to both.</p><p>Attempting to merge the UX every quarter would be possible. It would also be wrong. The cost of the wrong merge is not that each product becomes slightly worse. It is that neither product becomes distinctively good. Category leadership comes from being deeply right for a specific user. Splitting the surface while sharing the foundation lets both products be deeply right.</p><h3>The hard trade-off: one unified brand or two?</h3><p>This is the call we are still negotiating. The arguments for a unified brand are real: cross-sell is easier, the story is simpler, and the shared infrastructure is obvious to the customer. The arguments against are also real: a unified brand implies a unified product, which we have just argued against; the two buyer personas respond to different brand cues; and a strong brand in one category does not necessarily transfer cleanly to an adjacent category.</p><p>Our current working answer is a bundled suite-level brand over time, something like &#39;Prime Suite&#39;, with the two products retaining their distinct names. The suite brand becomes the umbrella for the shared story; the product brands carry the individual user relationships. This is not a final answer. We expect to revisit it once both products have stronger independent traction.</p><h3>Where is this heading in 2027</h3><p>The series finale, coming next week, is the vision piece: what a 2027 revenue-optimization suite would look like and why no one has built it yet. The honest preview is that the version of the suite that wins is not one product or two. It is two products that share a profit model. The shared profit model is the piece that makes the combination meaningful. Shopify does not have it. The specialist tools in each category do not have it individually. We are building it on the shared infrastructure between Discount Prime and PrimePrice, and by the second half of 2027, that shared model will change the competitive landscape.</p><p>What this piece is, then, is the boring answer to the question founders usually dress up. You build two products that share a foundation because the foundation is the real moat. The two products are the distribution surface for it. The split is not about ambition. It is about recognizing that the interesting work is underneath, and the product brands are how you get it to market. That is the shape of what we are building. It is harder than one product. It is less than the product of two efforts. And the compound between them is what 2027 is for.</p><blockquote><em>Companion piece to The Agentic Commerce Playbook for Shopify Merchants. Standalone, but complements the adjacent main-series article.</em></blockquote><h3>Key Angle</h3><p>Most two-product stories are either pure cross-sell or a mess. This one is neither. The piece is the founder&#39;s candid account of what separating <a href="https://apps.shopify.com/discountprime">Discount Prime</a> and PrimePrice has cost, including the duplicated logins, the shared data layer, and the arguments for and against a unified brand. It sets up the series finale without telegraphing it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6762a16df3cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why We're Not Letting AI Auto-Run Discount Campaigns (Even Though We Could)]]></title>
            <link>https://aspedan-dev.medium.com/why-were-not-letting-ai-auto-run-discount-campaigns-even-though-we-could-2cd02d83062e?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cd02d83062e</guid>
            <category><![CDATA[ai-ethics]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[human-in-the-loop]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 12 Aug 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-08-12T12:31:01.526Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The easy win is an AI that auto-publishes campaigns. The durable product is an AI that drafts them and stops.</em></p><p><strong>Primary audience: </strong>Shopify merchants, product leaders, anyone building AI-infused commerce tools</p><p><strong>Goal of this piece: </strong>Establish a philosophical position that the reader remembers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnlaHHy9fXQa8cPtijJcTQ.png" /></figure><p>This is the eighth article in <strong>The Agentic Commerce Playbook for Shopify Merchants</strong>. The series has been sketching the capabilities an AI-era discount program needs. This piece is about a capability we have deliberately not built, even though it would be straightforward to do. We do not let our AI run discount campaigns automatically. The copilot drafts; the merchant approves; only then does anything happen. This is a design choice, and the reasoning is worth explaining, because the temptation to cross this line is real and the consequences of crossing it are poorly understood by most of the teams moving in that direction.</p><h3>The autonomy temptation</h3><p>It is technically easy to let an AI run a campaign automatically. The LLM can reason about the merchant&#39;s goals, generate a campaign, schedule it, and observe the outcome. The loop is faster than human review. The marketing copy writes itself: &#39;Set your goal and let the AI optimize.&#39; Some competitor positioning, not ours, is already in this territory. The pitch sounds clean.</p><p>The pitch conceals three specific costs. Each is small in isolation, cumulative in practice, and only visible when something goes wrong. That last point matters: auto-run AI systems fail rarely, but when they fail, they fail in ways that look inexplicable to the merchant and catastrophic to the business.</p><h3>Three failure modes that only appear in auto-run systems</h3><p><strong>The first failure mode is compounding hallucination</strong>. An LLM drafting a campaign can produce slightly unusual conditions (e.g., a rule scoped to a customer cohort that does not exist, or a discount amount that is adjacent to but not quite what the merchant would have chosen). In a human-approval flow, the merchant catches it and fixes it. In an auto-run flow, the campaign runs and the anomaly propagates into analytics (as a weirdly-performing campaign), into customer communications (as emails explaining an offer nobody intentionally created), and into support tickets (from customers confused by the unexpected rule). The fingerprint is cleaned up over hours or days. The cost is spread across those hours or days and never appears as a single line item.</p><p><strong>The second failure mode is liability opacity</strong>. When an auto-run AI issues a promotion that breaches a policy (accidentally giving away more discount than the merchant authorized, targeting a protected group, or violating a regional regulation), the merchant is on the hook but cannot reconstruct exactly what the AI reasoned about. Courts and regulators do not accept &#39;the AI decided&#39; as an explanation for a breach. Draft-and-approve preserves the audit trail that makes liability recoverable. Auto-run does not.</p><p><strong>The third failure mode is concentrated catastrophic failure</strong>. In a human-in-the-loop system, a bad draft gets caught by a human. In an auto-run system, a bad draft becomes a bad campaign, and if the AI is wrong in the same way about many drafts (whether because of a model regression, a prompt drift, or a training-data artifact), many campaigns are bad in the same way. Autonomous systems concentrate risk. Draft-and-approve distributes it across human judgment points that are unlikely to fail in correlated ways.</p><h3>The draft-and-approve pattern in detail</h3><p>What draft-and-approve looks like concretely in our product: the merchant asks the copilot for a campaign. The copilot produces a full specification (targeting, mechanics, scheduling, messaging) and a rationale explaining its choices. The merchant reviews, edits, or rejects. Only after merchant approval does the campaign enter the scheduler. After the campaign runs, the copilot narrates the outcome and proposes refinements, which go through the same approval cycle.</p><p>The merchant is not doing all the work. The merchant is approving the AI&#39;s work. The difference is small from the merchant&#39;s perspective but enormous from the system&#39;s perspective. Every campaign that runs has a human fingerprint. Every outcome has an explicit owner. Every failure mode has a checkpoint where it could have been caught, and when failures do happen, the audit trail makes them recoverable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c9Afh1GJgUIKXXj8H20LFQ.png" /></figure><h3>What explainability costs and what it saves</h3><p>Building the draft-and-approve pattern is more expensive than auto-run. Every draft needs a rationale the merchant can understand; every approval needs a UI that respects the merchant&#39;s time; every revision needs to feed back into the model&#39;s subsequent drafts. The engineering is noticeably harder than &#39;let the AI do it&#39;. This is the short-term cost, and it is real.</p><p>The savings are long-term. Merchants trust systems they can audit. A draft-and-approve copilot accumulates trust with every cycle. Each campaign that runs cleanly is a data point the merchant uses to extend the copilot&#39;s rope. Over time, the merchant starts approving faster, editing less, and letting the copilot take on more ambitious suggestions. Trust is earned by being auditable. An auto-run system never earns that trust because there is nothing to audit; the merchant is either delighted when things go well or blindsided when they do not, and neither state is stable.</p><h3>Why is this the position we&#39;re willing to defend</h3><p>The counter-argument is efficiency: auto-run is faster; speed wins. In the specific context of discount campaigns, this is wrong. The bottleneck in a merchant&#39;s promotional program has rarely been draft time. It has been decision quality, customer-experience coherence, and margin discipline. All three are helped by human judgment, not hurt by it. Making a bad decision faster is not progress. Making a good decision slightly faster, with better drafts, is.</p><p>There will be teams building in this space who disagree and ship auto-run products. Some of those products will succeed commercially in the short term. They will look faster, cleaner, and more impressive in the demo. The failure modes will show up on their installed base, not in their marketing. We are comfortable being the slower, more conservative product by comparison, because the long-term product is the one merchants keep using for years. That product has human judgment embedded in it by design; the copilot drafts. The merchant approves. The campaign runs. The AI analyzes. The next draft is better. That is the loop we are building. We will not shortcut it.</p><blockquote><em>Part 8 of 9, </em><strong><em>The Agentic Commerce Playbook for Shopify Merchants</em></strong><em>. Each article in the series stands on its own, but is designed to be read in sequence.</em></blockquote><h3>Key Angle</h3><p>This piece takes a clear position against fully autonomous discount decisions. The argument is not sentimental; it&#39;s operational. Autonomous systems remove the audit trail, shift liability, and concentrate failure modes. The piece walks through three real failure scenarios that only happen when AI auto-runs, and shows why a draft-and-approve pattern captures most of the benefit at a fraction of the risk.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cd02d83062e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How We're Preparing Our Shopify App for Agentic Storefronts (Without Waiting for Shopify)]]></title>
            <link>https://aspedan-dev.medium.com/how-were-preparing-our-shopify-app-for-agentic-storefronts-without-waiting-for-shopify-aff3f47dd954?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/aff3f47dd954</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[build-in-public]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-08-05T12:31:01.580Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A built-in public account of shipping the first agent-facing capabilities in a Shopify discount app.</em></p><p><strong>Primary audience: </strong>Shopify app founders, engineers, and technically-minded merchants watching the agentic transition</p><p><strong>Goal of this piece: </strong>Become the reference &#39;how someone actually did this&#39; piece. Reads like a field journal, not a press release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vkwHHU4i5HNdruvkjLPZpQ.png" /></figure><p>This is a companion piece to<strong> The Agentic Commerce Playbook for Shopify Merchants</strong>. The series has been arguing that agentic commerce is a real channel and that promotion tooling needs to meet it. This piece is the other side: the working journal of how we actually started shipping against that claim in our own app. It is not triumphant. It contains the things that broke, the wrong assumptions, and the calls we are still unsure about. Readers who are about to try the same work will, I hope, find it useful in a way a polished case study would not be.</p><h3>Where we started in Q2 and what we got wrong first</h3><p>When we committed to shipping agent-facing capabilities in Q2 2026, our first instinct was to build the full picture at once: MCP server, UCP feed population, agent-channel attribution, recommendation endpoint. We drew the architecture, sized the work, and realized that shipping all four in one quarter was not a credible plan. It was a press release posing as a plan.</p><p>The pivot was sequencing. We cut the scope to a minimum viable integration: a read-only MCP endpoint that exposes &#39;what campaigns apply to this cart?&#39; for a single-agent surface. Nothing else. No feed changes, no attribution, no recommendations. Six engineering weeks, not twenty. That scope cut was the most important decision we made in the quarter, and it was the thing we were most reluctant to do at the time. The temptation to ship the whole vision at once was strong. Resisting it is what lets us ship anything real.</p><h3>The minimum viable agent integration</h3><p>The v0 endpoint answers one question: given a cart description, which of the merchant&#39;s active discount campaigns apply, and what is the resulting price impact? The input is a JSON cart. The output is a JSON list of applicable campaigns with their discount effects. The endpoint is read-only, deterministic, cached aggressively, and authenticated against the merchant&#39;s existing app credentials. That is the entire specification.</p><p>What we got for those six weeks was not immediate commercial value. It was the ability to say &#39;yes&#39; to any agent asking Does this app expose campaigns via MCP?&#39; That binary answer (yes, with a working endpoint) is the price of admission to being considered by the agent platforms that matter. The early traffic was nominal. The optionality mattered.</p><h3>The test that surprised us</h3><p>Two weeks after shipping v0, we ran an internal test: let our own team&#39;s AI assistant use the endpoint during a mock merchant support call. The assistant was answering operator questions about active campaigns. The surprise was not whether it worked (it did), but where it broke. The endpoint returned correct data, but the agent repeatedly asked questions that the endpoint could not answer because we had not anticipated them. Things like &#39;what would happen if the customer added one more of this item?&#39;, a predictive question our endpoint did not support.</p><p>This shifted our roadmap. We had been planning &#39;v1 is recommendations&#39;, where the endpoint would suggest offers. The test suggested the bigger gap was prediction: letting the agent explore hypothetical carts. Predictive querying is closer in shape to the read endpoint than the recommendation endpoint is, and it unlocks more agent workflows per unit of engineering investment. We re-sequenced. The lesson: watch how agents actually try to use your endpoint before you decide what v1 should be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uYgvuJqJVJC4hqdm27S5xQ.png" /></figure><h3>What we still don&#39;t know</h3><p>Three things we do not know, and will not know until we have more production traffic, are worth being explicit about.</p><p>The first is which agent is worth optimizing for. ChatGPT, Google, Perplexity, and Copilot all interpret our endpoint slightly differently. We have been optimizing for generic compatibility. We suspect that, in practice, the right move is to pick the one that generates the most traffic for the merchants we care about and optimize narrowly for that. We have not yet seen enough traffic to know which it is.</p><p>The second is pricing. Is agent-originated traffic worth a plan-tier upgrade, a usage-based fee, or should it be a standard capability of every plan? We have strong opinions and no data. We are shipping it free-of-tier for now and will tier it later when usage patterns are visible.</p><p>The third is the attribution surface. When an agent-originated order comes in, how do we cleanly signal &#39;this came from an agent, here is which one, here is how much of the margin the agent-channel promotion produced&#39;? The machinery to do this is partial; the reporting is thin. We have a backlog of work on this and no clear ETA.</p><h3>What we&#39;re shipping in the next six weeks</h3><p>By the end of Q3, we intend to ship the predictive-query extension to the MCP endpoint, a first-pass UCP feed enrichment that populates the promotions field from live campaigns, and a rudimentary agent-channel attribution tag in the order metadata. These are not the whole picture. They are the next three items on the critical path, and we are confident we can do them well within the available time.</p><p>The honest framing of where we are is that we have moved from &#39;not shipping anything agentic&#39; to &#39;shipping the first agentic capabilities&#39;. The distance between the two is larger than it sounds. Most apps in the category are still in the first stage and will need at least two quarters of sustained investment to leave it. The distance between &#39;first agentic capabilities&#39; and &#39;agent-native product&#39; is much larger still, and that is the work of 2027. We are at the start of the long path, not the middle of it. Saying so publicly is the most honest thing we can do. Pretending otherwise, as some category peers are beginning to do in their marketing, is worse than useless when the underlying product has not caught up.</p><blockquote><em>Companion piece to </em><strong><em>The Agentic Commerce Playbook for Shopify Merchants</em></strong><em>. Standalone, but complements the adjacent main-series article.</em></blockquote><h3>Key Angle</h3><p>This is the companion to the Agentic Commerce opener. It is concrete, dated, and honest. The reader gets the version of the story they&#39;d hear over coffee, what worked, what didn&#39;t, and what the team is still unsure about. The piece builds trust by not pretending everything is solved.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aff3f47dd954" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 Shopify Campaign Types Most Merchants Don't Use (and the Margin They're Leaving on the Table)]]></title>
            <link>https://aspedan-dev.medium.com/8-shopify-campaign-types-most-merchants-dont-use-and-the-margin-they-re-leaving-on-the-table-9a49c3892ffe?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a49c3892ffe</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[discount-strategy]]></category>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[shopify]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-07-29T12:01:01.968Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Flat discounts and simple BOGOs dominate because they are easy. The other six campaign types are where the margin lives.</em></p><p><strong>Primary audience: </strong>Small-to-mid Shopify merchants, especially those running fewer than five campaigns per quarter</p><p><strong>Goal of this piece: </strong>Be the evergreen educational SEO piece. The reader leaves planning at least one new campaign type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-eGvJSaY8jvxs56kQSh8vw.png" /></figure><p>This is the seventh article in <strong>The Agentic Commerce Playbook for Shopify Merchants</strong>. Walk into any Shopify store on any given day, and there is a 90% chance the active campaign is one of two things: a flat site-wide discount, or a classic buy-one-get-one. Those are the campaigns that ship with every default setup and appear first in every tutorial. They are also, collectively, the lowest-margin promotion mechanics available. The other six campaign types, the ones most stores never try, consistently produce better margin outcomes for the same merchandising intent. This piece is about what those six are and when to use each.</p><h3>Why flat and BOGO dominate, and what those costs are</h3><p>Flat and BOGO dominate for a reason that has nothing to do with their performance: they are the easiest to configure and communicate. A merchant running a weekend sale thinks &#39;weekend sale, 20% off, done&#39; because that is the default vocabulary. The campaign ships in thirty seconds. The copy writes itself. Traffic converts.</p><p>The cost is that flat discounts are margin-insensitive by design. A 20% off site-wide discount cuts 20% off a 60% margin product and 20% off a 15% margin product indiscriminately, when the first product could have sustained a 30% discount and the second should not have been discounted at all. The merchant ends up subsidizing the high-margin buyers at the expense of the low-margin ones. Over a year, this is significant money going away for reasons that are never surfaced on a dashboard.</p><h3>Tiered quantity: when units matter more than value</h3><p>Tiered quantity (&#39;buy 2 get 10% off, buy 3 get 15% off&#39;) works when the product has natural consumption at multiples. Consumables, wearables, and anything giftable fall into this category. The structure converts a price-sensitive shopper into a volume shopper without sacrificing the full-price buyer. A customer who was going to buy one and instead buys two is a conversion the merchant wants; a customer who was going to buy two and instead buys three is a pure upgrade.</p><p>The mechanic fails in the wrong categories. A merchant selling a single-purchase item (one couch, one appliance) will see a negligible effect, because there is no natural multiple to unlock. Tiered quantity is the first campaign to test for merchants whose AOV is held back by customers buying one when they would happily buy two with a small nudge.</p><h3>Product spend: the margin-friendly volume play</h3><p>Product spend (&#39;spend $75 in this category, get 10% off&#39;) is the underused cousin of tiered quantity. It optimizes for cart value rather than unit count, which is often the better target for apparel, home goods, and variable-price categories. A customer pushed from $60 to $75 to trigger the threshold is a pure margin gain; the 10% off is paid out of a larger base.</p><p>The mechanic shines when paired with category boundaries that reflect strategic focus: spending $75 in a high-margin sub-category to trigger the perk is more valuable than spending the same $75 across the store. It pushes the customer toward the merchandising that the merchant wants emphasized.</p><h3>Tiered unit and Tiered spend (cart): different levers for different carts</h3><p>A tiered unit at the cart level (&#39;buy 3 items across the cart, get $5 off; buy 5, get $12&#39;) is a flat incentive applied at the aggregate level, not the product line. It is the right mechanic for stores where cart composition is highly variable and individual-product rules would produce inconsistent customer experiences.</p><p>Tiered spend at the cart level (&#39;spend $100, get $10 off; spend $200, get $25&#39;) is similar in shape but on value rather than unit count. It is the right mechanic for high-variance AOV stores where both a one-item cart and a ten-item cart are common. The two mechanics look similar and are not interchangeable; the right choice depends on whether your AOV is driven more by unit count or item value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*STgxZGoVfoDSPB8Z9l5JaA.png" /></figure><h3>BXGY, Bulk price updates, and Shipping: three quiet workhorses</h3><p>Buy-X-Get-Y, in its structured form, is underused because most merchants run it as &#39;buy one get one&#39; instead of its more interesting variants. &#39;Buy the entrée, get the side half off&#39; is BXGY. &#39;Buy a laptop, get the carrying case at 30% off&#39; is BXGY. These cross-sell mechanics protect margin on the anchor product while offering a perk on the secondary. They perform dramatically better than flat discounts on the same merchandising.</p><p>Bulk price updates (the ability to adjust prices for many products simultaneously with a conditional discount model) are primarily an operational tool. Still, when used well, they enable short-window, targeted repricing that behaves like a campaign without being one. For seasonal transitions, it is more precise than any blanket discount.</p><p>Shipping-based campaigns (free shipping over threshold, tiered shipping subsidies by geography, free shipping on select categories) are a category unto themselves. The previous article in this series covered the ROI math; the mechanics themselves are underused because shipping is often treated as a logistics concern rather than a promotional lever. Merchants who move shipping into the promotional toolkit alongside the others see immediate gains. Nothing specific. It is not a trick, just the effect of having one more dimension to pull on.</p><h3>A one-screen decision guide for your next campaign</h3><p>If you are about to run a campaign, the decision tree is short. Is your AOV bottleneck about unit count or item value? That selects between tiered-quantity and product-spend. Is the goal to push a single high-margin product with a cross-sell, or to increase overall cart value? That selects between BXGY and cart-level tiers. Is the campaign primarily about acquisition (new customers) or retention (loyalty members)? That selects the targeting overlay (customer segments or not).</p><p>Almost none of your campaigns should default to flat or BOGO. Those two mechanics are useful as occasional sledgehammers, not as an everyday tool. The merchants who operate the other six fluidly, who know which campaign type fits which merchandising intent, run a discount program that compounds over quarters. The ones who default to flat-and-BOGO are leaving money on the table every time they run a promotion. The money is visible if the reporting is good; the campaign type is visible if the tooling shows it. Both are fixable this quarter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FlBr0JIbWILvF_k3YxMRTw.png" /></figure><blockquote><em>Part 7 of 9, </em><strong><em>The Agentic Commerce Playbook for Shopify Merchants</em></strong><em>. Each article in the series stands on its own, but is designed to be read in sequence.</em></blockquote><h3>Key Angle</h3><p>Most merchants use one or two campaign types because those are the default in templates. This article presents a concrete scenario for each of the eight types that outperforms the alternatives. The framing is not &#39;use more types&#39; but &#39;use the right type for the situation you&#39;re in&#39;.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a49c3892ffe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Three-Layer Moat for Shopify Apps in the AI Era]]></title>
            <link>https://aspedan-dev.medium.com/the-three-layer-moat-for-shopify-apps-in-the-ai-era-379b84b7bb69?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/379b84b7bb69</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[product-strategy]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[competitive-strategy]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 22 Jul 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-07-22T12:01:01.717Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Data. Intelligence. Interoperability. The apps that build all three get harder to displace every quarter. The apps that build only one become commodities.</em></p><p><strong>Primary audience: </strong>Shopify app founders, product strategists, VCs investing in commerce tools</p><p><strong>Goal of this piece: </strong>Publish a named framework that gets cited.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VFIFwWI8uRwrBZQQi7xegg.png" /></figure><p>This is a companion piece to <strong>The Agentic Commerce Playbook for Shopify Merchants</strong>. In the previous decade, Shopify app founders could build a moat by shipping more features faster than their competitors. That era is ending. Feature counts are converging across serious apps in any given category, and Shopify&#39;s own platform is absorbing the basics at a predictable pace. The moats that matter now are three, and they are built, not shipped. This piece lays them out.</p><h3>Why &#39;feature count&#39; is no longer a moat</h3><p>Feature moats were never strong; they just looked strong while the platform&#39;s pace was slow. In a slow-moving platform, the app that had a feature first and held it for a year could build a brand around it. In a fast-moving platform, any feature that matters commercially is replicated within two quarters, either by another app or by the platform itself. The platform&#39;s update schedule erodes any competitive advantage that depends on being first to a feature.</p><p>The moats that do not evaporate on that schedule share a property: they require time and accumulated data, not just engineering. A team with money and motivation can clone a feature in a quarter. It cannot clone three years of merchant-level attribution data in a quarter. The moats I describe below are all variations on that structural property.</p><h3>Layer 1: Data</h3><p>The bottom layer is proprietary data, collected in the course of normal product use and compounding with every merchant added. For a discount app, the data that matters is per-order attribution at resolution: which campaign, which product, which channel, which customer cohort, which margin outcome. The platform does not collect this natively. Apps that build a layer no competitor can match without three years of history.</p><p>This layer is invisible until it is not. It feels like engineering overhead in year one, necessary infrastructure in year two, and, by year three, the reason certain questions can be answered well and others cannot. The apps that invested in attribution infrastructure early can build Layer 2. The apps that did not are stuck at feature parity with competitors who did.</p><h3>Layer 2: Intelligence</h3><p>The middle layer is intelligence that gets better with use. In the AI era, this specifically means models and copilots trained on the Data layer. A stacking optimizer that has seen a million real stacks and their margin outcomes produces better recommendations than a stacking optimizer that launched last month on a generic prior. A copilot that has seen 100,000 merchant-designed campaigns recognizes patterns a fresh copilot cannot.</p><p>The Data layer buys this layer. Without proprietary data, an app&#39;s AI layer is either a thin wrapper on a frontier model or a benchmark exercise against public data. With proprietary data, the AI layer does work; the frontier model cannot do without that specific data. The two-layer combination compounds: better intelligence increases adoption, adoption increases data volume, and increased data volume improves the next generation of intelligence. This is a loop that is exactly as strong as it sounds and exactly as hard to retrofit into an app that did not start building it early.</p><h3>Layer 3: Interoperability</h3><p>The top layer is interoperability with the broader ecosystem, specifically the protocols and agents that are becoming the new distribution surface. An MCP server that every major AI system reaches for is, in effect, a network-effect moat: the more agents that use the endpoint, the more merchant-level signal flows back, the more the app learns, the more valuable the app becomes for the next agent that considers it. An app without an MCP endpoint is not participating in the network.</p><p>Interoperability feels like plumbing: a technical integration. It becomes a moat when it is present reliably and deeply across many surfaces. The apps that will dominate in 2027 are not the ones with the most features. They are the ones whose capabilities are most reachable from whatever AI the merchant or buyer is using. Reachability is not free; it takes MCP work, UCP feed work, and sustained participation in protocol evolution. Apps that skip this layer become less discoverable over time, even if their features keep pace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZnfMtBfHfvmAs6Bfrhq4Q.png" /></figure><h3>The self-assessment that a founding team can do in an hour</h3><p>Any Shopify app team can audit its own moat in an hour with three questions. First, what proprietary data are we collecting that a new entrant cannot reproduce without multiple years of operation? If the honest answer is &#39;very little&#39;, the Data layer is missing. Second, what decisions does our product make, or recommend, that are informed by that data in a way a generic AI could not replicate? If the answer is &#39;none&#39;, the Intelligence layer is missing. Third, how many AI surfaces can reach our capabilities through a standard protocol today? If the answer is &#39;zero&#39;, the Interoperability layer is missing.</p><p>Most apps find they have one layer solidly, one partially, and one missing entirely. That is normal; it is also the gap between where the app is and where it needs to be by the end of 2027. The apps that treat all three as first-class investments will be the ones still interesting in two years. The apps that keep shipping features and hoping the category slows down will watch the slowdown not happen, and the category will consolidate around the teams that chose the harder work early.</p><blockquote><em>Companion piece to </em><strong><em>The Agentic Commerce Playbook for Shopify Merchants</em></strong><em>. Standalone, but complements the adjacent main-series article.</em></blockquote><h3>Key Angle</h3><p>This is a framework article meant to stick in the reader&#39;s head. Each of the three layers is described with enough specificity that a founder can self-assess: do we have it, do we not, what would it cost to build? The piece doesn&#39;t claim the framework is proprietary; it borrows from software moat literature but applies it cleanly to the Shopify app context, where most analyses are still at &#39;feature count&#39;.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=379b84b7bb69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stacking Discounts on Shopify: When It Makes You More Money, When It Loses You More]]></title>
            <link>https://aspedan-dev.medium.com/stacking-discounts-on-shopify-when-it-makes-you-more-money-when-it-loses-you-more-2df69066947f?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/2df69066947f</guid>
            <category><![CDATA[pricing-strategy]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[discount-strategy]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 15 Jul 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-07-15T12:01:01.088Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Q1 2026 unlocked multi-discount stacking at the line-item level. Most stores are either terrified of it or exploiting it carelessly. Here is the middle path.</em></p><p><strong>Primary audience: </strong>Merchants running multiple concurrent campaigns; operators; growth and promo leads</p><p><strong>Goal of this piece: </strong>Shift stacking from a scary edge case to a controllable lever.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IkSSvg3qqhxEu1jjO2Wuig.png" /></figure><p>This is the sixth article in <strong>The Agentic Commerce Playbook for Shopify Merchants</strong>. The platform changes of the last nine months gave Shopify merchants a capability they did not have a year ago: multiple product-level discounts can now stack on the same line item. For most merchants, this is either a quiet bonus or a looming risk. It should be neither. It is a lever: one that makes your campaigns meaningfully more effective if you operate it deliberately, and meaningfully more dangerous if you do not.</p><h3>What the Q1 2026 Functions update actually changed</h3><p>Before the update, Shopify&#39;s combining rules were conservative by default. A product discount and an order discount could stack; two product discounts generally could not. Merchants who wanted more stacking had to write the function&#39;s code, and most did not. The update removed the restriction. Multiple product discounts can now apply to the same line item, controlled by combining rules configured by the merchant.</p><p>The change is technically small. Operationally, it is not. Merchants can now run overlapping campaigns (say, a 15% off category promotion and a 10% off loyalty perk) and both apply to the same item without hand-written logic. This is powerful. It is also how margin quietly evaporates if no one is watching.</p><h3>Three stacking patterns and their margin signatures</h3><p>In practice, merchant stacking scenarios fall into three patterns, each with a different margin profile.</p><p>The first is additive stacking of independent campaigns. Two unrelated discounts (a loyalty perk, a category sale) both apply. The customer sees a larger aggregate discount. The merchant&#39;s cost is the sum. This is the safest pattern when the base margin has room; it becomes dangerous quickly on thin-margin categories because the stacked discount can punch below the floor.</p><p>The second is multiplicative stacking, where the discounts compound. A 20% off applied after a 10% off is not 30% total; it is 28%. The math is different, and merchant operators frequently confuse the two. Multiplicative stacking is typically safer than additive stacking on the merchant side because it compounds less aggressively. Still, it can confuse customers, which matters for loyalty-earned discounts, where perceived generosity drives retention.</p><p>The third is conditional stacking, where the second discount fires only if the first has already qualified. &#39;Loyalty members: extra 10% off category sale prices&#39; is this pattern. It is the most profitable stacking pattern on average, because the condition narrows the scope, and it is the one that most merchants underuse because the configuration is more complex than a flat stack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zaOdeSJ6Nrn6jfrTbTvSzg.png" /></figure><h3>Why setting a profit floor makes stacking safe to run.</h3><p>The single configuration that transforms stacking from a risk to a controllable lever is a margin floor. Statey: No combination of discounts may bring the line item&#39;s margin below a merchant-defined floor. Concrete in numbers: on a product with 40% margin, set a floor at 22%, and the combined discount impact will be capped such that whichever stack applies, the merchant&#39;s retained margin does not fall below 22%.</p><p>With a floor set, merchants can run aggressive overlapping campaigns without destroying margin. The system enforces the floor; stacking compounds up to the floor and stops there. Without a floor, merchants either run sparse, conservative campaigns to avoid the risk or run aggressive campaigns and absorb surprises. The floor is the mechanism that makes serious stacking operationally safe.</p><p>Almost no out-of-the-box discount app enforces a margin floor today. Most allow the merchant to set combining rules, but combining rules govern which discounts apply, not whether the total discount respects a floor. The distinction is the difference between theoretical stacking and operational stacking.</p><h3>The combinations you should never allow</h3><p>A handful of specific stack combinations are not recoverable even with a floor in place. Stacking two loyalty-funded discounts on the same line is one. Each discount is meant to represent a distinct relationship-building cost, and applying both compresses the economics of both programs. Stacking a customer-funded discount (a coupon the customer entered) with a merchant-funded discount (a category sale) at full value is another: the customer-funded discount is meant to be terminal, and layering a category sale on top doubles the discount, something the merchant already gave away.</p><p>These patterns are policy decisions, not mathematical ones. A margin floor will keep you from losing money on them, but the floor does not tell you whether the customer experience makes sense. The explicit combining rules need to prohibit patterns that do not align with the merchant&#39;s promotional philosophy, not just those that threaten margin.</p><h3>The operator&#39;s checklist for running overlapping campaigns</h3><p>Before running two overlapping campaigns, an operator should check five things. What is the expected combined discount rate on the most discount-sensitive products in scope? What is the margin floor on those products, and does the combination respect it? Which discounts are merchant-funded and which are customer-funded, and does the stack avoid double-discounting on customer-funded offers? What is the customer experience of the stack? Does the combined discount read as coherent or as confusing? And what is the expected margin impact at the portfolio level, not just per line?</p><p>These five questions take ten minutes if the data is already in your system, an afternoon if it is not. Running them before launch, not after, is the difference between campaigns that compound and campaigns that surprise you. The Q1 2026 update did not change the economics of stacking; it changed the accessibility of stacking. Whether your store benefits from that depends on whether you operate stacking as a deliberate lever or treat it as a passive feature.</p><blockquote><em>Part 6 of 9, </em><strong><em>The Agentic Commerce Playbook for Shopify Merchants</em></strong><em>. Each article in the series stands on its own, but is designed to be read in sequence.</em></blockquote><h3>Key Angle</h3><p>Stacking is a capability merchants either avoid entirely or stumble into. This article treats it as a discipline. It covers which combinations are low-risk, which are high-risk, which require a profit floor to be safe, and what the actual merchant decision looks like. The article positions stacking intelligence as the next competence in the discount operator&#39;s toolkit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2df69066947f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Built Our Shopify App on Functions from Day One.]]></title>
            <link>https://aspedan-dev.medium.com/we-built-our-shopify-app-on-functions-from-day-one-1c6b51fb829c?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c6b51fb829c</guid>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[technical-debt]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 08 Jul 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-07-08T12:01:01.040Z</atom:updated>
            <content:encoded><![CDATA[<h3>We Built Our Shopify App on Functions from Day One. Here&#39;s What We Learned Before the Scripts Deadline Panic.</h3><p><em>While competitors scramble through a Scripts-to-Functions migration, a quiet advantage has been accumulating. The reasoning, in retrospect, was obvious.</em></p><p><strong>Primary audience: </strong>Shopify app engineers, technical founders, merchants evaluating app stability</p><p><strong>Goal of this piece: </strong>Build credibility with a technical audience through concrete lived experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*If75Pz4pz7XqzKDf-0uHBQ.png" /></figure><p>This is a companion piece to <strong>The Agentic Commerce Playbook for Shopify Merchants</strong>. Shopify Scripts sunset on June 30, 2026. For the category of apps that built their discount engine on Scripts, the last 18 months have been a scramble to migrate. For us, they have not. We built on Functions from day one. This piece is an honest retrospective on why that call turned out right, what the real constraints of Functions are, and what we would do differently with the hindsight of having built inside those constraints for three years.</p><h3>The call in 2024 that set everything up</h3><p>When we started the app in 2024, Scripts was the mature path. It had years of production use, clear documentation, an established pattern library, and a developer community that had already solved most problems. Functions were the newer, less battle-tested path with meaningful runtime limits and a smaller body of shared knowledge. The obvious commercial-sense call was Scripts.</p><p>We chose Functions anyway, for a narrow reason. The platform signal was clear: Functions was where Shopify was investing, while Scripts was in maintenance. A three-year product horizon meant that any serious feature we built in Scripts would be built twice: once now, once during the inevitable migration. Building on the newer, constrained runtime meant harder engineering in the first six months and no migration cost in year two. In 2024, it looked like a trade-off. In 2026, it looks obvious.</p><h3>The three runtime limits that shape every Functions app</h3><p>Functions have three hard constraints that shape the architecture of any non-trivial discount logic. The first is execution time: a Function must complete in five milliseconds. The second is the bundle size: 200 kilobytes of compiled code. The third is statelessness: no external calls, no database, no file system, no network. A Function is a pure function in the mathematical sense—input in, output out.</p><p>Five milliseconds is a harder constraint than it sounds. It is enough time for a well-structured decision over a simple rule set, but not enough for iterative optimization, complex lookup tables loaded at invocation, or any computation that scales realistically with the number of line items. Two hundred kilobytes are fine for compiled Rust or Go, uncomfortable for bundled JavaScript, and actively painful if you want to include even a small amount of static data. Statelessness means you cannot ask the database anything the Function needs. By the time the Function runs, every relevant fact must already be in the input or the bundle.</p><h3>Pre-computation as the answer to how do I do anything complex?&#39;</h3><p>The architectural pattern that unlocks Functions for serious discount logic is pre-computation. Complex work (stacking optimization, margin analysis, segmentation evaluation) happens in a conventional server at campaign creation or cart update time. The server produces a compact, static rule representation that is small enough to fit in the bundle and fast enough to evaluate in the five-millisecond window. The Function itself just runs the rule engine against the pre-built rules on the server.</p><p>This pattern is not elegant. It means the system&#39;s real intelligence lives outside the Function, and the Function is a thin execution layer. It is also the right pattern. Anything else (attempting to load complex data into the Function, attempting iterative optimization at runtime, attempting side effects) will hit the constraints and fail in production. Accepting pre-computation early would have saved us six weeks of exploration. Every team we have spoken to has hit the same wall in roughly the same order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCzA5I9xUXwRFe-_gFHNKg.png" /></figure><h3>What we&#39;d do differently if starting today</h3><p>Two things. First, we would invest earlier in the pre-computation pipeline as a first-class component of the architecture, not as an &#39;edge&#39; concern we addressed when the constraints bit. The server-side rule compiler is as important as the Function itself; treating it as such from day one would have produced cleaner abstractions and fewer retrofits.</p><p>Second, we would design the rule representation explicitly for forward compatibility. The rules our Functions evaluate today are not the rules they will need to evaluate in two years, especially with agentic channels adding new dimensions. We wrote the representation narrowly for what we needed at v1, and paid for that narrowness every time we added a capability. A more extensible schema from day one would have been worth the upfront cost.</p><h3>Why this matters more for merchants than for engineers</h3><p>From the outside, this is an architectural essay. From a merchant&#39;s perspective, the relevance is simpler: an app already on Functions is not distracted by a deadline migration right now. In the quarter that contains June 30, 2026, the Scripts-heavy apps are redirecting engineering capacity from new features to migration work. They are shipping slower, not because of incompetence, but because of a choice they made three years ago that is coming due today. Apps that made the other choice are shipping as normal, which means the feature gap between the two sets of apps is widening through 2026, for reasons unrelated to current execution.</p><p>If you are a merchant choosing between tools in 2026, this filter is worth knowing about. Ask the vendor whether they are mid-migration, post-migration, or have never migrated. The third category is doing new work, while the first two are catching up. That shows up in the product within two to three quarters, every time.</p><blockquote><em>Companion piece to The Agentic Commerce Playbook for Shopify Merchants. Standalone, but complements the adjacent main-series article.</em></blockquote><h3>Key Angle</h3><p>This piece is the &#39;origin story&#39; side of the series: why the team made an early call that now looks prescient. It acknowledges the real constraints of the Functions runtime (5ms, 200KB, stateless). It explains the architectural choices that made them work particularly well in pre-computation, which becomes the foundation for the stacking and copilot work in the main series.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c6b51fb829c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Math Behind Shipping Promotion ROI (The Version Your Dashboard Isn't Showing You)]]></title>
            <link>https://aspedan-dev.medium.com/the-math-behind-shipping-promotion-roi-the-version-your-dashboard-isnt-showing-you-138d88077cf0?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/138d88077cf0</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[marketing-roi]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[shopify]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 01 Jul 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-07-01T12:01:01.436Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Free shipping looks like a simple promotion until you ask what &#39;additional&#39; actually means. Here is the methodology that makes the number defensible.</em></p><p><strong>Primary audience: </strong>Analytically-inclined merchants; e-commerce ops; measurement skeptics; app product managers</p><p><strong>Goal of this piece: </strong>Install a measurement standard readers can use to judge any shipping ROI claim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mAyUOQgnFE6q8sDJ8ZptSw.png" /></figure><p>This is the fifth article in <strong>The Agentic Commerce Playbook for Shopify Merchants</strong>. The previous article argued that GMV is a vanity metric and that margin is what matters. This article zooms in on a specific measurement problem that appears on almost every merchant&#39;s dashboard and is almost always calculated incorrectly: the ROI of shipping promotions.</p><p>The claim a dashboard typically makes looks like this: &#39;Your free-shipping campaign generated $548 in additional revenue for $124 in shipping subsidy: an ROI of +340%.&#39; It sounds concrete, but the number depends entirely on what &#39;additional&#39; means. There are three common definitions. Two of them are wrong. This piece is about the third.</p><h3>Three ways to compute shipping ROI, and why two are wrong</h3><p>The naive method counts the entire GMV of orders that qualified for the shipping promotion as &#39;additional revenue&#39;. It is wrong because most of those orders would have happened anyway. A customer buying $45 of product with a free shipping over $40 promotion was likely going to spend around $45 regardless. Claiming the full $45 as incremental revenue against the $5 shipping cost produces spectacular ROI numbers that mean nothing.</p><p>The counterfactual method is the right answer in principle. It asks &#39;what would this customer have spent without the promotion?&#39; and subtracts. In practice, it requires session-level data, matched holdout groups, and a statistical infrastructure that most stores lack. A large brand running proper experimentation can do this. An average merchant cannot.</p><p>The middle path, and the one that is defensible at scale, is incremental cart-bump attribution. It estimates the incremental portion of each qualifying order by comparing the order total to a baseline average order value from the pre-promotion window. Any amount above the baseline is attributed, conservatively, to the shipping promotion. The sum of those attributed amounts is the &#39;additional revenue&#39;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eao6VfYnPjlrQWsz8z2yHA.png" /></figure><h3>What &#39;incremental&#39; has to mean, mathematically</h3><p>Let me state the formula plainly. For a shipping campaign running in a date range, compute the baseline AOV as the average order value over the 30 days immediately preceding the campaign, excluding orders that were themselves under another shipping promotion. For each order during the campaign that qualified for the shipping offer, compute the order&#39;s total minus the baseline AOV. That is the incremental contribution of the order. If the order is below baseline, its incremental contribution is zero, not negative. Sum the incremental contributions across all qualifying orders. That sum is the generated revenue. The spend is the total shipping subsidy. ROI is (generated minus spent) over spent, as a percent.</p><p>This formula is conservative on purpose. It refuses to claim that an order below baseline was &#39;caused&#39; by the promotion, which prevents absurd inflation. It still captures the lift from orders where the buyer clearly pushed above the baseline to qualify for free shipping, which is the mechanism the campaign is supposed to exploit.</p><h3>Baseline AOV: the window, the exclusions, the outliers</h3><p>The baseline AOV is the most abused variable in this calculation. Three things matter for it to be defensible.</p><p>The window length matters. Thirty days is a reasonable default for most stores, because it smooths daily volatility without reaching into a different seasonal regime. A store with pronounced weekly patterns may want a 28-day window to capture full weeks. A store running campaigns frequently may need to shorten the window so that the &#39;clean&#39; pre-campaign period is not itself affected by a previous promotion.</p><p>The exclusions matter. The baseline should not include orders from a prior shipping campaign, because the shipping mechanic distorts AOV. If you run shipping campaigns back-to-back, you need a gap window or a more sophisticated model. If orders from the VIP or wholesale segments are price-distinct, consider excluding them as well.</p><p>The outliers matter. One $3,000 order in the baseline period can inflate AOV, making your campaign&#39;s incremental look artificially small. Winsorize at the 95th percentile by clipping the top 5% of order values to the 95th-percentile value before averaging. This is not a statistical sin; it is what serious retailers have done for decades.</p><h3>Edge cases that quietly break the formula</h3><p>A handful of edge cases break the basic formula if you do not plan for them. Refunds and partial refunds change the effective order value. The formula should use net, not gross, totals, and it should recompute if a refund lands after the campaign ends. Multiple active promotions running simultaneously require splitting the incremental attribution across them, usually proportionally by their discount contribution, to avoid double-counting.</p><p>Seasonality is the subtlest trap. A promotion running during a period with naturally elevated AOV (Black Friday, end-of-month payroll) will look inflated against a baseline drawn from a quieter window. For campaigns in high-seasonality periods, consider using a year-over-year baseline (the same calendar window from the prior year) instead of the trailing 30 days. The calculation is more complex, but the answer is honest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJh_sSRNVUZxS5d15cWG8w.png" /></figure><h3>The report format that turns this into a board slide</h3><p>When you produce the final output, the report needs three components to be defensible to an outsider: the spent, the generated, and the methodology footnote. The spent is the raw shipping subsidy. The generated is the incremental-attribution sum with the baseline declared. The methodology footnote states the baseline window, the exclusions, the winsorization percentile, and the seasonality treatment. With those three, the ROI number is auditable. Without them, it is a story.</p><p>Most dashboards do not produce this. Most shipping-promotion claims you see in other merchants&#39; case studies are naive method numbers, which is why they tend to look impossibly good. The version of the math in this article is not a trick; it is what a finance function would accept as a real answer. Aligning your own measurement with this standard is one of the higher-leverage things a merchant can do this quarter, because it exposes campaigns that look like wins but aren&#39;t, and it makes the wins that remain actually worth scaling.</p><blockquote><em>Part 5 of 9, The </em><strong><em>Agentic Commerce Playbook for Shopify Merchants</em></strong><em>. Each article in the series stands on its own, but is designed to be read in sequence.</em></blockquote><h3>Key Angle</h3><p>This article takes the shipping ROI methodology from our internal reference doc and adapts it for a merchant-facing audience. It walks through why naive uplift inflates the number, why counterfactuals are the &#39;right&#39; answer but rarely feasible, and how incremental cart-bump attribution with winsorization and seasonality guards produce a number that finance can actually defend.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=138d88077cf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Analyzed 8 Top Shopify Discount Apps. Here's What's Missing in All of Them.]]></title>
            <link>https://aspedan-dev.medium.com/i-analyzed-8-top-shopify-discount-apps-heres-what-s-missing-in-all-of-them-20af9647bb55?source=rss-b4f7865bd847------2</link>
            <guid isPermaLink="false">https://medium.com/p/20af9647bb55</guid>
            <category><![CDATA[product-analysis]]></category>
            <category><![CDATA[app-review]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[Aspedan.dev]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 12:01:02 GMT</pubDate>
            <atom:updated>2026-06-24T12:01:02.144Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Eight apps, dozens of features, one recurring blind spot: no one is optimizing on the signal that matters most.</em></p><p><strong>Primary audience: </strong>Shopify merchants shopping for discount tooling; founders benchmarking their own apps</p><p><strong>Goal of this piece: </strong>Be the search-attracting evergreen comparison piece. Serves as SEO and as a funnel, without being a sales pitch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qXCTv87HftcedyxhkEpzTA.png" /></figure><p>This is a companion piece to The <strong>Agentic Commerce Playbook for Shopify Merchants</strong>. Over the last two quarters, I&#39;ve done detailed evaluations of eight of the most-installed discount apps on the Shopify App Store. The goal was not a &#39;best of&#39; list. It was a structural look at what the category collectively does well and where it fails. This piece summarizes the analysis&#39;s findings.</p><blockquote>I will not name apps individually because the specific strengths and weaknesses shift too quickly to keep a published list accurate. The pattern across them is more durable, and it is the pattern that matters for a merchant choosing tooling or a founder benchmarking their own app.</blockquote><h3>How the eight were evaluated</h3><p>For each app, I evaluated coverage in five areas: campaign breadth (how many promotion types it supports), targeting precision (customer segments, geo, channel), reporting quality (what numbers it actually gives you), stacking and combining logic, and AI or agentic readiness. Then I scored each app on whether its reporting surfaced margin, not just GMV; whether it exposed campaigns to agent channels; and whether it could reason about stacking intelligently or just allowed it.</p><p>What emerged was not a simple &#39;app X is best&#39; conclusion. It was a distribution of strengths across apps, with a striking amount of shared territory and a small set of capabilities that almost none of them had.</p><h3>Where coverage is identical</h3><p>All eight apps do flat discounts, tiered quantity discounts, and BOGO. Seven of the eight do cart-level spend thresholds. Six do some variant of BXGY. Five do shipping-based campaigns in at least a basic form. The commodified core of the category (the features every merchant first thinks of when they say &#39;discount app&#39;) is genuinely saturated. Choosing among apps on these features alone is nearly arbitrary.</p><p>This matters because it resets the evaluation question. The features most merchants compare are not differentiators. If you are evaluating based on &#39;does it do tiered quantity&#39;, you will find that yes, they all do. The question is what else?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNO82avHgL_wMtCqsBnnnw.png" /></figure><h3>The four capabilities almost no one has</h3><p>Four capabilities show up rarely across the eight, and they are the ones that will matter most over the next eighteen months.</p><p><strong>The first is margin reporting with cost-price data</strong>; two of the eight surfaces are in it. Six do not. They report GMV lift and discount amount issued, full stop. A merchant using any of the six will struggle to answer the basic question of whether their campaign made money.</p><p><strong>The second is agent-channel exposure</strong>. Three of the eight have shipped some form of MCP endpoint or agentic product feed integration in the last two quarters. Five have not. As agent-originated traffic grows, the first group will capture attributable orders; the second group will watch unexplained demand drift away.</p><p><strong>The third is stacking intelligence</strong>. All eight apps allow stacking to some degree because Shopify&#39;s platform now enables it. Only two apps actively reason about which stacks maximize margin and which cause margin breaches. The other six surface a configuration page and leave the optimization to the merchant&#39;s instinct.</p><p><strong>The fourth is cross-channel coherence</strong>. Seven of the eight treat campaigns as storefront-primary, with POS and agent channels as afterthoughts. One explicitly models the multi-channel promotion state and resolves conflicts across them. That one has a capability that is nearly impossible to retrofit into the other seven.</p><h3>Why the gap exists and why it persists</h3><p>The gap is structural. The basic discount capabilities are what merchants asked for first, and they are what every app had to ship to be viable. Margin reporting requires cost data that the platform does not surface. Agentic readiness requires protocol work that became relevant only recently. Stacking intelligence requires optimization models. Cross-channel coherence requires a data layer that most apps did not build.</p><p>Each of the four missing capabilities represents engineering and product investment that had no commercial return until the last twelve months. Apps that invested early are now in a strong position. Apps that did not are now trying to catch up against a moving target. The gap will not close uniformly. It will widen.</p><h3>What merchants should ask vendors before signing a renewal?</h3><p>If you are a merchant at renewal, four questions put the vendor on an honest footing.</p><ul><li>Does your reporting surface margin, using the cost-price data I provide?</li><li>Does your app expose active campaigns to agent channels through MCP or an equivalent mechanism?</li><li>Does your stacking logic actively optimize for margin, or does it simply allow stacking?</li><li>And does your data model treat my POS, web, and agent channels as a single coherent surface, or as three separate ones?</li></ul><p>If the vendor answers yes to all four credibly, they are in the top quartile of the category as of mid-2026. If they answer yes to two, they are median. If fewer, they are below. None of this makes them bad tools. It means you know where the gaps are, and you can plan accordingly, either by investing in complementary tooling or by preparing to switch when the gaps start to bite.</p><blockquote><em>Companion piece to The </em><strong><em>Agentic Commerce Playbook for Shopify Merchants</em></strong><em>. Standalone, but complements the adjacent main-series article.</em></blockquote><h3>Key Angle</h3><p>This is not a &#39;best of&#39; listicle. It is a structural read of what the top eight discount apps do well and where they collectively fail. The payoff is a framework merchants can apply even to apps that aren&#39;t on the list: does your app see margin, does it see agents, does it see stacking, does it see the difference between a cart and a customer?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20af9647bb55" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>