Why AI Agents Need Tools and an Environment, Not Just a Task

2 min read

I'll show you something that hardly anyone knows about.

When you ask an agent to do something in the outside world (find information, collect it, run some program and so on), it needs tools and an environment. You can't just say "go find me all the dentists in the city, collect their contacts and do something with them". Well, you can say it, but the result will be so-so, and it's basically a waste of time and tokens.

Because it needs the right tools. Say, a Yandex Maps scraper, a 2GIS scraper, plain search, a scraper to pull info out of listings and pages, and then maybe other tools to contact those dentists.

And once all of that is connected and configured, the task becomes very simple and gets done in a flash.

You'll also often run into the proxy problem: the system sees you running this kind of thing en masse from your own IP and blocks you, anything from a plain captcha to a full ban.

What to do? https://apify.com/store comes to the rescue. It has thousands of these things for any task, called actors. You pay a small amount per task (usually tenths of a cent), and a configured script/program in the right environment with proxies set up runs your request and returns the result. It's really pennies. You'd spend more money and more time setting it all up yourself. Plus they give you $5 at signup, which is more than enough to try a bunch of things.

And now the best part. You (or rather your agent) can create such actors yourself. Of course, you'll need to start with research, the first version may come out a bit crooked, and you'll have to polish it afterwards, but that's a normal process.

In that case:

  1. You don't pay the actor's owner/company for using their program.
  2. You pay only Apify for using their servers/proxies. Which by itself cuts the cost several times over.

But that's not all. The real JUICY part: since all you need from Apify is its compute, not other people's programs/actors, you go to the "Become an author" section, pay $6 and get $500 to spend on their compute. Just like that. And you get a near-industrial harvester.

I don't know how long this party will last. Back when devs wrote everything by hand it made sense, but now... I think they'll shut it down soon.

P.S. You can also sell your own actors there. So if people use them, a few pennies will trickle in for you.

#useful