<?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 Realyze on Medium]]></title>
        <description><![CDATA[Stories by Realyze on Medium]]></description>
        <link>https://medium.com/@realyze?source=rss-00f2ffd1844e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Z2E-CtI-zbMP1bwuNYUb0A.png</url>
            <title>Stories by Realyze on Medium</title>
            <link>https://medium.com/@realyze?source=rss-00f2ffd1844e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:44:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@realyze/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[We gave an AI assistant Alibaba Cloud’s shopper-alert tutorial.]]></title>
            <link>https://realyze.medium.com/we-gave-an-ai-assistant-alibaba-clouds-shopper-alert-tutorial-75441a225697?source=rss-00f2ffd1844e------2</link>
            <guid isPermaLink="false">https://medium.com/p/75441a225697</guid>
            <category><![CDATA[stream-processing]]></category>
            <category><![CDATA[event-stream-processing]]></category>
            <category><![CDATA[complex-event-processing]]></category>
            <category><![CDATA[apache-flink]]></category>
            <dc:creator><![CDATA[Realyze]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 16:13:36 GMT</pubDate>
            <atom:updated>2026-10-21T16:13:36.853Z</atom:updated>
            <content:encoded><![CDATA[<h3>We gave an AI assistant Alibaba Cloud’s shopper-alert tutorial. It rebuilt it in Realyze and tested it.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PvwotHWCc_w2ubzCvZE_ZA.png" /></figure><p>A shopper puts something expensive in the cart. Then they go quiet.</p><p>Is the sale about to happen, or about to slip away?</p><p>Every shop has moments like this. Most only find out the next morning, in a report. By then the shopper is gone.</p><p>Alibaba Cloud’s documentation has a tutorial about exactly this <a href="https://www.alibabacloud.com/help/en/flink/realtime-flink/use-cases/build-an-e-commerce-early-warning-system-with-flink-cep">problem</a>. It names five shopper behaviours worth reacting to the moment they happen. We wanted to know how fast we could turn that tutorial into something that runs. So we handed it to an AI assistant connected to Realyze MCP, and watched.</p><h3>The five alerts</h3><p>The tutorial watches a stream of shopper clicks and raises five alerts:</p><ul><li>Cross-selling: a shopper views products in two different categories within 5 minutes</li><li>High-value conversion: a shopper adds an item over 200 to the cart, then buys that same item within 30 minutes</li><li>High intent: a shopper views the same product four times within 15 minutes</li><li>Price drop interest: a shopper views a product, views it again at a lower price, then adds it to the cart, all within 10 minutes</li><li>Churn risk: a shopper views ten products and buys nothing (we used a one-day quiet period)</li></ul><p>Easy to say. Hard to catch with an ordinary report, because each one is a sequence. One click tells you nothing. The order and the timing tell you everything.</p><h3>Step 1: The assistant builds it</h3><p>Realyze has an MCP server for the design side. MCP is a standard way to let an AI assistant use a tool. With it, the assistant can build and run pipelines for you.</p><p>Here is what happened, in order:</p><ol><li>The assistant read the tutorial and pulled out the five rules.</li><li>It asked Realyze which building blocks exist and what each one can do. It did not guess.</li><li>It matched each rule to a pattern block. The tutorial reads its clicks from a message queue. We swapped that for a plain web endpoint, so there is nothing to install.</li><li>It showed us a preview of the pipeline before saving anything. We said yes.</li><li>It checked the pipeline for mistakes and started it.</li></ol><p>That is the migration. No rewriting by hand, no copying of settings from one system to another.</p><figure><img alt="Five written rules in, one working pipeline out. The assistant builds it, and you approve a preview first." src="https://cdn-images-1.medium.com/max/1024/1*0QsYHdp5acrQ56OXAuY4Tw.png" /></figure><p>Compare what you end up with. The tutorial sets up source tables, a sync job, a message topic for each rule, a store for the rule definitions, and a deployed job for each alert. In Realyze it came out as one source, five pattern blocks, a small shaping step for each, one merge and one output.</p><p>Each pattern block reads like a sentence. Here is the high-value conversion alert:</p><ul><li>step one: the click is a cart add, and the price is above 200</li><li>step two: the click is a purchase, and it is the same product that went into the cart</li><li>all within 30 minutes</li></ul><p>You can open the canvas and change any block by hand. The assistant gives you a fast first draft. You stay in charge.</p><h3>Step 2: Make up some shoppers</h3><p>Now the real question. Does it work?</p><p>We did not wait for real shoppers. We made some up.</p><p>For each rule, the assistant wrote:</p><ul><li>one shopper who should trigger the alert</li><li>one or two who come close, but should not</li></ul><p>The near misses are the clever part. A cart add of 150 instead of over 200. Two views in the same category instead of different ones. Three views of a product when the rule wants four. A purchase of a different product than the one in the cart. If a rule fires on these, it is too loose.</p><p>The assistant turned the cast into a list of clicks, each with a time, a product, a price and a shopper name. It used a small script to build them. We gave every shopper a name that says what they are meant to do, so the results explain themselves.</p><p>One shopper, in plain words:</p><ul><li>10:00, views a jacket (clothing)</li><li>10:03, views a phone case (accessories)</li><li>Expected: a cross-selling alert</li></ul><figure><img alt="The test cast. Five shoppers should trigger an alert. Six come close, but should not." src="https://cdn-images-1.medium.com/max/1024/1*NDS-8LxJbD1XrNPc8f8b0g.png" /></figure><p>Then, Realyze Data MCP server did its job. This one is for the data side. Through it, the same assistant generates and sent the clicks into the running pipeline and read the alerts back. It built the pipeline, fed it, and checked the answers, all in one conversation.</p><h3>What came back</h3><p>Five shoppers were meant to trigger an alert. Each one got exactly one.</p><p>Six shoppers were meant to stay quiet. All six did:</p><ul><li>the cart add under 200</li><li>the two views in the same category</li><li>the three views of a product, one short of the rule</li><li>the price drop that was interrupted before the cart</li><li>the ten views followed by a purchase</li><li>the cart add followed by a different product</li></ul><p>The quiet ones are the proof. Anything can fire on the shoppers it should catch. A good rule also leaves the others alone.</p><p>We pushed on the edges of the time windows too:</p><ul><li>a second view 4 minutes after the first: alert. At 6 minutes: nothing</li><li>a purchase 31 minutes after the cart add: not a conversion</li><li>four views of one product spread across 16 minutes: not high intent</li></ul><figure><img alt="An alert where we expected one, silence where we expected none. The quiet ones are the proof." src="https://cdn-images-1.medium.com/max/1024/1*OVTTJVu4j1EC5y6ThTVrMg.png" /></figure><h3>What an alert can do</h3><p>An alert is only worth something if somebody acts on it. Results are stored and can be looked up by shopper, so your app can ask “should this person see something right now?” while they are still on the page. They can also go out to a webhook or onto a dashboard.</p><ul><li>a bundle suggestion when cross-selling fires</li><li>a small offer when a high-value cart goes quiet</li><li>a message to your team when someone keeps coming back to one product</li><li>a price drop notice for the shopper who noticed the price drop</li></ul><h3>Try it on your own case</h3><p>If you have a use case you have been trying to get live, bring it and try <a href="https://realyze.io/#access">Realyze</a>. Shoppers were our example in this usecase. The aim is the same in any field where data keeps arriving: act on it while it still matters.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75441a225697" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>