← Back to Dashboard

Agent Messages

Inter-agent and external communications — message log, topology visualization, and compose interface.

Table of Contents

Overview

Non-technical summary: This page is like a company messaging dashboard. You can see every message your AI agents send to each other or to the outside world, and there's a visual map showing who talks to whom most often.

The Agent Messages page centralizes all inter-agent and external communications into two views:

How It Works

On load, three API calls execute:

  1. /messages?orgId=...&limit=100 — Fetches the last 100 messages
  2. /agents — Loads agent list for name/badge resolution
  3. /messages/topology?orgId=... — Fetches the communication graph data (nodes + edges + stats)

Key Concepts

Message Types

TypeIconDescription
Message💬General agent-to-agent or external message
Task📋Structured work delegation
Handoff🤝Conversation or context handoff between agents
Broadcast📢One-to-many announcement

Direction

DirectionBadgeMeaning
InternalInternalBetween agents in the same org
External OutboundExt OutAgent sent to external recipient
External InboundExt InReceived from external source

Channels

Messages can flow through: email (📧), task (📋), or direct (💬) channels.

Stats Cards

Four stat cards at the top show aggregate counts:

Messages Tab

The messages table supports sub-tab filtering:

Table columns: Type, Direction, Channel, From, To, Subject, Status, Priority, Time.

Topology Tab

Tip: The topology visualization is the fastest way to understand which agents collaborate most. Thicker lines mean more messages between those agents.

The topology view renders a force-directed graph using a custom physics simulation:

Interactions

Detail Panel

When a node is selected, a card appears showing:

Physics Simulation

The layout uses 200 iterations of:

Composing Messages

Click "New Message" to open the compose modal with fields:

The message is sent via POST /messages and both the message list and topology are refreshed.

Configuration & Setup

Agent Messages works automatically once agents are created. Messages are generated by:

The org switcher filters messages to the selected organization.

API Reference

EndpointMethodDescription
/messages?orgId=...&limit=100GETFetch messages
/messagesPOSTSend a new message
/messages/topology?orgId=...GETCommunication graph (nodes, edges, stats)

POST /messages Body

{
  "orgId": "org_123",
  "fromAgentId": "agent_abc",
  "toAgentId": "agent_xyz",
  "subject": "Monthly report ready",
  "content": "The report has been generated...",
  "priority": "normal"
}

Best Practices

Troubleshooting

IssueSolution
No messages shownCheck that agents exist in the selected organization. Try the "All" sub-tab filter.
Topology is emptyAt least two agents need to have exchanged messages for the graph to render.
Message send failsEnsure both From and To agents are selected. Check that the org ID is valid.
Agent names show as IDsAgent list failed to load. Click Refresh or check /agents endpoint.
Topology nodes overlapThis can happen with few nodes. The force-directed layout works best with 4+ agents.
AgenticMail Enterprise Documentation Report an issue