How an AI agent builds infrastructure you own

"An AI agent built it" can sound like magic or like a gamble. It is neither. It is a clear process, with a person setting it up and the business approving every release.

3 min read
On this page7 sections
  1. 01Step 1: The brief
  2. 02Step 2: The build loop
  3. 03Step 3: Every change saved
  4. 04Step 4: A private preview, then your approval
  5. 05Step 5: The handover
  6. 06What gets built
  7. 07Your AI assistant can use the admin portal too

In short

  • The business gives a brief. The agent works from it as a written plan.
  • The agent plans, codes, tests and deploys to a private preview, and repeats until every check passes.
  • The business approves a private preview before anything goes live, then the code, hosting and data are handed over.

This is the process behind what I build: agentic AI systems and the infrastructure they run on, built by an AI agent, the Infrastructure Agent, on the business's own accounts. After handover, it keeps building and changing every layer. My role is to build the infrastructure, set up the AI agents and hand it all over.

Step 1: The brief

Every build starts with a written brief from the business: goals and offers, how the business runs today (where leads, clients, content and projects live), who buys and who needs a login, and the tools it wants to stop renting. The agent works from this as its plan. A clear brief is the biggest single factor in a good result, which is why it gets real time and attention.

Step 2: The build loop

The agent works in a loop:

  1. Plan the next piece of work from the brief.
  2. Code it, writing every file.
  3. Test it, including opening its own pages in a browser on phone and desktop sizes.
  4. Deploy it to a private preview.

When a check fails, it fixes the problem and runs the checks again, until they all pass. Nobody sees a half-finished result.

Step 3: Every change saved

Each change is saved to the business's own code repository as a version, with a note on what changed and why. If something needs to be undone, any earlier version can be restored. This is also what makes the handover real: the full history goes with the code.

Step 4: A private preview, then your approval

A private preview is built for every version. The business reviews it like the real thing, because it is: a working copy of its infrastructure. Nothing goes live without the business's OK.

Step 5: The handover

At the end, everything is handed over: the code in the business's own repository, the hosting on its own account, the data in its database, the keys and passwords, and written documentation in plain language. There is no lock-in. Any developer, or an AI agent, can keep building on it.

What gets built

The agents come first: the Infrastructure Agent, which builds and changes every layer and takes any work no specialist agent owns; the operations agents in the admin portal, where the Coordinator Agent hands each job to the specialist agent that owns it (the Sales Agent for your leads and clients, the Marketing Agent, the Content Creation Agent, the SEO Agent and the Project Management Agent); the Visitor Agent on the website; and the Member Agent in the member portal. They run on three layers on one foundation, all on the business's own hosting account:

  • Website for your visitors, built on the foundations search engines read.
  • Member portal for your customers. Each customer logs in and finds what they paid for.
  • Admin portal for you, the command center, built around how you work.

Underneath, one foundation: a database, file storage, email from the business's own address, payments through its own payment account, and user accounts. When someone buys on the website, a flow opens their access in the member portal and adds them to the CRM in the admin portal, at the same moment. Flows are fixed automation, not agents.

Your AI assistant can use the admin portal too

If the business wants, the admin portal also gets a standard connection that AI assistants use to work with software (called MCP). Then an AI assistant the team already uses, outside the business's own agents, can look up leads and clients, check sales or see how the email campaigns did, with only the access the business allows, and the business can turn it off.

Achraf Ouahab

Founder of ACHRAF OUAHAB MEDIA LLC, which builds agentic AI systems that scale business operations on infrastructure the business owns.

About the founder →

Start here

Let AI agents run your operations, on infrastructure you own.