Agents Talking to Agents
When you are working on a group project, you talk to your teammates. 'Hey, I finished the introduction — want to read it?' 'Can you send me the list of facts you found?' 'I think we should change this part.' Without talking to each other, a team falls apart. AI agents need to communicate too. They send each other short messages to share what they know, ask for something they need, or report that a job is done. Today we will explore how agents talk to each other and why good communication makes a team work so much better!
Why Agents Need to Communicate
Imagine two agents working on a recipe. Agent Ingredients collects a list of everything needed to make soup. Agent Instructions writes the steps to make the soup. If they never talk to each other, Agent Instructions might write 'add carrots' — but what if Agent Ingredients did not put carrots on the list? The recipe would be wrong! Good communication fixes this. Agent Ingredients finishes the list and sends it to Agent Instructions as a message: here is everything we have. Now Agent Instructions writes steps that match the actual ingredients. The recipe is correct because the agents shared information. Communication between agents is how they stay on the same page.
Agents send each other messages to share information, report when they are done, ask for what they need, and warn about problems. Without messages, a team of agents would be like a team of players who never talk to each other!
What kinds of messages do agents send? There are four main types. Information messages: one agent shares data it gathered so another agent can use it. 'Here is the temperature for tomorrow: 72 degrees.' Request messages: one agent asks another for something it needs. 'Please send me the list of ingredients when you are ready.' Status messages: one agent tells the team (or the leader) that it has finished. 'Task complete! The article is ready for proofreading.' Alert messages: one agent warns about a problem. 'I could not find any photos of the event — the photo database is empty.' Each type of message plays a different role in keeping the team moving forward.
Fill in the correct type of message for each situation.
Keeping Messages Clear and Short
Good agent messages are clear and to the point. They do not include extra words that could cause confusion. They say exactly what needs to be said and nothing more. Think of it like sending a text message to a friend at school. You would not write a three-page letter. You would write something short: 'Done with my part. Check the shared notebook.' That is enough. Agents work the same way. A status message might be just a few words: Task complete — article ready. An information message might be a single number or a short list. Clear and short wins every time.
Match each message an agent sends to the correct type of message it is.
Terms
Definitions
Drag terms onto their definitions, or click a term then click a definition to match.
When you work in a group, you probably use hand signals, whispers, notes, or a shared document to stay in sync. Agents use digital messages. The medium is different, but the purpose is exactly the same: stay coordinated!
Agent Sort finishes organizing a list and sends a note to Agent Report saying 'Sorted list ready — 38 names.' What type of message is this?
Why is it important for agents to keep their messages clear and short?
Write Agent Messages!
- Pretend you are an agent on a team making a class newspaper.
- Your job (Agent Photo) is to find a good photo to go with each article. Agent Write just sent you the three articles to illustrate.
- Write four messages you might send or receive:
- 1. A request message asking Agent Write for more details about article topic number 2.
- 2. A status message telling the leader agent that you found photos for articles 1 and 3.
- 3. An alert message warning that you cannot find a photo for article 2 — the image library is empty.
- 4. An information message sending the photo filenames for articles 1 and 3 to Agent Layout.
- Keep each message to two sentences or fewer. Read them back and check: are they clear? Would another agent know exactly what to do after reading them?