Minds

How do AI agents talk to each other?

AI agents talk by sending messages in an agreed format: find the other agent, say who is asking, send a request, get an answer back. One exchange, step by step.

By Michael McIntyre ยท Updated

AI agents talk to each other by sending messages over the internet in a format both sides have agreed on. One agent sends a request. The other works on it and sends back an answer, a question of its own, or a progress update. Then each agent reports to the person or organization it works for. The messages are mostly ordinary text with some labeled data attached.

How do AI agents talk to each other, step by step?

Take a small errand. Your bike has a bent rear wheel and you want it fixed by Friday. You tell your AI agent to find out whether the local bike shop can do it. The shop has an agent of its own that answers questions about repairs.

There is more than one way to build what happens next. The steps below follow A2A, a published protocol for agents, because its documentation names each part in the open. The bike shop is our example, and the terms are A2A's.

Step 1: find the other agent and read its card

Your agent first needs to know where the shop's agent is and what it does. In A2A, an agent publishes an Agent Card. The documentation says the card "acts as a digital business card" and lists the agent's identity, the address where it can be reached, its skills, and what proof it requires from a caller.

So before a word is exchanged, your agent can read that this one handles repair bookings and quotes, and how to contact it.

Step 2: say who is asking

The card states what a caller must present. The documentation says credentials such as tokens or keys are typically passed alongside the message, separate from its content. In everyday terms this is the moment you give your name and account number before the person on the phone will discuss anything.

Step 3: send the first message

Now your agent sends a message. A2A defines a message as "a single turn of communication between a client and an agent." Each message is made of parts, and a part holds one of three things: text, a file, or structured data.

For the bike errand, the message might carry all three:

Step 4: the other agent works, and may ask back

The shop's agent now has a choice. According to the documentation, it can reply at once with a message, or it can open a task when the work will take a while. A task is a "stateful unit of work" with its own ID and a lifecycle, which means both sides can refer to it later, the way you would quote a ticket number.

The reply does not have to be the final answer. The shop's agent might ask, "Is it a disc brake wheel?" Your agent answers, and the exchange goes on. This back-and-forth is what separates talking to an agent from pressing a button on a tool.

For slow jobs, the documentation describes three ways to wait: ask again every so often, keep a connection open and receive updates as they happen, or leave a return address and get notified. Those are the agent versions of calling back later, staying on the line, and "we'll text you when it's ready."

Step 5: the result comes back

When the work is done, the answer arrives as a message or as what A2A calls an artifact, a "tangible output generated by an agent during a task," such as a document. Here it could be a short quote: the price, the pickup day, and a note that the tire may need replacing too.

Step 6: your agent reports to you

The last step is outside the protocol. Your agent tells you what it found, in your own app, in plain words: the shop can do it by Thursday, here is the price, do you want to book?

What each agent can and cannot see

Neither agent looks inside the other. The A2A documentation says that to the caller, the remote agent is "an opaque (black-box) system: its internal workings, memory, and tools stay hidden."

That is like calling the shop. You hear the answer, and you do not see the back room. It also means your agent cannot check how an answer was produced. It can only weigh what it was told.

Is it always done this way?

No. A2A is one published protocol, and its overview describes it as a way for agents from different developers and organizations to work together. A network of agents inside a single product can use a format of its own. Whatever the format, the same six moves tend to appear: find, identify, ask, work, answer, report.

For the names of the other protocols and what each connects, see the plain-English map of AI agent protocols. On whether agents use words at all, see do AI agents have their own language.

Where a conversation between agents can go wrong

Each step has its own way of failing.

AI agent security risks for everyday users goes through these, and the guide to agent-to-agent communication sets the exchange in its wider context.

How this looks in Minds

Minds is built to be the best agent at drafting messages and knowing what to say to your friends. Your Mind can talk with other people's Minds when it is relevant.

The report step is stated as a design goal. Your Mind is designed to bring you answers to what you asked, and to bring you what a conversation it started with another Mind turns up when that changes what you know or could do.

Two of the failures above have a counterpart in Minds. Content from other people or websites may contain instructions designed to mislead AI assistants. A Mind is designed not to treat another Mind repeating an idea as independent confirmation.

Sources

  1. Core Concepts and Components in A2A, A2A Protocol, accessed
  2. What is A2A?, A2A Protocol, accessed

Related