<?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[AI Commerce - Medium]]></title>
        <description><![CDATA[AI Commerce is a publication about how AI is changing the way value is discovered, evaluated, and exchanged. We explore agentic commerce, AI search, payments, trust, and the infrastructure being rebuilt beneath global trade. - Medium]]></description>
        <link>https://medium.com/ai-commerce?source=rss----567fd7b112c3---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>AI Commerce - Medium</title>
            <link>https://medium.com/ai-commerce?source=rss----567fd7b112c3---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 16:10:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/ai-commerce" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[#24 Exploring the Privacy Problem of In Person Loyalty Member Identification]]></title>
            <link>https://medium.com/ai-commerce/24-exploring-the-privacy-problem-of-in-person-loyalty-member-identification-a386a1eb4954?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/a386a1eb4954</guid>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[loyalty]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[credit-cards]]></category>
            <category><![CDATA[commerce]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 14:01:04 GMT</pubDate>
            <atom:updated>2026-06-11T14:01:03.623Z</atom:updated>
            <content:encoded><![CDATA[<h4>Where there is friction, there are opportunities</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5qxUy1Rd0k0n1oDg_ZFvg.png" /><figcaption>Generated by ChatGPT</figcaption></figure><p>We are at the halfway point in the series now (48 blog posts in 2026)! For this special occasion, I want to do something a bit different where I focus on exploring an important problem in the loyalty space. In this blog, let’s talk about what happens at the physical checkout during member identification.</p><p><em>Please note that this will be more of a raw brain dump to preserve my human thought rather than relying on AI to write / edit for me.</em></p><h4>The Problem</h4><p>As you can see in the image above, the cashier asks for the customer’s loyalty membership and the customer proceeded to say their phone number out loud. Strangers passing by can hear this exchange. While it might seem like a trivial matter to some, this is actually user privacy issue. Consumers are regularly exposing their Personally Identifiable Information (PII) data during member identification at the point of sale which has unfortunately become normalized.</p><p>I was oblivious to this issue despite working in the loyalty industry for more than half a decade. It wasn’t until I took a cybersecurity class in my EMBA where I learned that the majority of data related incidents are caused by human behavior and not from technology failure.</p><p>But is it the consumer’s fault? In some cases yes — where there is an alternative to identify your membership like scanning a QR code — and in other cases no — where there is no alternative and the only way the merchant can identify your membership is through your phone number.</p><p>In either case, there are opportunities for improvement.</p><h4>Current Alternatives</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpe4269h-cqW427xKggcbA.png" /><figcaption>Generated by ChatGPT. QR Code, Physical Number Pad, Bar Code.</figcaption></figure><p>Let’s talk about some of the common ways of loyalty member identification. We have 3 main ways to do this (aside from vocalizing your phone number):</p><ul><li><strong>Scan QR code</strong> — this can be the consumer scanning merchant QR code or vice versa</li><li><strong>Physical number pad </strong>—consumers can input their phone numbers through this hardware device</li><li><strong>Scan bar code </strong>— merchant scans the consumer’s bar code</li></ul><p>While they do work to an extent, each one has its own friction points. For example, the physical number pad takes up limited counter real estate. Scanning the QR code and bar code can also fail (have you ever encountered a scenario where the point of sale scanner had difficulties scanning your phone?).</p><p>There is one idea that I have been thinking about which is to skip the loyalty membership identification phase entirely.</p><h4>Possible Solution</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DksPIMr_YtELku-q" /><figcaption>Photo by <a href="https://unsplash.com/@nampoh?utm_source=medium&amp;utm_medium=referral">Maxim Hopman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The idea is simple: link your loyalty membership with your credit card. No more saying your phone number out loud, inputing it in a physical number pad, and taking out your phone during check out to open the app and find your member code.</p><p>This skips the identification phase entirely.</p><ul><li>Instead of Shop -&gt; Identify -&gt; Purchase -&gt; Earn</li><li>It is Shop -&gt; Purchase -&gt; Earn</li></ul><p>For co brand cards that partners with merchants, this is typically done automatically for you in the background. But this doesn’t necessarily work when you shop in other places outside of your co brand card partner ecosystem.</p><p>Imagine a world where you can link your membership with your payments so that you can automatically earn on every purchase for your credit card <em>and </em>merchant loyalty. Consumers can have a frictionless shopping experience, merchants can have more data insights from known customers, financial institutions can have more engagement, and payment networks can have more sales transactions flowing through their rails.</p><p>This, to me, is an opportunity to have an open loyalty payment linked ecosystem. Set up once, earn seamlessly.</p><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a386a1eb4954" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/24-exploring-the-privacy-problem-of-in-person-loyalty-member-identification-a386a1eb4954">#24 Exploring the Privacy Problem of In Person Loyalty Member Identification</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#23 MCP vs API Presentation Slides]]></title>
            <link>https://medium.com/ai-commerce/23-mcp-vs-api-presentation-slides-12970cdf349b?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/12970cdf349b</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[openwork]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 14:01:04 GMT</pubDate>
            <atom:updated>2026-06-04T14:01:04.602Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reflecting on my hands on learnings in AWS</h4><p>Hello! This is the first time that I am publishing a blog in this format where the majority of the content are slides. I recently had the opportunity to pick any technical topic and deliver a presentation on it with a live demo so I thought about doing it on MCP where I previously wrote two blogs on it:</p><ul><li><a href="https://medium.com/ai-commerce/13-mcp-vs-api-a-hands-on-experiment-in-aws-71e968537a96">#13 MCP vs API : A Hands-On Experiment in AWS</a></li><li><a href="https://medium.com/ai-commerce/14-connecting-a-custom-remote-mcp-to-an-llm-chat-interface-ca18134e27ca">#14 Connecting a Custom Remote MCP to an LLM Chat Interface</a></li></ul><p>Below is a synthesized version of it! It is more or less the same content except for connecting a custom remote MCP server to an LLM chat interface, I used OpenWorks instead of Roo Code which is the open source Claude Cowork alternative.</p><p>Feel free to follow along as each blog contains working CURL requests and MCP server url that you can try yourself. Moreover, in #13 you can see a step by step breakdown on the code base and services used in AWS that you can replicate yourself.</p><h3>Slides</h3><p>Link <a href="https://docs.google.com/presentation/d/e/2PACX-1vRJkDhaOM6bCdpHrs51-rb-mbrmbElv85S0eXZ1xHDUkHF-zccZ6tpcGdf_TljZzQ/pub?start=false&amp;loop=false&amp;delayms=3000">https://docs.google.com/presentation/d/e/2PACX-1vRJkDhaOM6bCdpHrs51-rb-mbrmbElv85S0eXZ1xHDUkHF-zccZ6tpcGdf_TljZzQ/pub?start=false&amp;loop=false&amp;delayms=3000</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eEtxAhNJQy5OpIZhjwLgKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6vfWw7mX4yusoBfXSGGHMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q8ag4Ud1W8ff57rfDcjvTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G6RDFs4JBE5r0eAhNcYlxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQ0e-2vo-YRvYoKP6MyALA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NMjMi4p43abvVnAxMiT0gw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RuKhkkFWLEDnxZInCR7-Pg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uwH5SYExZ9GNKkbY24xeBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bPXQqKshCOqlaZDCblnF4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PEoDUpj6w88uOp_EcfIPPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppNm8tyLKsSvSWsEn8OgSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXsSn4CGpazlae5T0d9SIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9LvhYnRifkrKK-GoO0ZEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ZRrVr2tlTpB7p8DnWDm3Q.png" /></figure><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12970cdf349b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/23-mcp-vs-api-presentation-slides-12970cdf349b">#23 MCP vs API Presentation Slides</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#22 Using Influence Diagram to Demystify Agentic Commerce]]></title>
            <link>https://medium.com/ai-commerce/22-using-influence-diagram-to-demystify-agentic-commerce-b35e33512d77?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/b35e33512d77</guid>
            <category><![CDATA[decision-making]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[agentic-commerce]]></category>
            <category><![CDATA[influence-diagram]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 28 May 2026 14:01:01 GMT</pubDate>
            <atom:updated>2026-05-28T14:01:01.202Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reflections from my EMBA Decision Analysis Course</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cMMCYa6PYWM8ThxjotN-lw.png" /><figcaption>Generated by ChatGPT</figcaption></figure><p>Learning about influence diagrams (and decision trees) in my EMBA Decision Analysis class has been one of the most humbling experiences that I have had so far in my graduate education. It feels like something that is blindingly obvious, but yet elegant in its simplicity.</p><p>I find that influence diagrams is one of the most useful frameworks that we can use in our daily lives to apply structure and enrich our decision making abilities. In this blog, we will reflect on my learnings by reviewing what influence diagram is and apply it within the context of agentic commerce.</p><h3>Influence Diagram</h3><p>At its core, influence diagrams provide overview of the relationships between decisions, chances or uncertainties, and their consequences. This can be useful for executive summary and initial brainstorming e.g., “here is what we control, here is what we don’t, and here is how it all impacts our bottom line.”</p><h4>How to read it</h4><p>There is a simple structure to this. Each variable is represented as a shape that is referred to as a node and the arrow indicates their relationship.</p><ul><li><strong>Decisions</strong> (🟩): Represent choices that you can make.</li><li><strong>Uncertainties</strong> (🟣): Represent random variables or unknown factors.</li><li><strong>Objective</strong> (🔷️): Represent the final goal or metric used to measure success.</li><li><strong>Arrows</strong> (➡️): Indicate the relationship between nodes</li></ul><p>Each of the nodes can point to each other (except for the objective node which can only have arrows pointed to it).</p><p>For instance, decision nodes can point to decision nodes which indicate timing, decision nodes can point to chance nodes which indicate influence, chance nodes can point to decisions which indicate information, and chance nodes can point to chance nodes which indicate dependency. Both decision and chance nodes can also point to the objective node.</p><p>Sounds like a whirlwind? Let’s look at a few examples using e-commerce to bring this point home.</p><h4>E-commerce examples</h4><ul><li>🟩️️ ➡️ 🟩 [Set Budget] ️️️️️ ➡ ️[Select Product]: You decide on your budget before you decide on the specific product. The first choice is settled before the second one happens. ️️️️</li><li>🟩️️ ➡️ 🟣 [Express Shipping] ➡ (Package Arrives Tomorrow): Deciding express shipping doesn’t guarantee it arrives tomorrow (weather or logistics could still fail), but it significantly increases the probability. Your action doesn’t guarantee an outcome, but it changes the odds.</li><li>🟣 ➡️ 🟩 (Limited Stock Alert) ➡ [Buy Now]: The “only 1 left” notification is a chance event that forces your decision to happen immediately rather than waiting for a sale. You wait for data before you act.</li><li>🟣 ➡️ 🟣 (Holiday Season) ➡ (High Price/Low Stock): You don’t control the calendar, and you don’t control the vendor’s inventory, but the first makes the second much more likely. One thing you can’t control affects another thing you can’t control.</li><li>🟣 ➡️ 🔷️ (Product Condition) ➡ &lt;Final Value&gt;: If the item arrives broken which is an uncertainty, your final value drops to zero, regardless of how good your decisions were. There are uncertainties outside of your control that impact the outcome.</li><li>🟩 ➡️ 🔷️ [Use 20% Off Coupon] ➡ &lt;Lower Final Price&gt;: The decision to apply the coupon code directly lowers the final number in the objective outcome. Your choice directly dictates a portion of the result.</li></ul><p>Great! Now that we have an understanding of what an influence diagram is and how we can read it, let’s use it to talk about agentic commerce since one of the biggest assumptions is that the decision maker is no longer a human, but an AI agent. Let’s explore further by first reviewing what a traditional e-commerce flow looks like with humans doing everything and then move on to the agentic flow.</p><h3>E-Commerce — Buying Dog Food</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YXnzy-DR5H5IM3sW" /><figcaption>Photo by <a href="https://unsplash.com/@mikulecmichal?utm_source=medium&amp;utm_medium=referral">Michal Mikulec</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Traditional E-Commerce</h4><p>Below is an influence diagram for traditional e-commerce that was inspired from a real life example of buying dog food for my corgi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*iU4pFELm-ZWerNsi4Fzv4w.png" /><figcaption>Made by prompting Gemini and visualizing with mermaid.live</figcaption></figure><p>It starts from the chance node where my kibble levels are running low. Which influences my decision node to start shopping where I research and compare the different options indicated by chance nodes from brand to pricing which can be affected by the holiday season. After that we get to commit to it by finalizing the payment which of course needs to get approved. And finally once the kibbles have been shipped and arrived then I can feed my dog. She is happy and I am happy.</p><h4>Agentic Commerce</h4><p>Below is the agentic variation of of buying dog food for my corgi online.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4kHb-S6q0B2RaLn9A4lpOg.png" /><figcaption>🟩 are human decisions. 🟥 are agentic decisions.</figcaption></figure><p>The flow is more or less the same where there is a decision to start shopping, do research, and proceed with checkout. But what’s different is that the one doing them are AI agents instead of humans.</p><p>It all starts at the top left corner where a human sets their preferences, guardrails, and rules to the agent. An example of this might be to buy kibbles from these brands at this weight with these flavors within this budget with coupons auto applied and with shipping within a certain amount of days.</p><p>This can jump straight into research and compare where the human no longer needs to check various sites and apps for the best deal (in Thailand I would check different vendors between Lazada and Shopee which can be time consuming IYKYK).</p><p>Or more interestingly, the agent can act on its own if the right conditions are met. In this case, it is a sensor for low kibble levels. The idea here is simple: place your kibbles in a smart scale that has a sensor which sends a request to the agent whenever the weight is below a certain threshold, signaling to them that it is time to re-up.</p><p>Lastly for the agent initiating checkout, I listed two primarily flows:</p><ol><li>Human in the loop (approval required)</li><li>Human out of the loop (fully autonomous)</li></ol><p>In the beginning, I would recommend for the human in the loop approach, but after some time and you are confident that the agent will behave as expected, then you can switch to the human out of the loop approach to make it fully autonomous and act on your behalf with the intentions that you defined early on.</p><p>That’s it! Your dog is fed and you reclaimed back your time.</p><h3>Closing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7SILWIJIA9nUQrHCRXMJQ.png" /><figcaption>Generated by ChatGPT</figcaption></figure><p>I hope that you learned a thing our two about influence diagram to help improve your decision making and demystify the complexities around agentic commerce! I had a lot of fun taking the course and think of it quite fondly after reflecting on it while writing this.</p><p>Squares, circles, diamonds, and arrows can be useful tools in your arsenal to help simplify the complex. The wonderful thing about this concept is that they are also used in decision trees which is much more nuanced. The way I see it is that influence diagrams helps with capturing the high level structure of the problem while decision trees help with zooming in on the details of each decision. The former is more of a strategic lens while the latter is more of an operational tool to break the problem down and map out every possible scenario that we can perform further calculations such as rollback analysis if we had probabilities and quantifiable values.</p><p>For example, we can take a look at each node and expand on it further using decision trees like for research and compare (which vendors sell the products, price, selection, shipping, coupon, etc…). But that can be for another blog. Thanks for tuning in!</p><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b35e33512d77" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/22-using-influence-diagram-to-demystify-agentic-commerce-b35e33512d77">#22 Using Influence Diagram to Demystify Agentic Commerce</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#21 Getting Started with CyberSource API]]></title>
            <link>https://medium.com/ai-commerce/21-getting-started-with-visa-cybersource-api-7953047cddfe?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/7953047cddfe</guid>
            <category><![CDATA[visa]]></category>
            <category><![CDATA[commerce]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[cybersource]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 21 May 2026 14:01:04 GMT</pubDate>
            <atom:updated>2026-05-27T12:48:31.435Z</atom:updated>
            <content:encoded><![CDATA[<h4>And how I overcame a blocker: “The following property is either invalid or missing: usd_outlet_id, usd_terminal_id”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x7PcFnFnyGjOYLj1yBEGRA.png" /></figure><p>In this blog we will use VISA’s CyberSource API which is a payment gateway to processes a card transaction end-to-end in a sandbox environment.</p><p>We will use two flows</p><ul><li>Create a payment authorization</li><li>Capture the authorized amount</li></ul><p>To get started, we created a merchant sandbox account here <a href="https://developer.cybersource.com/hello-world/sandbox.html">https://developer.cybersource.com/hello-world/sandbox.html</a></p><p>You will need this because it contains the following values that is required for authorizing API calls.</p><ul><li>merchant id</li><li>merchant key</li><li>merchant secret</li></ul><p>Next we downloaded the postman collection here <a href="https://developer.cybersource.com/hello-world.html">https://developer.cybersource.com/hello-world.html</a></p><p>Afterwards we will navigate to their API docs.</p><h4>API docs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t5bp-M14VQBw41Cy50o1KQ.png" /><figcaption><a href="https://developer.cybersource.com/api-reference-assets/index.html#payments">https://developer.cybersource.com/api-reference-assets/index.html#payments</a></figcaption></figure><p>The great thing about this document is that we can actively click around and play with each available endpoint and adjust the request builder accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUUcIc9CFphpBuAZdA89Iw.png" /></figure><p>I also mirrored the same request in postman with their default test credentials which worked fine out of the box.</p><p>Everything was working fine out of the box until I used my credentials.</p><h4>Error</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BcVxFm-uIfsNaqb4BsCQLg.png" /><figcaption>502 Bad Gateway</figcaption></figure><p>What’s going on? I was sure that I did everything correctly, but I kept getting the same error with an unhelpful response. I spent a few hours trying to debug it and retrace my steps, but no luck.</p><p>Eventually I navigated to CyberSource platform, went to transaction management, and found the sales transaction that kept failing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jjtosHyiVLLKt0___BTa1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x_Va-N85IzTpTPd-GgAQTw.png" /><figcaption>CyberSource failed transaction</figcaption></figure><p>This time it had a meaningful response:</p><blockquote>The following property is either invalid or missing: usd_outlet_id, usd_terminal_id</blockquote><p>I went back into the API docs to see if it was part of the request body, but it wasn’t there.</p><p>After searching on the forums I found that other users have reported the issue as well and recommended to reach out to developer@cybersource.com and give them your merchant id. It turns out that this is probably a bug on their system since usd_outlet_id and usd_terminal_id are created in the backend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e4qWjgwRqbJMjORSFCN0SA.png" /><figcaption>Thanks jmiller!</figcaption></figure><p>I emailed their dev support and they were able to fix my issue within the next day!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N0pt8-LxTckR023HLpkaKQ.png" /><figcaption>Thanks Kyle!</figcaption></figure><h4>Success</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ipAo9Ewx-vu8mGuZ8JpqVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUcMKXLRmfqL2-xgQyx5og.png" /><figcaption>2XX Authorization -&gt; Capture</figcaption></figure><p>Mission accomplished! Finally everything is working. It is worthwhile to point out that I updated some of the postman pre request and post request scripts to store and use the response payloads in subsequent calls.</p><p>I even created a sequence diagram to help visualize this flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*zJgQKWFQeeUVWn8VSRUSLQ.png" /></figure><h4>Closing</h4><p>I had fun playing around with Visa’s CyberSource payment gateway solution. With regards to AI commerce, this is an important programmatic layer that we can use to connect with to make agentic sales transactions possible.</p><p>While encountering the errors wasn’t fun (and it also wasn’t a fault of my own), the issue was promptly resolved and I was able to finish what I started. If you encountered the same issue, then I hope this blog was able to help! Happy coding.</p><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7953047cddfe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/21-getting-started-with-visa-cybersource-api-7953047cddfe">#21 Getting Started with CyberSource API</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#20 Using Claude Code with Ollama]]></title>
            <link>https://medium.com/ai-commerce/20-using-claude-code-with-ollama-9e4ca83470bb?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/9e4ca83470bb</guid>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[line-messging-api]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[qwen3-coder]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 14 May 2026 14:01:03 GMT</pubDate>
            <atom:updated>2026-05-14T14:01:02.235Z</atom:updated>
            <content:encoded><![CDATA[<h4>Run Claude Code with local models on your machine</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*_Q9aw5mClbjFnfVOXiDmeg.png" /></figure><p>As of January 16, 2026, Ollama v0.14.0 and later are now compatible with the Anthropic Messages API, making it possible to use tools like Claude Code with open-source models.</p><p>While I have used Ollama previously for running local LLM, I have not used it with Claude Code yet. So in this article we will explore how Claude Code works with Ollama and we will follow along with the guide here <a href="https://ollama.com/blog/claude">https://ollama.com/blog/claude</a>.</p><h4>Recommended Models</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hseAXHOCFeuifb2q" /><figcaption><a href="https://ollama.com/library/qwen3-coder">https://ollama.com/library/qwen3-coder</a></figcaption></figure><p>Ollama recommends to use qwen3-coder or gpt-oss:20bto run locally so I pulled Qwen3 from the official registry.</p><h4>Installing Claude Code</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/0*vQCKLLMS2-NZC5Wu.png" /></figure><p>Next I installed Claude Code using the command</p><pre>curl -fsSL https://claude.ai/install.sh | bash</pre><p>Then I configure the environment variables to use Ollama</p><pre>export ANTHROPIC_AUTH_TOKEN=ollama<br>export ANTHROPIC_BASE_URL=http://localhost:11434</pre><p>Afterwards I ran the following command since after installing Claude Code, it returned a warning “Native installation exists but ~/.local/bin is not in your PATH.”</p><p>So I fixed it with the following command.</p><pre>echo &#39;export PATH=&quot;$HOME/.local/bin:$PATH&quot;&#39; &gt;&gt; ~/.zshrc &amp;&amp; source ~/.zshrc</pre><p>Finally I started claude code in an empty project directory with the following commandclaude --model qwen3-coder .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8UExW4-G_fb0RzIqfI-pQg.png" /></figure><p>I’m in!</p><h4>The Use Case</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C-18EspE9fu7-zWM" /><figcaption>Photo by <a href="https://unsplash.com/@asterfolio?utm_source=medium&amp;utm_medium=referral">Asterfolio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let me start with a problem most people outside Thailand probably don’t think about — but one that costs Thai businesses real money every single day.</p><p>In Thailand, LINE isn’t just a messaging app. It <em>is</em> commerce. Customers don’t simply fill out web forms or click “Add to Cart.” They open LINE, message a business, ask a question, negotiate, pay, and expect a receipt — all without ever leaving the app. It’s how clinics confirm bookings, how boutique hotels handle room inquiries, how vendors close sales. And it works. Until it doesn’t.</p><p>The friction starts long before closing time. A customer messages a clinic at 2 PM on a Wednesday and waits 45 minutes for a reply — because the admin is juggling three conversations, a ringing phone, and a stack of PromptPay slips to verify manually. When the reply finally arrives, it half-answers the question. A follow-up is needed. Then another.</p><p>This isn’t a niche problem. It’s structural. Thai SMEs run their entire sales operation through a chat window managed by one or two people. When those people aren’t available, the business stops converting.</p><p>So I asked a simple question: <em>what if the chat window never went dark?</em></p><p>That’s what this project is about — building an AI agent that lives inside a LINE Official Account, handles customer inquiries in natural Thai-lish, generates PromptPay QR codes, verifies transfer slips, and confirms bookings autonomously. No human in the loop for the routine stuff. No lost sales after hours or during peak traffic.</p><p>The next step is to prompt this into existence so I chatted with Claude LLM on the use case and after numerous iterations had them generate a long prompt for me to enter into Claude Code.</p><h4>The Codebase</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ERufo9kTXPcTyMODCypyuw.png" /><figcaption>✻ Churned for 3h 53m 21s</figcaption></figure><p>After nearly 4 hours of running (I am using Apple M5 chip and 32 GB memory), the scaffolding is complete. I will have to run it and review the code, but that will be for another day. The purpose of this article is to show you that running Claude Code with local LLM from Ollama is possible. Until next time!</p><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e4ca83470bb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/20-using-claude-code-with-ollama-9e4ca83470bb">#20 Using Claude Code with Ollama</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#19 Giving Your Agent Hands: How to Add Skills in OpenClaw]]></title>
            <link>https://medium.com/ai-commerce/19-giving-your-agent-hands-how-to-add-skills-in-openclaw-550124b1e2d5?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/550124b1e2d5</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[clawhub]]></category>
            <category><![CDATA[openclaw]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 07 May 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-05-07T14:01:02.188Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Move beyond basic chat by equipping your personal assistant with custom tools and functional capabilities.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hxfqsmWlq3z0ZhXG" /><figcaption>Photo by <a href="https://unsplash.com/@heftiba?utm_source=medium&amp;utm_medium=referral">Toa Heftiba</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In previous articles, we showed how to install OpenClaw, the personal AI assistant, locally and on the cloud. In this article, we will add skills to our agent so they can have the ability to use tools.</p><p>To view existing skills that your agent has that is ready to use, you can run the following CLI command openclaw skills list --eligible</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S0ygGQGgR64SQhazs6QOiQ.png" /><figcaption>openclaw skills list --eligible</figcaption></figure><p>While we only see 4 active skills, actually there are actually a total of 50 skills that comes preinstalled in the openclaw-bundled.</p><p>You can also ask your agent directly via your connected messenger app (in this case LINE).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*1iwpHN_GBlgz0qlnNNNbmQ.jpeg" /><figcaption>What skills do you have?</figcaption></figure><p>Nice! Let’s try adding more skills. To do so, we can navigate to ClawHub.</p><h3>ClawHub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CwxZs0vV1yqR5Frk5UCq9w.png" /><figcaption><a href="https://clawhub.ai/">https://clawhub.ai/</a></figcaption></figure><p>ClawHub is a public skill registry, marketplace, and repository designed for OpenClaw, an AI agent framework. You can think of it as the “app store” for agents.</p><p>But I want to try to add new skills through my messenger app first to test its capabilities. Browsing through ClawHub, I found a skill that I would like to add called market-research . <a href="http://clawhub.ai/ivangdavila/market-research">http://clawhub.ai/ivangdavila/market-research</a>. Let’s try prompting our agent in LINE to install it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*IwwKItA_WUYNaUvxpvoxrQ.jpeg" /><figcaption>Can you add the skill market-research?</figcaption></figure><p>Our agent did it! (Although it took 10 mins to come back with a response which is likely due to the limited specs 2 GB RAM, 2 vCPUs, 60 GB SSD).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEl8U227cI9OIjAX16fQAg.png" /><figcaption>openclaw skills list --eligible</figcaption></figure><p>I also checked in our instance on AWS Lightsail using SSH and the results are the same.</p><h3>That’s it!</h3><p>We’ve gone from a fresh installation to a functional agent capable of installing its own upgrades. Whether you prefer the control of the AWS Lightsail SSH terminal or the convenience of a LINE message, your OpenClaw agent is now ready to get to work.</p><p>I’m looking forward to the day when shopping skills become readily available in ClawHub.</p><p>Happy prompting!</p><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=550124b1e2d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/19-giving-your-agent-hands-how-to-add-skills-in-openclaw-550124b1e2d5">#19 Giving Your Agent Hands: How to Add Skills in OpenClaw</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#18 A Step-by-Step Guide to Deploying an OpenClaw Agent Locally with LINE]]></title>
            <link>https://medium.com/ai-commerce/18-a-step-by-step-guide-to-deploying-an-openclaw-agent-locally-with-line-4cd8e89c78d9?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/4cd8e89c78d9</guid>
            <category><![CDATA[openclaw]]></category>
            <category><![CDATA[line-messging-api]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 14:01:03 GMT</pubDate>
            <atom:updated>2026-04-30T14:01:02.878Z</atom:updated>
            <content:encoded><![CDATA[<h4>Experience the personal agentic AI movement</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n53KDQVXWp8Sqf4H" /><figcaption>Photo by <a href="https://unsplash.com/@heftiba?utm_source=medium&amp;utm_medium=referral">Toa Heftiba</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In an earlier blog <a href="https://medium.com/ai-commerce/11-a-step-by-step-guide-to-deploying-an-openclaw-agent-on-aws-lightsail-with-line-40225934ff39">post</a>, I wrote about deploying OpenClaw on AWS Lightsail and connected it with the LINE messaging app. In this guide, we’ll walk through the official setup to deploy OpenClaw locally on your computer and connect it to LINE.</p><p><em>Side note — I actually started playing around with the localhost prior to the AWS one, but given the recency of the OpenClaw Lightsail release, I prioritized pushing that article out first. It was also good for me to go through both because the experience of setting up OpenClaw is quite different so I wanted to capture the nuances here.</em></p><p><em>Side note #2 — I am also doing this experiment on a 2015 Macbook using macOS 12 lol.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zXNprpgUxd1wv-cWP_e-8A.png" /><figcaption>My lovely MacBook Pro that I will be retiring soon</figcaption></figure><h3>Installing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zgCR1hfx47hHJhCU" /><figcaption>Photo by <a href="https://unsplash.com/@louishansel?utm_source=medium&amp;utm_medium=referral">Louis Hansel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I will following the official get started guide and document my experiences. If you are familiar with using terminal and CLI, this shouldn’t be an issue.</p><p><a href="https://docs.openclaw.ai/start/getting-started">https://docs.openclaw.ai/start/getting-started</a></p><p>I installed open claw with the following command.</p><pre>curl -fsSL https://openclaw.ai/install.sh | bash</pre><p>Then I tried running the onboarding wizard</p><pre>openclaw onboard --install-daemon</pre><p>but I wasn’t able do so since it requires node v22, but this is only supported on macOS 14+ so I had to use nvm or Node Version Manager to bypass restrictions on older OS versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BfzZzvG7PkNrywRV20r4qg.png" /><figcaption>Let’s go!</figcaption></figure><p><em>Side note #3 the onboarding journey was not part of the experience on AWS.</em></p><h3>Onboarding</h3><p>The next steps is going through the quick start setup. I’ve shared my inputs below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5q8MZHyGJ1KpQH9YsezSBA.png" /></figure><blockquote>I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?</blockquote><p>Yes</p><blockquote>Onboarding mode</blockquote><p>QuickStart</p><blockquote>Model/auth provider</blockquote><p>Google</p><blockquote>Google auth method</blockquote><p>Google Gemini API key</p><blockquote>How do you want to provide this API key?</blockquote><p>Paste API key now</p><blockquote>Use existing GEMINI_API_KEY (env: GEMINI_API_KEY, AIza…qwc4)?</blockquote><p>Yes</p><blockquote>Default model</blockquote><p>google/gemini-2.0-flash-lite</p><h3>Channel Selection (LINE)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F-GjgJhQZv3Eb6W5u6_AVQ.png" /><figcaption>Channel selection</figcaption></figure><p>For me, since I live in Thailand, I chose LINE since this is the most popular messaging app in this part of the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5o-u5kPRusNUtVKl2Xe1Q.png" /></figure><p>Error!</p><pre>Plugin install failed: Package not found on npm: @openclaw/line. See https://docs.openclaw.ai/tools/plugin for installable plugins.</pre><p>Fortunately there is a link to navigate to so that we can understand what’s going on. In this case we have to manually install the LINE plugin.</p><h3>OpenClaw Plugins</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5Q2kcG-WqfQrf4592lGrA.png" /><figcaption><a href="https://docs.openclaw.ai/tools/plugin">https://docs.openclaw.ai/tools/plugin</a></figcaption></figure><p>I ran the first command to see the list openclaw plugins list and then installed it with openclaw plugins install @openclaw/line and then ran the list command again to see if it has been loaded and it has!</p><h3>Back to Onboarding</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*CqWbA31bRHpZEcTeHYZqtA.png" /></figure><p>So I reran the onboarding wizard, selected LINE, but then under Channel setup it says “line does not support onboarding yet.” hmmm…</p><p>I proceeded to go through the next steps and decided to skip the setup for any API keys and hooks since it is outside the scope of this guide.</p><h3>Hatch your Bot!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*ixX5fWAccaJF4D-QloikzA.png" /><figcaption>How do you want to hatch your bot?</figcaption></figure><p>Skipping hook leads OpenClaw to install the gateway service and start it. At the end of it we see three options for How do you want to hatch your bot?</p><p>│ Hatch in TUI (recommended)</p><p>I picked Hatch in TUI or Terminal User Interface, but immediately got hit with the rate limit error (I was using Google AI Studio free tier).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AuwTL6_M847SBgqwygG0Ow.png" /></figure><h3>OpenRouter</h3><p>So I started searching for an alternative and came across <a href="https://openrouter.a/">https://openrouter.a</a> which is a platform that connects you to many different AI models through one single API. They also have a free tier which I signed up for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qj9YW5JqpIwUqmA4e9RhWQ.png" /><figcaption><a href="https://openrouter.ai/">https://openrouter.ai/</a></figcaption></figure><p>After creating an account and an API key, I ran this command to add the API key to OpenClaw config and reran the onboarding wizard</p><pre> openclaw onboard --auth-choice apiKey --token-provider openrouter --token &quot;API key&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgrdJz_tLi17YwzAJXBQgw.png" /><figcaption>Wake up, my friend!</figcaption></figure><p>It works now!</p><p><em>Side note #4 — for some reason hatching my bot was exhilarating and made me have some sort of emotional connection with it regardless of how weird that sounds. AWS Lightsail really should keep the onboarding journey.</em></p><h3>OpenClaw Dashboard</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHBP23IqZuT8iZfQS0h86A.png" /><figcaption>openclaw dashboard</figcaption></figure><p>I ran the command openclaw dashboard which opened up the control UI as shown in the picture above. I still haven’t connected my LINE account to OpenClaw yet so that’s what we will do next.</p><h3>Setting up LINE account</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k8WlIWipl5zM2Hdz.png" /></figure><p>To setup an OpenClaw LINE channel, I am following the guide here <a href="https://docs.openclaw.ai/channels/line">https://docs.openclaw.ai/channels/line</a></p><blockquote>1. Create a LINE Developers account and open the Console: <a href="https://developers.line.biz/console/">https://developers.line.biz/console/</a></blockquote><blockquote>2. Create (or pick) a Provider and add a Messaging API channel.</blockquote><blockquote>3. Copy the Channel access token and Channel secret from the channel settings.</blockquote><blockquote>4. Enable Use webhook in the Messaging API settings.</blockquote><blockquote>5. Set the webhook URL to your gateway endpoint (HTTPS required)</blockquote><h4>This is important to note</h4><p>(I copied and pasted this section from my other blog post because the LINE setup is the same)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zk2nY8-1tghlKNFS.png" /><figcaption>OpenClaw LINE Channel Settings</figcaption></figure><p>To configure a LINE channel in OpenClaw, you need three things:</p><ol><li>Channel access token</li><li>Channel secret</li><li>Webhook URL</li></ol><p>The tricky thing is that all three things live in three different places.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xVXNQJf1MF6R0wds.png" /><figcaption><a href="https://developers.line.biz/console">https://developers.line.biz/console</a></figcaption></figure><p>Channel access token can be generated in the LINE developer console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hgb9YK8Zqr0lVPS7.png" /><figcaption><a href="https://manager.line.biz/">https://manager.line.biz/</a></figcaption></figure><p>Channel secret can be found in the LINE account manager.</p><p>Lastly, LINE requires a public facing secure HTTPS connection for their Webhook URL. This means we have to attach a static IP address to the OpenClaw instance, configure a domain to point to it, and setup a Reverse Proxy with an SSL Certificate.</p><h4>Attach a static IP address</h4><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5q7dZuAYQQwQgqJ4.png" /><figcaption>Lightsail Networking Attach Static IP</figcaption></figure><p><em>Your instance is using a static IP as its public IPv4 address. A static IP doesn’t change when you stop and start your instance.</em></p><h3>Reverse Proxy with Cloudflared</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jeHCME8fDI5VVT3x" /><figcaption><a href="https://github.com/cloudflare/cloudflared">https://github.com/cloudflare/cloudflared</a></figcaption></figure><p>We need a tunnel to expose our localhost OpenClaw port to the internet. To do this, we will be using Cloudflare Tunnel (cloudflared) which provide a permanent HTTPS URL that you paste into the “Webhook URL” field in your LINE Channel settings.</p><p>To do so, we have to install cloudflared</p><pre>brew install cloudflared</pre><p>But when I ran the CLI command above I was met with the error</p><pre>Warning: You are using macOS 12.<br>We (and Apple) do not provide support for this old version.</pre><p>So instead I downloaded the latest release directly from their github cloudflared-darwin-amd64.tgz and logged in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TBsNIUCtS4JMNq2r3KMGlQ.png" /><figcaption>cloudflared tunnel login</figcaption></figure><p>If you want to see how I connected my domain to the IP address, you can view my earlier article. For this approach, since this is just a quick demo, I am creating randomly generated temporary tunnel that doesn’t require a login or a website.</p><pre>cloudflared tunnel --url http://localhost:18789</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dXYQ24jWGwYkGm-UqpTMCw.png" /></figure><p>You can see the URL inside the box in the screenshot above.</p><p><strong>Verify the webhook on LINE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ynqjYP8yvlrg9moQ6HONkQ.png" /><figcaption>LINE Verify webhook URL Success</figcaption></figure><p>Paste the link generated from cloudflared into the Webhook URL in LINE Developers Messaging API setting and click verify. If you see Success then you are good to go!</p><p>Please be sure to add the suffix line/webhook to the URL or else it will fail.</p><h4>Pair your LINE bot with OpenClaw</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*TbJg_xnmUqFtq9sb-GvRew.jpeg" /><figcaption>Hey Agent_M!</figcaption></figure><p>The last step is to pair your LINE bot with OpenClaw since this is a fundamental security measure to prevent unauthorized access to your server.</p><p>Message your bot in LINE to get the access code and then run it on your OpenClaw server with the following command to approve it.</p><pre>openclaw pairing approve line &lt;CODE&gt;</pre><p>Once this is done, then you now have your own personal AI agent chatbot in your favorite messaging app.</p><h3>That’s it!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Uz0S5uyDz4t2TP1t" /><figcaption>Photo by <a href="https://unsplash.com/@fotolunatics?utm_source=medium&amp;utm_medium=referral">mauro mari</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Deploying OpenClaw locally is an experience in and of itself, and it’s a completely different beast compared to the AWS route. While the setup demands a bit more technical prowess, the hands-on onboarding — watching your agent go from a fresh install to fully “hatched” — feels incredibly satisfying.</p><p>I’m looking forward to playing around with my agent and hopefully can get it to shop online for me one of these days.</p><p>Beyond just getting the agent running, this local build led me to discover OpenRouter. It’s a fantastic LLM API service that I might have completely overlooked otherwise, and it opens up a ton of possibilities for routing tasks to different models. Sometimes the best part of these experiments is the tools you find along the way.</p><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cd8e89c78d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/18-a-step-by-step-guide-to-deploying-an-openclaw-agent-locally-with-line-4cd8e89c78d9">#18 A Step-by-Step Guide to Deploying an OpenClaw Agent Locally with LINE</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#17 Getting Started with Agentic Commerce Protocol (ACP)]]></title>
            <link>https://medium.com/ai-commerce/17-getting-started-with-agentic-commerce-protocol-acp-75b4499bbe5b?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/75b4499bbe5b</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[agentic-commerce-protocol]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 23 Apr 2026 14:01:03 GMT</pubDate>
            <atom:updated>2026-04-23T14:01:03.105Z</atom:updated>
            <content:encoded><![CDATA[<h4>Turning conversations into checkouts</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nY7TTGRPKjNR30KG" /><figcaption><a href="https://www.agenticcommerce.dev/">https://www.agenticcommerce.dev/</a></figcaption></figure><p>Every day, millions of people use LLMs to figure out what to buy.</p><p>Until recently, that journey looked like this:</p><ul><li>Chat → Research → Click link → Browse website → Add to cart → Checkout</li></ul><p>With the Agentic Commerce Protocol (ACP), that flow collapses into:</p><ul><li>Chat → Buy</li></ul><p>ACP enables purchases to happen <em>directly inside conversations</em>.</p><p>In this post, we’ll explore the technical documentation behind ACP — an open standard developed by Stripe and OpenAI that enables programmatic commerce flows between buyers, AI agents, and merchants.</p><p>ACP is what powers Instant Checkout inside ChatGPT.</p><p>And that’s a big deal.</p><h3>Why ACP is important</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OYgDWy7DVt7QJpYk.png" /><figcaption><a href="https://help.openai.com/en/articles/12440090-instant-checkout-buy-directly-from-merchants-through-chatgpt">https://help.openai.com/en/articles/12440090-instant-checkout-buy-directly-from-merchants-through-chatgpt</a></figcaption></figure><p>As mentioned in previous blog posts, commerce has largely been built by and designed for humans. The emergence of AI agents changes the landscape completely.</p><p>We are navigating in uncharted waters here with rules and standards being defined in this new payment channel. ACP is an early attempt to define the rules of this emerging arena. We’re effectively witnessing the birth of a new distribution surface of LLMs as storefronts.</p><p>This is not replacing ecommerce infrastructure, but rather extending it.</p><h3>Who Benefits?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bAkgIEU_Zr2EWfjJ" /><figcaption>Photo by <a href="https://unsplash.com/@omeganova?utm_source=medium&amp;utm_medium=referral">Deniz Altindas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li><strong>Consumers</strong> can shop without leaving their chat interface.</li><li><strong>Merchants </strong>can reach more customers and get discovered through GEO (Generative Engine Optimization).</li><li><strong>AI Platforms </strong>can have native commerce capability, higher engagement, and new monetization pathways.</li><li><strong>Payment Providers </strong>can increase transaction volume will grow from AI commerce.</li></ul><h3>How it works</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U56Hv_5GnR5vt2yX-1uIeg.png" /><figcaption><a href="https://www.agenticcommerce.dev/docs">https://www.agenticcommerce.dev/docs</a></figcaption></figure><p>The sequence diagram above explains the workflow of how ACP works with human present.</p><p>You begin with the buyer who expresses their intent to buy such as</p><blockquote>Can you help me find a great housewarming gift for my friend? maybe a handmade, ceramic dinnerware set, in white and tan and under $100</blockquote><p>This request gets sent to the Agent or LLM that acts like a middleware who then makes a call to the Seller or Merchant to create checkout (items, buyer, address). The buyer selects fulfillment and confirms which then attempts to complete checkout with the payment provider. Once the payment is confirmed, the order details is returned and that’s it!</p><p>Below is an image on the architecture that make this happen where you can visualize the orchestration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8gUuHbeg2h5Bb_oCV1o_Q.png" /><figcaption><a href="https://www.agenticcommerce.dev/docs/concepts/architecture">https://www.agenticcommerce.dev/docs/concepts/architecture</a></figcaption></figure><h3>Supported request types</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sxp8_SnE1vv1hkXfyCqVDw.jpeg" /><figcaption>https://www.agenticcommerce.dev/docs/getting-started/quickstart</figcaption></figure><p>ACP is made for sellers or merchants who wants to sell products through AI interfaces. To support this, there are a total of five available request types in the Checkout reference.</p><ol><li>Create checkout session (build a cart)</li><li>Retrieve checkout session (fetch cart)</li><li>Update checkout session (update cart)</li><li>Complete checkout session (payment confirmation)</li><li>Cancel checkout session (abort)</li></ol><p>There is one other reference in the docs for Payments which tokenize payment credentials that restrict how payment methods can be used. But we will not cover it in this article as it is not included in the quick start guide.</p><p>It is also worthwhile to note that ACP does not include product discovery which is intentionally decoupled from these transactional endpoints to allow for different implementation patterns.</p><h3>Quick start</h3><p>ACP documentation does quite a good job at demoing the product capabilities. I encourage you to check it out yourself and ply around with it.</p><p>As mentioned above, there are five request types to work with. Additionally, there are Seller Response Controls that merchants can customize as well.</p><ul><li><strong>Fulfillment Options</strong> — Control which delivery methods appear (shipping, digital, pickup, local delivery)</li><li><strong>Interventions</strong> — Configure authentication requirements (3DS, biometric, address verification)</li><li><strong>Extensions</strong> — Enable protocol extensions like discount support or third-party features</li></ul><p>Changing any of these options will reflect the changes in the JSON and chat interfaces below.</p><h4>JSON</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h7eZ2DgTklT-uEZXz7rhyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jYiNakZZ8KxY9Sn6y8OOLQ.png" /><figcaption>JSON Create Checkout Session Request / Response</figcaption></figure><h3>Chat</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bd0PzBNot6AyhXVSpn57MA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rrh__3opE4aBIuPhNf_dnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SmdLlWoIn8jAs8FA0tR5-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*045fIDmCoXgrkcGzXF6xTQ.png" /><figcaption>Chat buying a large t shirt</figcaption></figure><h3>That’s it!</h3><p>We are still in the experimental phase of AI commerce. Protocols are forming, incentives are aligning, and the playbook is still being written. ACP is one piece of a much larger transformation where AI doesn’t just influence buying decisions, but executes them.</p><p>If you’re a merchant, product leader, or developer, the takeaway is simple: start preparing your infrastructure for AI agents. Structured product data, clean APIs, clear authorization flows will matter a lot. ACP may evolve, but the shift toward agent initiated transactions won’t reverse. The teams that experiment early will have the advantage when conversational checkout becomes mainstream.</p><p>Be a leader, not a laggard.</p><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75b4499bbe5b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/17-getting-started-with-agentic-commerce-protocol-acp-75b4499bbe5b">#17 Getting Started with Agentic Commerce Protocol (ACP)</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#16 I Tried Google’s Agent Payments Protocol (AP2) So You Don’t Have To]]></title>
            <link>https://medium.com/ai-commerce/16-i-tried-googles-agent-payments-protocol-ap2-so-you-don-t-have-to-10200efa74fe?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/10200efa74fe</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[agentic-commerce]]></category>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[ap2]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 14:01:06 GMT</pubDate>
            <atom:updated>2026-04-16T14:01:06.504Z</atom:updated>
            <content:encoded><![CDATA[<h4>Running the official Python sample and exploring how AI agents create mandates, choose payment methods, and attempt real transactions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_JZIfkMozT89TQZcSFXXiQ.png" /><figcaption>Generated by ChatGPT 5.2</figcaption></figure><p>In this post, I’ll explore Google’s Agent Payments Protocol (AP2) by running the official sample code in Python and sharing step by step screenshots of the results.</p><p>This is an exciting development because, as we’ve discussed in previous articles, commerce has historically been designed for humans. With the rise of AI agents that can browse, decide, and now pay on our behalf, entirely new questions emerge around authorization, authenticity, and accountability.</p><p>That’s exactly the gap AP2 is trying to fill.</p><p>By collaborating with over 60 organizations, Google is helping establish early standards for how agentic payments should work. It’s a strong signal that AI commerce is moving from theory into infrastructure.</p><blockquote>AP2 is an open, shared protocol that provides a common language for secure, compliant transactions between agents and merchants, helping to prevent a fragmented ecosystem.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K9MUhbhWqIRkMFup.jpg" /><figcaption>AP2 Partners</figcaption></figure><h4>Sources</h4><ul><li>The main article that I am using is <a href="https://cloud.google.com/blog/products/ai-machine-learning/announcing-agents-to-payments-ap2-protocol">https://cloud.google.com/blog/products/ai-machine-learning/announcing-agents-to-payments-ap2-protocol</a></li><li>I recommend to watch the youtube video by Google on Intro to AP2 <a href="https://www.youtube.com/watch?v=yLTp3ic2j5c">https://www.youtube.com/watch?v=yLTp3ic2j5c</a></li><li>Github repository <a href="https://github.com/google-agentic-commerce/AP2">https://github.com/google-agentic-commerce/AP2</a></li></ul><h3>Getting Started</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JocrK2sE8u6RG8DT.png" /></figure><p>To get started, I navigated to the AP2 github repo.</p><p>In the read me, it states that</p><blockquote>The samples directory contains a collection of curated scenarios meant to demonstrate the key components of the Agent Payments Protocol.</blockquote><blockquote>The scenarios can be found in the <a href="https://github.com/google-agentic-commerce/AP2/blob/main/samples/python/scenarios">samples/python/scenarios</a> directories.</blockquote><blockquote>Each scenario contains:</blockquote><blockquote>a README.md file describing the scenario and instructions for running it.</blockquote><blockquote>a run.sh script to simplify the process of running the scenario locally.</blockquote><blockquote>This demonstration features various agents and servers, with most source code located in <a href="https://github.com/google-agentic-commerce/AP2/blob/main/samples/python/src">samples/python/src</a>.</blockquote><p>For prerequisites</p><ul><li>Python 3.10 or higher</li><li>uv package manager</li></ul><p>You will also need either a Google API Key from Google AI Studio or Vertex AI. I decided to use Google API Key since I am exploring this for my own learning and not running this in production.</p><h3>Scenarios</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*uVlLLQbeswIoxciwC3Nvsg.png" /><figcaption>AP2 source code samples folder structure</figcaption></figure><p>In Google’s article, they in <em>How it works: Establishing trust via mandates and verifiable credentials </em>that there are two primary ways a user will shop with an agent:</p><ul><li>Real-time purchases (human present)</li><li>Delegated tasks (human not present)</li></ul><p>However, in the code itself, under samples/python/scenarios , there is only one children folder a2a which stands for agent to agent and below that another single children folder human-present . Within this there are two sub folders for cards and x402 which is a solution for agent-based crypto payments, but as we can see only run.sh exists for cards.</p><p>Hence we will only focus on the scenario of human present using cards because that is the only one that exists out of the box.</p><h3>Key Agents</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BeMlw6o7xX68-w8ETFMirA.png" /><figcaption>Generated by ChatGPT 5.2</figcaption></figure><p>Below are the list of key agents available for usage as described in the README file</p><ul><li><strong>Shopping Agent: </strong>The main orchestrator that handles user’s requests to shop and delegates tasks to specialized agents.</li><li><strong>Merchant Agent:</strong> An agent that handles product queries from the shopping agent.</li><li><strong>Merchant Payment Processor Agent:</strong> An agent that takes payments on behalf of the merchant.</li><li><strong>Credentials Provider Agent: </strong>The credentials provider is the holder of a user’s payment credentials. As such, it serves two primary roles: (1) It provides the shopping agent the list of payment methods available in a user’s wallet. (2) It facilitates payment between the shopping agent and a merchant’s payment processor.</li></ul><p>Reference: <a href="https://github.com/google-agentic-commerce/AP2/tree/main/samples/python/scenarios/a2a/human-present/cards">https://github.com/google-agentic-commerce/AP2/tree/main/samples/python/scenarios/a2a/human-present/cards</a></p><h3>Execution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A_2Rg-X6Num6xoO9" /><figcaption>Photo by <a href="https://unsplash.com/@sarti46?utm_source=medium&amp;utm_medium=referral">Massimo Sartirana</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Start All Agents</h4><p>You can execute the following command to run all of the steps in one terminal. This starts four distinct agents simultaneously.</p><pre>bash samples/python/scenarios/a2a/human-present/cards/run.sh</pre><p>Open a browser and navigate to the shopping agent UI at <a href="http://0.0.0.0:8000/">http://0.0.0.0:8000</a>. You may now begin interacting with the Shopping Agent.</p><h4>Error from “uv sync”</h4><p>I actually ran into an error while running this which I will share the message below and the fix as well. Hopefully this can help someone.</p><pre>bash samples/python/scenarios/a2a/human-present/cards/run.sh<br><br>Setting up the Python virtual environment...<br>Using CPython 3.12.4 interpreter at: /usr/local/bin/python3<br>Creating virtual environment at: .venv<br>Activate with: source .venv/bin/activate<br>Virtual environment activated.<br>Installing project in editable mode...<br>Resolved 6 packages in 298ms<br>      Built ap2 @ file:///Users/m/Desktop/code/AP2-main<br>Prepared 6 packages in 2.81s<br>Installed 6 packages in 11ms<br> + annotated-types==0.7.0<br> + ap2==0.1 (from file:///Users/m/Desktop/code/AP2-main)<br> + pydantic==2.12.5<br> + pydantic-core==2.41.5<br> + typing-extensions==4.15.0<br> + typing-inspection==0.4.2<br>Syncing virtual environment with uv sync...<br>Resolved 160 packages in 7ms<br>      Built ap2-samples @ file:///Users/m/Desktop/code/AP2-main/samples/python<br>   Updating https://github.com/google-agentic-commerce/a2a-x402.git (HEAD)<br>⠇ Preparing packages... (1/150)                                                                                                                                                        <br>× Failed to download `google-cloud-speech==2.33.0`<br>  ├─▶ Failed to fetch: `https://us-python.pkg.dev/artifact-foundry-prod/ah-3p-staging-python/google-cloud-speech/google_cloud_speech-2.33.0-py3-none-any.whl`<br>  ╰─▶ HTTP status client error (401 Unauthorized) for url<br>      (https://us-python.pkg.dev/artifact-foundry-prod/ah-3p-staging-python/google-cloud-speech/google_cloud_speech-2.33.0-py3-none-any.whl)<br>  help: `google-cloud-speech` (v2.33.0) was included because `ap2-samples` (v0.1) depends on `google-adk` (v1.13.0) which depends on `google-cloud-speech`<br>Error: uv sync failed. Aborting deployment.<br><br>Shutting down background processes...<br>Cleanup complete.</pre><h4>Fix</h4><p>Edit this file:</p><pre>samples/python/scenarios/a2a/human-present/cards/run.sh</pre><p>Find this block:</p><pre>if uv sync --package ap2-samples; then</pre><p>Change it to:</p><pre>if uv sync --package ap2-samples --index-url https://pypi.org/simple; then</pre><p>Save, then rerun:</p><pre>bash samples/python/scenarios/a2a/human-present/cards/run.sh</pre><p>Or you can run each agent in its own terminal.</p><h4>1. Start the Merchant Agent:</h4><pre>uv run - package ap2-samples python -m roles.merchant_agent</pre><h4>2. Start the Credentials Provider:</h4><pre>uv run - package ap2-samples python -m roles.credentials_provider_agent</pre><h4>3. Start the Merchant Payment Processor Agent:</h4><pre>uv run - package ap2-samples python -m roles.merchant_payment_processor_agent</pre><h4>4. Start the Shopping Agent:</h4><pre>uv run - package ap2-samples adk web samples/python/src/roles</pre><h3>Welcome to Agent Development Kit (ADK)!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xeqII_R2c2eqb4IOjjZzmg.png" /><figcaption>localhost <a href="http://0.0.0.0:8000/dev-ui/">http://0.0.0.0:8000/dev-ui/</a></figcaption></figure><p>Great! Now that we’re in, where do we start? Well, fortunately the README provides suggestions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mXoi_t-Ua3GKOMl1rSAYCw.png" /><figcaption><a href="https://github.com/google-agentic-commerce/AP2/tree/main/samples/python/scenarios/a2a/human-present/cards">https://github.com/google-agentic-commerce/AP2/tree/main/samples/python/scenarios/a2a/human-present/cards</a></figcaption></figure><h4>I want to buy a coffee maker</h4><p>As per the documentation, our goal is to buy a coffee maker. So I asked the Shopping Agent “I want to buy a coffee maker” and below is the response as well as a preview of what is happening under the hood.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pyK7exMXTLKEKaa8VIwguQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_t7v2XyUd5KnlZ0kr57dA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eJ_mzh-Rx6ykAjP-iDE4uA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yt_kLcsIchiI2Er_aijrBw.png" /><figcaption>“I want to buy a coffee maker”</figcaption></figure><p>Wow. This is quite verbose and we can see that there was a tool call transfer_to_agent. For the purposes of this blog, I will not dissect every little detail here and instead will continue the conversation to accomplish my goal of buying a new coffee maker.</p><h4>Espresso please</h4><p>The LLM asked me for some clarifying questions from my initial prompt which I replied:</p><blockquote>Espresso pleased (sic). No particular brand in mind and I am open to any suggestions from any merchants. Refund is important to me.</blockquote><p>Let’s see what it does next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UeNktUqSyrcmQfSMbYq0aA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VKn_McnsCkpRZDGgZNRjtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WiArsldToenB16RIpE73KQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AbK_e1vS7ho_J1XbXyiHmA.png" /><figcaption>“Espresso please”</figcaption></figure><p>We can see a few differences now. For instance, we can see a new tool being called create_intent_mandate . This is particularly important because “AP2 builds trust by using Mandates — tamper-proof, cryptographically-signed digital contracts that serve as verifiable proof of a user’s instructions. These mandates are signed by verifiable credentials (VCs) and act as the foundational evidence for every transaction.” In other words, intent mandates signal trust in agentic commerce.</p><h4>Yes please proceed</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LKiIhCRXbORbPWMY-aQEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKEv9wLivIal64WJj_AC0g.png" /><figcaption>Yes please proceed</figcaption></figure><p>The LLM asked if they should proceed, to which I replied “Yes please proceed.” We can see the agent calling find_products now. At this point, as per the documentation, it states that “The Shopping Agent will delegate to the Merchant Agent, which will find products matching your intent and present you with options contained in CartMandates.”</p><p>However, in practice, I do not see this delegation happening as the agent that I am interfacing with is still the Shopping agent as indicated by the purple icon.</p><h4>2. Espresso coffee maker, professional grade</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G2BMFhPv296CUNNt6DgD9w.png" /><figcaption>2. Espresso coffee maker, professional grade</figcaption></figure><p>We can see the agent calling update_chosen_cart_mandate. This is step 4 in the documentation which is also known as Cart Creation.</p><h4>Digital wallet please</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZtk9REAXk40FbZ2XSlVDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuIpmVn2YzxznEJAKaua8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBHZMSD0MUfJ3GNRo5oRsQ.png" /><figcaption>Digital wallet please. Google Pay. Sure. Error.</figcaption></figure><p>I wanted to see what would happen if I chose digital wallet and fortunately the program is smart enough to know that it is a demo and used mock data. The agent is also the shipping_address_collector as indicated by the green icon, but I don’t see it in the documentation. Nevertheless, we can see that the agent made a call to get_shipping_address but it ultimately errored out. I suspect this is due to billing issues by going over the limit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7SEOA-t525Py0S7yasoJ4A.png" /><figcaption>You have reached a rate limit. Set up billing to increase your limits and unblock your work.</figcaption></figure><p>And unfortunately I was right about the limit. Let’s try again tomorrow after the free tier quota rates reset.</p><h4>Digital wallet please (second try)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LAyLaukCx3v6yqPxL85NGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08rgEd_yFsDhpTZnju9wbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jyLKt-bv5dFUVYtcJx4svQ.png" /><figcaption>Success!</figcaption></figure><p>We can see the agent summarizing the order and shipping address with update_cart. Then it called get_payment_methods which is a mockup of my digital wallet from Credential Provider agent and returned two payment methods that I have. Let’s try American Express ending in 8888.</p><h4>American Express ending in 8888</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nnv1YoU4mcpFASAH2q-hUg.png" /><figcaption>American Express ending in 8888</figcaption></figure><p>This is when get_payment_credential_token is called from the Credential Provider agent. It also states in the second output before calling the create_payment_mandate tool.</p><blockquote>This is where you would be redirected to a trusted surface to confirm the purchase. But this is a demo, so you can confirm your purchase here.</blockquote><p>So yes please, let’s proceed.</p><h4>Yes please.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_fBCgbJHHWMu2jCrmWZvw.png" /><figcaption>Yes please. Error.</figcaption></figure><p>I got hit with the API limit again lol. Let’s try again later.</p><h4>Try again. 123</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EvhPnsxNo-i00c4yqm95OA.png" /><figcaption>Try again. 123</figcaption></figure><p>This time it went through and it asked for an OTP or one time password with initiate_payment_with_otp . In this case the value is 123 since this is a demo account, but ideally it should get sent to my mobile phone or email or another method.</p><h4>Are we done yet?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-f_zuoszxXlaT7xVL5hVQ.png" /><figcaption>Success!</figcaption></figure><p>Funnily enough we got hit with another API limitation issue…so after trying again it finally succeeded. Our purchase has finally completed!</p><h3>Closing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YsMlXJ3fyF5KPYr5" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Running the AP2 sample made one thing very clear. Agentic commerce is no longer theoretical, it’s entering the infrastructure phase.</p><p>Even in this early demo, we can already see the core building blocks emerging:</p><ul><li>Intent Mandates acting as verifiable proof of user instructions</li><li>Credential Providers separating payment identity from the shopping agent</li><li>Multi-agent coordination to simulate how real-world merchants, wallets, and payment processors might interact</li></ul><p>That said, the experience also shows how early we still are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*hfC0a4ND_Xsdf4KlrATstw.png" /><figcaption>Demo UI agents 🤖</figcaption></figure><p>Moreover, there were quite a number of friction throughout the experience. The gap between documentation and what actually runs in the demo UI is noticeable. The README describes four distinct roles (Shopping Agent, Merchant Agent, Payment Processor, Credentials Provider), but the live interface exposes a different set of runtime agents like root_agent, shopper, shipping_address_collector, and payment_method_collector. This suggests the ecosystem is still evolving, both technically and conceptually.</p><p>The rate limits and mock flows are also a reminder that this is infrastructure experimentation, not production commerce. But that’s exactly why it’s interesting. Protocols like AP2 aren’t trying to build the next checkout button. They’re trying to define how trust works when there is no or limited human in the loop.</p><p>If AI agents are going to shop autonomously in the future, we’ll need</p><ul><li>Standard ways to express user intent</li><li>Verifiable proof that an agent is authorized to spend</li><li>Clear responsibility boundaries between agents, merchants, and credential holders</li></ul><p>AP2 is one of the first serious attempts at that foundation.</p><p>For builders exploring AI commerce, this repo is less about “buying a coffee maker” and more about seeing the early wiring of a new economic layer for the internet.</p><p>And that’s worth paying attention to.</p><p>p.s., I might do a part 2 on this when more scenarios are available in the github repo.</p><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10200efa74fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/16-i-tried-googles-agent-payments-protocol-ap2-so-you-don-t-have-to-10200efa74fe">#16 I Tried Google’s Agent Payments Protocol (AP2) So You Don’t Have To</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#15 Protect your Data by Running LLMs Locally with Ollama]]></title>
            <link>https://medium.com/ai-commerce/15-protect-your-data-by-running-llms-locally-with-ollama-d53218f3229d?source=rss----567fd7b112c3---4</link>
            <guid isPermaLink="false">https://medium.com/p/d53218f3229d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[commerce]]></category>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[data-privacy]]></category>
            <dc:creator><![CDATA[Songtham Tung]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 14:01:03 GMT</pubDate>
            <atom:updated>2026-04-09T14:01:02.385Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>How data isolation, technical guardrails, and private instances can unlock trustworthy AI commerce</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1OwoSBOtogcIDJhm" /><figcaption>Photo by <a href="https://unsplash.com/@josiahfarrow?utm_source=medium&amp;utm_medium=referral">Josiah Farrow</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There’s a common saying that generative AI is only as good as the data you give it. That’s largely true since better inputs lead to better outputs. But right behind that idea comes a more uncomfortable question: <em>can we trust where our data goes?</em></p><p>For both businesses and consumers, this uncertainty can be a deal breaker. The same technology that promises smarter automation and personalization also asks us to share sensitive company information and personal data with systems we don’t fully understand. That hesitation isn’t irrational — it’s a signal that trust, privacy, and control need to be part of the AI conversation from the start. So how do we move forward without giving up more data than we’re comfortable with?</p><p>To tackle this challenge, I asked the following question to Gemini:</p><blockquote>“How do businesses navigate trust with connecting and uploading proprietary data to LLMs?”</blockquote><p>The crux of their response is that data isolation can be achieved through a strategy focused on three pillars</p><ol><li><strong>Architectural Control </strong><em>(where the data lives during processing) </em><br>→ Private LLM Instances, VPC, Local / on-premise</li><li><strong>Technical Guardrails<em> (</em></strong><em>reduce data exposure)</em><br>→ Retrieval Augmented Generation (RAG), Data Masking &amp; Personally Identifiable Information or PII Stripping, Role-Based Access Control</li><li><strong>Governance Frameworks </strong><em>(codify trust)</em><br>→ Enterprise SLAs</li></ol><h4>Why does this matter?</h4><p>In commerce, personalization has long depended on a simple tradeoff of “give us your data, and we’ll give you a better experience.” For years, that bargain felt unavoidable. If you wanted recommendations, convenience, or smarter services, you had to surrender more information.</p><p>Private AI changes that equation.</p><p>By reducing how much sensitive data needs to leave your control, we introduce a new layer in the AI commerce stack that enables high intelligence with lower data exposure. That shift is significant. It moves power back toward consumers and businesses, creating a path where personalization doesn’t automatically require deep data surrender. In a digital economy built on data exchange, that’s not just an incremental improvement, it’s a structural change.</p><p>For the purposes of this article, we will focus on private LLM instances. So I asked ChatGPT the following question:</p><blockquote>“What is the easiest way to deploy a private LLM instance?”</blockquote><p>The response was two folds</p><ol><li><strong>Runs on my own machine / server</strong><br>→ No data leaves your environment</li><li><strong>Hosted by a provider but isolated for my org</strong><br>→ Private cloud / VPC / no training on my data</li></ol><p>I decided to focus on running the private LLM instance locally on my computer (meaning no data leaves your environment) and they recommended <a href="https://ollama.com/">https://ollama.com/</a></p><h3>Ollama</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*1i-O71qUf0PA1hBcZ3k4FA.png" /><figcaption><a href="https://ollama.com/">https://ollama.com/</a></figcaption></figure><p>So I navigated to Ollama’s website and downloaded it in my terminal. Installing it was very simple using the one liner code below.</p><pre>curl -fsSL https://ollama.com/install.sh | sh</pre><p>Running it was also a breeze.</p><pre>ollama run gemma3</pre><h4>Running locally</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VfwV9yRmko23oZfdRK6LoQ.png" /><figcaption>Explain AI agents like I’m 5</figcaption></figure><p>You can just chat with it in your terminal and it will respond accordingly, although the speed of the output depends on your computer specs.</p><h4>CURL request /api/generate</h4><p>You can also make a CURL request or API call to ollama.</p><p><strong>Input</strong></p><pre>curl http://localhost:11434/api/generate -d &#39;{<br>  &quot;model&quot;: &quot;gemma3&quot;,<br>  &quot;prompt&quot;: &quot;Explain payments orchestration in simple terms&quot;<br>}&#39;</pre><p><strong>Output</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*jr7a32QmvA8986IuvHSzxw.png" /><figcaption>Explain payments orchestration in simple terms</figcaption></figure><p>What was interesting about the response is that looked like it was streaming the output. It turns out that this is enabled by default according to the docs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LQBSugMYq2ojXbGnPcUybA.png" /><figcaption><a href="https://docs.ollama.com/api/streaming">https://docs.ollama.com/api/streaming</a></figcaption></figure><h4>CURL request /api/generate (stream: false)</h4><p>While streaming has its use case, let’s see how the response looks like if we disable it.</p><p><strong>Input</strong></p><pre>curl http://localhost:11434/api/generate -d &#39;{<br>  &quot;model&quot;: &quot;gemma3&quot;,<br>  &quot;prompt&quot;: &quot;Explain payments orchestration in simple terms&quot;,<br>  &quot;stream&quot;: false<br>}&#39;</pre><p><strong>Output</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxWVaFO3xjjRWV7IswvN9w.png" /><figcaption>Explain payments orchestration in simple terms; stream: false</figcaption></figure><p>Nice! Although I am not sure what the long array of context is (the docs doesn’t provide any explaination for it.</p><h4>When to use streaming vs non-streaming</h4><p>What the docs does provide, however, is an explanation on when to use streaming vs non streaming.</p><blockquote><strong><em>Streaming (default):</em></strong></blockquote><blockquote>- Real-time response generation</blockquote><blockquote>- Lower perceived latency</blockquote><blockquote>- Better for long generations</blockquote><blockquote><strong><em>Non-streaming:</em></strong></blockquote><blockquote>- Simpler to process</blockquote><blockquote>- Better for short responses, or structured outputs</blockquote><blockquote>- Easier to handle in some applications</blockquote><h4>Python library</h4><p>Ollama also supports Python! <a href="https://github.com/ollama/ollama-python">https://github.com/ollama/ollama-python</a></p><p>Installing it is pretty straight forward with pip install ollama .</p><p>Running the sample code also returned a nice response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z03Z0r3Eok0ank7fkPjFog.png" /><figcaption>Input/Output Why is the sky blue?</figcaption></figure><h4>Models</h4><p>Ollama supports a wide range of open-source models (cloud, embedding, vision, tools, thinking) and exposes them through an easy to use API, which makes integration into existing applications seamless. Moreover, it is super simple downloading models with the command ollama pull &lt;model&gt; reducing infrastructure complexity while allowing developers to switch models quickly for different tasks.</p><p>Let’s try using a vision model.</p><h4>Python upload image</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZNFXtk9JDHA7rWlzYtMiSA.png" /><figcaption><a href="https://ollama.com/library/llava-phi3">https://ollama.com/library/llava-phi3</a></figcaption></figure><p>I searched for a small vision model and pulled it with the CLI command above. Then I ran the code in Python against a sample invoice image that I generated with Nano Banana.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jEjRDvr4guZ0vF4KYoaPBw.png" /><figcaption>Prompt: create a sample invoice</figcaption></figure><h4>Input / Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PTKkN7vJBQFtPz3o6gwRvQ.png" /><figcaption>Prompt: Describe what you see in this image</figcaption></figure><h3>Closing Thoughts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wW8niqnHE6-B_ROr" /><figcaption>Photo by <a href="https://unsplash.com/@davacorp?utm_source=medium&amp;utm_medium=referral">DAVIS VARGAS</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Private LLMs let you get the benefits of GenAI without handing over your most sensitive data. Tools like Ollama make local experimentation easy, but the bigger win will come when we build the agentic infrastructure that safely connects private intelligence to commerce and finance.</p><p>With that being said, running AI locally is only one piece of the puzzle. The harder problem right now is integration or connecting models to merchant catalogs, payment rails, bank APIs and identity systems in a way that’s secure, auditable, and consumer friendly. There’s a new layer waiting to be built that can safely handle connections between private personal AIs and the commerce stack, similar to the same way Stripe abstracted payments. Until that layer matures, we can expect most consumer use cases to require engineering work to wire things together.</p><p>From a cost perspective, running inference locally can lower token fees and keep sensitive queries off public networks, but it shifts costs to DevOps and integration engineering. For many teams the most practical path is hybrid where you can run sensitive ingestion, retrieval, and filtering locally while offloading heavy reasoning or peak load to vetted cloud endpoints inside private networks. That approach buys both privacy and scale.</p><p>If the goal is to give consumers powerful, personalized experiences without asking them to surrender control of their data, private LLMs are a vital step forward. They don’t solve every problem today, but they rebalance the power in the AI commerce stack, and that’s worth building toward.</p><p>— AI Commerce Guy</p><p><em>Note: This post is part of my 2026 commitment to publish 48 essays on AI Commerce. I’m learning in public — sharing how my thinking evolves as I explore this space with curiosity, discipline, and an open mind.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d53218f3229d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-commerce/15-protect-your-data-by-running-llms-locally-with-ollama-d53218f3229d">#15 Protect your Data by Running LLMs Locally with Ollama</a> was originally published in <a href="https://medium.com/ai-commerce">AI Commerce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>