← Back to blogYouTube Video

Published August 17, 2026

AI agents are just hype. Focus on reliability. - Automation Tip #4

Part 4 of 7 in Automation Tips

Can't play the video or having issues? Here's the direct link.

Summary

Reliable automations beat fancy AI agents, and I show how to build them by maximizing deterministic code and using LLMs only where real reasoning is required. Most people asking for an AI agent do not need one: LLMs hallucinate, need constant babysitting, and burn tokens, while many so-called reasoning tasks are just if-else logic in disguise. I walk through writing the process down step by step, skipping agent architecture, using a coding agent like Codex or Claude Code to write the deterministic code, and then iterating to replace LLM steps with traditional code as the workflow becomes clear. My browser-automation example: let Claude discover the workflow once, then rewrite it in Playwright or Puppeteer; scrape deterministically, then let an agent analyze the saved data. I land on adding as much determinism as possible and reducing reliance on LLMs.

Key takeaways

  • Write the entire process down step by step before automating it; if you don't understand each granular step, you can't automate it reliably.
  • Don't default to an AI agent—build a deterministic automation and make a direct LLM API call only for the specific reasoning steps that need it.
  • Use a coding agent like Codex or Claude Code to write the deterministic automation code for you instead of hand-writing everything.
  • Iterate toward determinism: once you see what the LLM is doing repeatedly, capture those steps in traditional code and shrink the LLM's role.
  • For browser automation, use Claude to discover the workflow once, then implement it in Playwright or Puppeteer so repeated runs cost zero LLM tokens.
  • Keep web scraping deterministic and save the data to JSON or a database; let an agent analyze the data afterward, not scrape it.
Read: AI agents vs workflows →When an AI agent is worth it, why most business automations should be workflows, and the math behind chaining agents.

Want an automation like this for your business?

I build AI automations and agents for small businesses. Book a free call and tell me what you'd like to automate, or see how I automated Mastersealer's quoting.

Description

Hey all, starting a new mini-series on my channel. Automation Tips. I've been building a lot of automations recently, both for myself and for other business owners. Unlike 99% of automations you see going viral on Twitter and IG that barely work beyond a demo, my automations are fast, reliable, and cheap. They don't cost $50k in LLM tokens because I know how to write efficient automations. They run fast. They have maximum deterministic capabilities so they're as reliable as possible. I've learned a lot after building these automations, and I'm gonna be sharing all of that in these mini tips. Hope that helps y'all in your own automation projects.

Transcript

Guys, welcome back to the automation tips series, where I am explaining to you a bunch of really useful automation tips you can apply to your AI agents and workflows, and not only make it much easier for you to automate different tasks, no matter how complicated they may be, but also make them much more reliable, so you don't have to constantly babysit some hallucinatory AI agent that keeps breaking your JSON output or whatever. This is probably tip three or four of the series. I don't know, I lost count. I've been recording all of these in one go. I don't know. This is probably tip three or four. And the tip is: reliable is better than fancy automations. Now let me explain. Modern AI models like LLMs are getting a lot of hype. Everyone wants an AI agent. Almost nobody actually needs an AI agent. I've automated some really complicated tasks, not just for myself, but for different various business clients as well. And let me tell you, almost none of them have needed an AI agent. In fact, even I myself have not needed an AI agent for a very long time. I built a ton of automations. I'm using LLMs in these automations, but I don't need an agent architecture at all. Why? Because most of my automations have deterministic elements, right? And I'm going to explain what that means. And I'm going to explain how my automations are so much more reliable than 99% of the ones you see on Twitter, on YouTube, on all of these other people that are advertising their fancy agents that work some of the time, not all of the time. Here's the big problem with LLMs, right? LLMs are hallucinatory, meaning they hallucinate bad output. They need constant babysitting because they hallucinate bad output. So you always need a human to review the LLM's output to make sure it's not, you know, producing something completely garbage. And because of both of those things, they are unreliable. You can't have an LLM running autonomously, making decisions, making changes in your systems and processes without having some sort of a human review step to make sure that everything is proceeding nicely and the LLM is not, you know, spouting garbage. And if that wasn't enough, these LLM tokens are extremely expensive as well, which is a huge problem, right? I've made videos on token maxing before, you know, all these different companies burning millions and millions of dollars on LLM tokens that accomplish nothing. Meta has burned almost $900 million, last I checked. Uber burned like, I don't know, three, four billion with a B, right? Billion dollars in just four months. So having all these LLMs doing all of these fancy tasks for us is just the horrible, the wrong approach, right? Not only is it really expensive and completely unnecessary, it hallucinates, it needs babysitting, it's unreliable. It's not something you can deploy on your machine and just let it run behind the scenes. It's something that needs constant babysitting and costs you millions of dollars. At that point, why not just do it yourself, right? So this is not the right approach in most cases. Now, LLMs do have their own benefits. When it comes to reasoning tasks, right? When you need to understand natural language, when you need to reason about things, when you need to, you know, do the reasoning kind of complex tasks, LLMs shine, right? This is where they are actually really useful. But a lot of reasoning, like you'd be surprised over here, a lot of reasoning tasks can be done with traditional code. Why? Because in my experience, when people describe a reasoning task to me, it is such a simple process that you could easily do it in a bunch of if statements. You wouldn't even need LLM reasoning because the reasoning involved is so simple. And most automations are like that. I'm not saying all of them are like this, but most of them are like this. And for the really complicated reasoning tasks, sure, you could use an LLM. But you'd be surprised how many of your reasoning tasks are just simple if-else statements in disguise, right? Like, don't forget, even before LLMs came out, we still had things like, I don't know, Siri in Apple and iOS, right? And Google Assistant in Android devices. And even before LLMs came out, these things were so frigging smart, right? You would think that they're using some sort of complicated AI, but really, it's just traditional code. So you'd be surprised how far you can get in what you would consider reasoning tasks. But really, it's just a bunch of FL statements, it's a bunch of traditional code, it's a bunch of deterministic operations that you're doing. And doing it this way is a lot more reliable than doing it with LLMs. So I'm not saying that LLMs are bad or that you can't use them at all. I'm saying they have their special place in an automation process alongside traditional code. The problem is that most new developers and most businesses and non-technical people, they don't understand just how much power there is in traditional code and automation tools before LLMs. So they're trying to do things with LLMs that traditional code can already do way cheaper, way more reliably, and way faster. So with all of that being said, here is the big meta. Here is the best way to create reliable automations that run fast. They're cheap to run. You can run them a hundred times a day and still not cost even a thousand dollars in LLM tokens. The first thing you need to do: write down the entire process step by step, so you understand all of it in really granular, really precise detail. Because if you don't write it down, you won't understand it. If you don't understand each step, you won't be able to automate it. Step two: don't try to build an AI agent. In 99% of the cases, you won't need an AI agent. What you need is a deterministic automation. By the way, when I say deterministic, it means that the automation is guaranteed to run the exact same way, no matter how many times you run it, no matter when you run it, right? Basically, if I run two plus two, it always needs to give me four, right? If you use traditional code, it's always going to give you four. If you use LLMs, it might give you four, it might give you four in double quotes, it might give you the letters F-O-U-R instead of the number four. Like, it's going to give you all kinds of different output, right, for the exact same prompt again and again. So it's not reliable. It's not deterministic. So don't try to build an AI agent. Like I said, 99% of people don't need one. Build a deterministic automation that only uses LLMs when reasoning is required, right? You can send an API call to OpenAI and then drop it. You can send an API call to whatever LLM provider you're using. You can pass in the prompts. You can get the output from there without having to build an AI agent, right? So build a reliable, deterministic automation filled with as much deterministic code as you can. That's going to make it really reliable. And in the really rare cases where you need reasoning, send an API call to the LLM, let it do the reasoning, grab the response, clean it up, and then use that in your automation pipeline. Now step three, because step two sounds like a lot of work. Step three is to use a coding agent to write all of this code for you. This is going to make you a hundred times faster. Nobody's asking you to write all of this deterministic code for your automation by hand, right? We don't do that anymore. Use an AI agent, use Cursor, Claude Code, Codex, whatever you want to use. I've been having really great results with Claude Code and Codex nowadays. And if you ask me which model to pick, I would just go with Codex and the latest models that they have over there, but use a coding agent. Use it to build the automation that you're trying to build, all right? Write the code for it. Now, step four is to add as much determinism as you possibly can into this whole automation pipeline, right? Meaning Python code, TypeScript code, Bash code, traditional code that is guaranteed to run the exact same way no matter how many times you run it. You're only going to invoke an LLM when you need the actual reasoning, when you need the complex reasoning that a large language model offers you. But for every other step, you're going to just fill it with as much determinism as you possibly can. I was going to say determination, but fill it with as much determinism as you possibly can. That's going to make your automations way more reliable. Now, a little caveat that you should probably know. In many cases, you don't necessarily know the full steps of the automation pipeline beforehand, so you can't figure out what steps to make deterministic and which steps are better off in the hands of an LLM or an agent, right? In those cases, feel free to use an LLM for those vague parts of the workflow. But once you run it a few times, you're probably going to notice that a lot of the work that the LLM is doing, you could probably capture it in a deterministic fashion, right? And so that's where the iteration or the feedback loop comes in, right? As you keep finding more and more ways to add deterministic code to the entire automation, you'll keep updating this automation process and keep adding more deterministic code to it until you're satisfied with the reliability score. And reliability score is just a fancy way of saying until you're satisfied with the reliability that this automation offers, right? A good example of this is, let's say, browser automation, right? And I'm going with this one because it's super popular. A lot of people are trying to do it, and a lot of people are doing it, I would say, wrong. Like, they're doing it in a wrong and inefficient way. So let me explain. Most people, when they're trying to automate a task on their browser, what they're going to do is they're just going to hand over control of their browser to Claude, right? They're going to give Claude a browser and just ask it to do the task and just let it run, right? Now, anything wrong with this? Right? When you're trying to automate a browser task for the first time, you probably don't know the exact workflow, right? And so using Claude to do this for you is completely fine. It's actually a really great way to figure out the exact workflow, right? But then, once you've done that and once you know the exact steps involved, you need to add determinism to it. You can't just run Claude a hundred times to do the exact same task again and again. That's a waste of LLM tokens. It's going to cost you a lot of money, and it's unreliable, and it needs constant babysitting. Why? Because we've already discussed somewhere over here, right here, the LLMs are unreliable, right? So here's what you do. Once you've figured out the workflow using Claude, right? You gave Claude access to your browser, and it executed the task perfectly, right? Now that you have the, now that you know exactly what the workflow is like, you can add deterministic steps to it. And the way you add determinism to browser automation is by using something like Playwright or Puppeteer. I use Playwright, which is a browser automation tool, right? And Playwright can grab a browser, grab an HTML page, scan its HTML, CSS, etc., and find the buttons it needs to click and all that, right? Once you figure out the workflow that you're trying to do with Claude, you can just ask it to write the entire automation in Playwright, and then you'll be using traditional code, deterministic code, to run the automation again and again, right? And that is such a better approach than having Claude run the entire thing manually again and again, right? So, a bit of a real-world example over here. I do a lot of web scraping, right? I've got a bunch of websites and platforms where I scrape a ton of data from, right? Because I'm too lazy to go in there and grab thousands of records by hand. I've got automations that do it for me, and I need to run these automations regularly, every day, every couple of days, maybe every week. If I ask Claude to do this for me once, that's one thing, right? I'm just trying to figure out the workflow. If I then ask it to run this every single day and grab thousands of records for me, I'm going to be paying huge bills in LLMs. I'm going to be paying Anthropic millions of dollars, which I don't have yet, all right? I'm still working on that. So this would be a horrible way to do this, right? But if I just ask Claude to write a Playwright automation for me in simple Python code that I can then run hundreds of times, thousands of times, and it costs me zero dollars after that, that's the right approach, right? And now here's an even better example, right? I'm using deterministic code to scrape all of this data, but what if I want to analyze it using an agent later, right? Well, I can keep the web scraping part completely deterministic, grab all of the data, save it in some JSON file or some database, and then I can have an agent analyze it there in the database or in the JSON file. I don't need an agent to scrape the data itself, right? So I'm still making as much of this whole process deterministic as much as possible and reducing the reliance on LLMs and non-deterministic and unreliable tools, right? And that's the big lesson over here. You want to add as much determinism as you possibly can into your automation. That's going to reduce your reliance on these unreliable and expensive LLMs, which are still very useful in reasoning tasks. Don't get me wrong. I don't want this to be a video where I'm just bashing on LLMs. They are extremely useful. I'm using them every day. I'm using them in so many different cases, but they have a place, right? They have a place in the automation pipeline, and that's when it comes to high-complex reasoning tasks. So that's the big lesson. Add as much determinism as you can into your automations. Use traditional code wherever possible, and just reduce the reliance that you have on LLMs, right? And if you do all of these things, your automations are going to be way more reliable. They're going to run correctly way more times. And depending on how well you do this, you could probably run the exact same automation a thousand times a day, which you probably don't need to do, but you could, without costing hundreds of thousands of dollars in LLM tokens. So, hope that helps. Subscribe to the channel if you haven't already, and you can get this kind of quality content every single day, every two days. I don't know, I don't have an upload schedule, but I upload pretty frequently. So subscribe, turn on the bell icon, and make sure you don't miss another video.

Share this article

Hassan Aziz pointing up

Dude, you’re at the bottom of my landing page.

Just book a call already if you’re that interested.

You scrolled all the way here.

Book a free call on Calendly