<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aashman Biyani on Medium]]></title>
        <description><![CDATA[Stories by Aashman Biyani on Medium]]></description>
        <link>https://medium.com/@biyaniaashman?source=rss-0c242d64a6ea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5XnTgTB8nJ37SOen</url>
            <title>Stories by Aashman Biyani on Medium</title>
            <link>https://medium.com/@biyaniaashman?source=rss-0c242d64a6ea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:02:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@biyaniaashman/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Dad Called Me a Failure. I Built His Replacement Instead.]]></title>
            <link>https://medium.com/gdg-vit/dad-called-me-a-failure-i-built-his-replacement-instead-d921723630d0?source=rss-0c242d64a6ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/d921723630d0</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Aashman Biyani]]></dc:creator>
            <pubDate>Sat, 17 Oct 2026 14:59:17 GMT</pubDate>
            <atom:updated>2026-10-17T15:52:11.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XdMNVxs9RceOQQoLkbg0ng.png" /></figure><p><em>A tea business, a pile of WhatsApp shorthand, and an AI on a short leash</em></p><p>This summer, I was supposed to be relaxing. Instead, I was fuming.</p><p>My dad had made up his mind. My <strong>CS degree</strong> was a waste of his money, and I was well on my way to becoming a disappointment. I decided to prove him wrong by going after the one thing he was proudest of. <strong>His <em>tea business.</em></strong></p><p>Turns out a decade of knowing exactly which supplier is lying about stock, which buyer pays late every single time, and which leaf grade actually matters isn’t something you pick up over a summer. So it was time to put my expensive degree to use. <em>Thus began the story of a son automating his father’s business.</em></p><h3>The riddle in the inbox</h3><p>Every order at the tea business I worked with used to show up like a coded message. A dealer would send something like <em>“NSK BP 250gm 2 bags, RR 1kg 3 bags”</em> on WhatsApp, and someone was <em>just supposed to get it</em>.</p><p>No punctuation. Usually no product name. No rate, ever. And “NSK,” “SK” and “Shri Kadak” are all the same tea, which nobody tells you on day one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*Zv4rXO3O7vWSkeyVWhkdSQ.jpeg" /><figcaption>Three names, one tea, all just yelling ‘you’re me!</figcaption></figure><p>“1 KG” could mean a pouch or a bag, depending on the product and honestly the dealer’s mood. Some lines just say “250gm 2 bags” with no tea named at all, because he’s ordered the same thing for years and assumes you remember. The rate works the same way. Everyone remembers it, right up until someone doesn’t.</p><h3>One employee, one very bad day</h3><p>None of the actual information was in the message. It was in one employee’s head, and the whole business was quietly betting on him never quitting or going on leave, and never once reading a 250 as a 50. <strong>That last one isn’t a small thing either.</strong></p><p>Get the number wrong, and the wrong goods go on a truck; by evening, a dealer is on the phone and not happy with you. Remember that 250 and 50, by the way. It comes back later, and that time it’s my fault.</p><h3>Three attempts, two lessons</h3><p>The goal was never really an order taker. I wanted the judgment out of that one person’s head and into something that wouldn’t leave the building.</p><p>My first try lived inside WhatsApp itself, through a WhatsApp Business tool called <a href="https://www.wati.io/"><strong>Wati.io</strong></a>. This tool is built for broadcasts and canned replies, not for slowly reading one messy order, so there was <em>no room to pause and fix anything before it went live</em>.</p><p>The second was a rented no-code pipeline on <a href="https://www.make.com/"><strong>Make.com</strong></a> that pushed messages into Google Sheets. It worked. But every business rule lived on someone else’s platform. The bags versus kilos logic was miserable to build by dragging boxes around. And the business was paying for it every month.</p><p>The third version the business <em>actually owns</em>. It’s a web app built on <strong>Google Apps Script</strong>, sitting on top of<strong> Google Sheets</strong>, so there are no servers to run and nothing to install. A staff member pastes the order in, checks it, and every rule lives in code I can open and change whenever I want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YnDJioN3A2PoKDsILdrlng.png" /><figcaption>The brain gets bigger. The bill gets smaller.</figcaption></figure><h3>Following one order through the machine</h3><p>The easiest way to explain it is to follow one message through. Say a dealer sends:</p><p><em>“Goyal Traders Hindaun, 250gm 2 bags”</em></p><p>Short line, three problems. No brand, so which tea? The shop name isn’t what the accounts call him. And the number is exactly the kind someone misreads at the end of a long day. Everything I built is there to deal with one of those.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zO0rHbk3R18xJauA2DavDw.png" /><figcaption>The whole brain, exposed.</figcaption></figure><h3>Stop one: Claude reads it; my code checks Claude</h3><p>The pasted text goes to <strong>Claude</strong> through Anthropic’s API, called straight from Apps Script. The prompt behind it is the heart of what I call the <strong>Order Agent</strong>, and I’ve rewritten it more times than I’d like to admit. It lists every alias (NSK, SHRI and SK all mean Shri Kadak; DUP is Divine UP, RR is Royal Rajasthani) and every valid pack size. A bag and a kilo are never the same thing, so the unit always stays exactly as the dealer wrote it. Every line becomes its own entry, and the dealer’s original words get saved next to it in a field called rawText.</p><p>Then comes the list of things it’s not allowed to do. Don’t invent a pack size. Don’t guess a product. If you’re not sure, say “unknown.” What comes back is meant to be clean JSON: customer, variant, type, quantity, rate.</p><p>That’s not always clean in practice. Claude used to wrap its JSON in markdown fences, which broke the parser. Now the code strips those fences and keeps only what’s between the first { and the last }. Only the actual JSON gets through, nothing else.</p><p>The bigger problem is that AI rarely says <em>I’m not sure</em>. It sounds just as confident when it’s wrong. So once the JSON is parsed, one line of my own code checks Claude’s answer against what the dealer actually typed:</p><pre>if (!/shri|kadak|nsk|\bsk\b|dup|divine|\brr\b|royal|amchi|loose/i<br>   .test(o.rawText || &#39;&#39;)) {<br>  enriched.variant = &#39;UNKNOWN&#39;;<br>}</pre><p>The Goyal Traders line doesn’t mention a brand anywhere, so whatever Claude guessed gets thrown out and the variant goes back to <strong>“unknown.”</strong> The AI is there to speed things up, but I <strong>never let it make the final call alone</strong>. If it guesses wrong here, someone in the godown packs the wrong tea.</p><h3>Stop two: who exactly is “Goyal Traders Hindaun”?</h3><p>Then there’s the name. The business keeps its accounts in <a href="https://tallysolutions.com/">Tally</a>, the accounting software a huge number of small and mid-sized businesses in India run on. Every dealer’s ledger lives there: outstanding dues, payment history, and one official registered name.</p><p>They never had a proper CRM (Customer Relationship Management), a software that remembers everything about a customer in one place: what they ordered, what they owe, how often they come back. Tally was already doing half the job, so rather than make everyone maintain two systems, I built the order flow around <strong>the one source of truth they already trusted</strong>.</p><p>Matching the name happens in two passes. First, the code drops filler words like “traders,” “kirana” and “store,” takes the longest word left (here, “Goyal”), and asks Tally only for ledgers containing it. Then it scores each of those names against the WhatsApp name, word by word, and only commits if every word but one matches:</p><pre>names.forEach(function(n){<br>var lw = n.toLowerCase().split(/\s+/).filter(x =&gt; x.length &gt;= 2);<br>var sc = 0;<br>words.forEach(w =&gt; { if (lw.some(l =&gt; l.indexOf(w) !== -1)) sc++; });<br>if (sc &gt; bs) { bs = sc; best = n; }<br>});<br>return (bs &gt;= words.length - 1 &amp;&amp; words.length &gt;= 2) ? best : null;</pre><pre>/*If the overlap is too weak, it returns nothing and just hands the order <br>to a person, instead of quietly billing the wrong customer.*/</pre><p>Getting to Tally at all was annoying. <strong>Tally runs locally</strong>, on one office computer with no public web address, so a cloud app can’t reach it on its own. I set up an <a href="https://ngrok.com/"><strong>Ngrok </strong></a>tunnel on that computer. Think of it as one narrow, locked doorway to the internet. It forwards requests straight to Tally’s data port. Nothing else gets through.</p><p>Through that doorway, the app sends Tally small XML queries written in Tally’s own format, one question at a time. The first query pulls the dealer’s closing balance, so his dues show up before anything ships. The second grabs his recent sales vouchers. The third checks his last bill for the trade discount and works it out per kilo. The app reads back only what it asked for.</p><h3>Stop three: what did he actually mean?</h3><p>Now we know who he is, but we still don’t know which tea. So the Agent takes those sales vouchers, sorts them newest first and keeps his <strong>last three orders</strong>. It looks for what he usually buys in 250gm and fills that in, along with the last rate he paid. Anything it fills in gets a small label on screen saying which Tally order it came from, marked <em>inferred</em>, so the manager knows exactly what to double-check.</p><p>Every approved order also gets saved as JSON in a sheet called LAST ORDERS. For the regulars who order the same thing every single week, there’s a <strong>Repeat Previous Order</strong> button that reads it straight back. <strong>Nothing to retype, no message to parse.</strong></p><pre>if (String(data[i][0]).trim().toLowerCase() === pl) {<br>return { party: data[i][0], batchNo: data[i][1],<br>lineItems: JSON.parse(data[i][3]) };<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZWZonMcWAkiJqs5GiJgCA.png" /><figcaption>The Order Agent</figcaption></figure><h3>Where the tea actually gets made</h3><p>An order only matters if the stock is actually there, which is where the <strong>Blending System</strong> comes in. The business doesn’t just resell tea, it blends several raw teas into its own products, split into two categories called BP and DUST. This is another Apps Script web app. It tracks raw tea stock in the godown, logs every blend’s recipe, and keeps a running count of what’s left.</p><p>The tricky part is the master sheet. It’s <em>something the owner edits by hand whenever he feels like it</em>. He’ll add a tea, delete one, rename a label at eleven at night. If I’d hardcoded even one row number, a single edit would break the whole app by morning. So every function reads the sheet fresh each time and sorts every row into tea, divider, fixed row or total, just from what’s written in it:</p><pre>var aName = String(data[i][0] || &#39;&#39;).trim().toUpperCase();<br>var dName = String(data[i][3] || &#39;&#39;).trim().toUpperCase();<br>if (aName.indexOf(&quot;TOTAL&quot;) === 0 || dName.indexOf(&quot;TOTAL&quot;) === 0) {<br>layout.totalRow = rowNum;<br>break;<br>}</pre><p>It’s a little slower, but the app never assumes the sheet looks the way it did yesterday.</p><p>Stock works on the same idea. Each tea is identified by its name, grade and invoice number together, and carries the date its bags were last counted. When the tracker adds up usage, it skips any blend dated before that, then splits the rest by which product it went into: RR, DUP, SK or Loose. What’s left is just opening bags minus all of that. A new lot arrives, the date moves forward, and last week’s usage stops counting against it on its own.</p><p>One more real-world quirk. A BP blend sometimes borrows a bit of DUST tea, even though they’re separate stocks. So when you build a blend, the app also offers teas from the other category, each tagged with where it really belongs, so the right stock gets reduced afterwards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*l0lfy6sg3viCG4_Bha5KWQ.jpeg" /><figcaption>The Blending System</figcaption></figure><h3>Closing the loop with the dealer</h3><p>The last piece is a <strong>messaging agent</strong> that drafts Goyal Traders his confirmation in his own shorthand. This is the one I was most nervous about, so it can’t send anything until a person ticks a box:</p><pre>if (!approved || status === &#39;Sent&#39; || active === &#39;no&#39;) continue;<br>if (primary === &#39;Contact number not mentioned&#39;) continue;</pre><p>Without that check, you’ve got a bot texting customers on its own. With it, the bot gets things ready and waits for someone to say yes. It skips anyone inactive or without a phone number. And once it nudges a quiet dealer, it leaves them alone for ten days. A helpful reminder sent every single day is just spam.</p><p>For a business like this, <em>that’s kind of the whole point.</em></p><h3>Back to the riddle</h3><p>So, <em>“NSK BP 250gm 2 bags”</em>. Now Claude reads it, my code checks Claude, Tally confirms who sent it through the tunnel, his last three orders fill the gaps, and it stays a 250. A verified sheet lands in the right folder, and the confirmation waits until someone ticks the box.</p><p>A typical order takes about <strong>60%</strong> less effort now. Everything runs on tools the business owns outright, with no monthly meter running somewhere and<strong> no third party holding the keys to its own operation</strong>.</p><p>If you want to poke around, the code is public: the <a href="https://github.com/AashmanBiyani08/Pushaan_OrderAgent">Order Agent</a> and the <a href="https://github.com/AashmanBiyani08/pushaan-blending-system">Blending System</a>.</p><h3>It was never really about tea</h3><p>Take the tea out of this, and you’ll see the same thing in a lot of businesses. Somewhere in almost every company there’s one person who’s quietly <em>become</em> the system. That knowledge lives only in one person’s head. The day they leave, nobody even knows what they knew.</p><p>The usual advice was to buy rigid software and bend everything around it, which mostly didn’t work, because the messy habits <em>were</em> the business. What’s different now is that AI lets the software bend to the people instead. You don’t need dealers to stop texting in shorthand anymore. You can just teach the system to read it.</p><p>If your business has a corner where “only Rajesh knows how to do that,” and most have about five, the hard part’s already done. Someone figured it out. <strong>All that’s left is turning what Rajesh knows into something the business owns too.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*yKblJqY294vaB5XUmDGqbA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d921723630d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gdg-vit/dad-called-me-a-failure-i-built-his-replacement-instead-d921723630d0">Dad Called Me a Failure. I Built His Replacement Instead.</a> was originally published in <a href="https://medium.com/gdg-vit">GDG VIT Vellore</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>