Mhonn YbañezSRE, DevOps, AI Engineer
 Today I Learned
Read the full page

How do AI systems interact with the outside world?

Posted
Tags
ai, llm, agents

A model on its own only knows its training data. To reach anything else it reads from a knowledge base (RAG), calls software (APIs, MCP, A2A), uses screens the way people do (computer use), or acts in the physical world (robotics). I see three routes: software, human systems, and the physical world.

Yesterday I ended my MCP vs UTCP post with a note to myself: MCP and UTCP are only two of the ways an AI reaches past its training data. Today I wanted to see the whole map.

The question I had

On its own, a model only knows what it learned in training. So how do AI systems actually interact with the outside world, and what are all the ways they do it?

What I found

RAG: looking things up

RAG (retrieval-augmented generation) is how an AI answers from information it was never trained on. Documents get split into chunks and indexed ahead of time, usually so they can be searched by meaning. When a question comes in, the app finds the most relevant chunks and puts them into the context window next to the question. The model then answers from what it was handed.

It's read only. RAG is for knowing, not doing. And the information is only as fresh as the last time it was indexed, which is why I think of it as the route for mostly static knowledge: docs, policies, past tickets.

APIs: calling software directly

When the AI needs live data or needs to take an action, it uses an API. Check the weather, look up an order, create a ticket. As I learned in my harness engineering post, the model never makes the call itself. It asks for a tool, and the app around it calls the API.

The system on the other end is deterministic: the same request gets the same behavior every time. That's the strength. The catch is that a developer has to wire up each API for each app by hand.

MCP: APIs packaged for AI

MCP (Model Context Protocol) is a standard way to wrap a service's API so any AI app that speaks MCP can find its tools and use them. Instead of wiring the same API into every app separately, someone builds one MCP server and every MCP client can plug in. I covered it, and its newer alternative UTCP, in yesterday's post.

A2A: agents talking to agents

A2A (Agent2Agent) is newer. Google announced it in April 2025, and it's now an open project under the Linux Foundation. Where MCP connects an agent to tools, A2A connects an agent to other agents.

Each agent publishes an "Agent Card" that says what it can do. Another agent reads the card and hands it a task, then gets the result back. This works inside one company, like a planning agent handing work to a research agent, and across companies, like my travel agent asking an airline's agent to book a seat.

Computer use: working the screen like a person

Some systems have no API at all. For those, there's computer use: the AI looks at a screenshot, decides what to do, and replies with mouse and keyboard actions. Click here, type this, scroll down. Then it takes another screenshot and repeats.

It reminded me of Playwright, but there's a key difference. Playwright on its own runs a script a developer wrote ahead of time. With computer use, the AI decides each step from what it sees. That makes it flexible, but also the slowest and most fragile route. It makes the most sense when there's no API to call.

Embodiment: AI in the physical world

The last route is out of my scope, but it completes the picture. Embodied AI, also called physical AI, puts a model inside something that moves: a robot arm, a warehouse robot, a self-driving car. It sees through cameras and sensors, and its "actions" are real movements instead of API calls.

Side by side

What it reachesReads or actsExampleTrade-off
RAGA pre-indexed knowledge baseReadsAnswering from company docsOnly as fresh as the last index
APIsOne piece of softwareBothLooking up an orderWired up by hand, per app
MCPAny service with an MCP serverBothCreating an issue from a chatOne more thing to build and run
A2AOther AI agentsBothHanding a task to a specialist agentNew, and only works if both sides speak it
Computer useApps and websites made for peopleBothFilling in a web formSlow and breaks when the screen changes
EmbodimentThe physical worldActsA self-driving carMistakes have real-world consequences

Where my epiphany came in

Once I lined them up, I saw that they fall into three routes:

  1. AI to software systems. RAG, APIs, MCP, and A2A. The AI talks to other software, or to other AI, in a language built for machines.
  2. AI to human systems. Computer use. The AI works with the same screens, buttons, and forms that people use, because not everything was built with an API.
  3. AI to the physical world. Embodiment. The AI leaves the screen entirely and moves things.

Each route goes further from where AI is comfortable. Software speaks the AI's language. Human systems were built for eyes and hands. The physical world has no undo button.

Takeaway

AI is a powerful tool, and it's reaching out along all three routes at once. My work right now lives in the first two, software systems and human systems. I'm excited to keep learning and to build projects there that, in the end, help improve quality of life for everyone.