← Back to Agent

Agent Communication

Inter-agent messaging system — view message history, manage the inbox, send messages, and visualize communication topology.

Contents

Overview

For Everyone

The Communication tab is your agent's messaging center. Agents don't work in isolation — they need to coordinate with each other. This tab shows all the messages an agent has sent and received, lets you send messages on its behalf, and shows a map of which agents talk to each other the most.

For Developers

Three endpoints power this section:

Sending a message calls POST /messages with fromAgentId, toAgentId, orgId, subject, content, and priority. Marking as read uses POST /messages/:id/read.

How It Works

  1. Load — All three data sources (messages, inbox, topology) are fetched on mount.
  2. Browse — Use the three tabs to switch views. "All Messages" shows full history, "Inbox" shows unread messages, "Topology" shows communication partners.
  3. Send — Click "Send Message" to open a modal. Select a recipient agent, write a subject and content, choose a priority, and send.
  4. Read — In the Inbox tab, unread messages appear in bold. Click "Mark Read" to acknowledge them.
  5. Refresh — Refreshes only the current tab's data source.

Key Concepts

All Messages Tab

A complete chronological history of messages involving this agent. Each row shows:

Inbox Tab

Shows messages awaiting this agent's attention. Key differences from All Messages:

Topology Tab

A visual overview of this agent's communication partners. For each agent this one communicates with, you see:

The topology is derived from the graph edges returned by the topology API. Edges where this agent is the from node count as sent; edges where this agent is the to node count as received.

Sending Messages

The Send Message modal includes:

After sending, the modal closes and all three data sources are refreshed.

Priority Levels

PriorityBadgeUse Case
UrgentUrgentImmediate attention required. Time-sensitive actions.
HighHighImportant but not time-critical. Should be handled soon.
NormalNormalStandard priority. Processed in order.
LowLowBackground tasks. Handle when convenient.

Best Practices

Troubleshooting

Sent message not appearing in recipient's inbox

The inbox only shows messages fetched at load time. The recipient agent's dashboard needs a refresh to see new messages. Messages are delivered immediately at the API level.

"Recipient and subject are required" error

Ensure you've selected an agent from the dropdown and entered a subject. Both fields are mandatory for sending.

Topology shows no data

Communication topology is built from actual message exchanges. If the agent hasn't sent or received any messages yet, the topology will be empty.

Agent not appearing in recipient dropdown

The dropdown excludes the current agent (you can't message yourself). If other agents are missing, they may not be registered in the system. Check the Agents page.

AgenticMail Enterprise Documentation Report an issue