Skip to content
← All Posts

Stop Asking AI for Answers. Ask It to Build the Machine.

NM
Nicholas Manderfield
AIautomationworkflows

Most teams use AI the same way: type a prompt, get a result, copy-paste it somewhere. When the result isn't right, they tweak the prompt and try again. Rinse and repeat.

This works fine for one-off questions. It falls apart the moment you need the same kind of output more than once.

The Vending Machine Problem

Here's a real example. Say you need to generate Terraform scripts from a spreadsheet of infrastructure configs and a base template. You could prompt an AI model to do it directly — paste in the spreadsheet, paste in the template, ask for the output.

It'll get you 80% of the way there. Then you'll spend the next hour fixing the other 20%. And tomorrow, when you get a new spreadsheet, you'll do it all over again.

Every run is a fresh roll of the dice. Different errors each time. No way to debug systematically because there's no system — just a conversation.

Build the Machine Instead

The alternative: ask the AI to write a script that does the transformation. Not "generate these Terraform files" but "write me a Python script that reads this spreadsheet format and produces Terraform files from this template."

Now you have something tangible. A tool you can run, test, and fix once. When it breaks, the bug is in the code — consistent and reproducible, not random hallucination drift.

This is composability — the engineering principle that small, reusable pieces beat monolithic one-shot outputs every time. One good script replaces a hundred prompt sessions.

When This Matters

Not every AI interaction needs this treatment. Asking ChatGPT to summarize an article? Just ask. But for anything involving:

  • Repeatable transformations — same input shape, different data each time
  • Structured output — config files, database migrations, API payloads
  • Precision work — where "close enough" creates real problems downstream

...you're better off building the machine than asking for the output.

What Changes

When you shift from "do this for me" to "build me the thing that does this," a few things happen:

You can actually debug. A script has logic you can trace. A prompt-response is a black box.

You stop repeating yourself. The tool works tomorrow, next week, and next quarter. The prompt conversation is gone the moment you close the tab.

You understand what's happening. Reading code your AI collaborator wrote teaches you more than reading output it generated. You see the logic, the edge cases it handled (or didn't), the assumptions baked in.

The Takeaway

AI is most useful when it builds things that outlast the conversation. Not answers — systems. Small ones, usually. A script, a workflow, a transformation pipeline. Something you can run again without opening a chat window.

That's the difference between using AI as a search engine and using it as an engineering partner. One gives you fish. The other builds fishing rods.