How A2A Works
How Agent-to-Agent Works
Section titled “How Agent-to-Agent Works”A2A is the core of what makes Moe’s different. Instead of one AI trying to do everything, you deploy a team of specialized agents that pass work between each other through observable channels.
The Communication Bus
Section titled “The Communication Bus”Agents talk to each other through Telegram topics (or Slack channels). Every message between agents is visible to you in real time.
Support Agent → posts to #research topicResearch Agent → picks up the brief, does the workResearch Agent → posts findings to #researchContent Agent → reads findings, makes the fixContent Agent → posts to #ops: "committed, deploying"QA Agent → verifies the deploymentQA Agent → posts to #ops: "verified, screenshot attached"Support Agent → closes the loop with the customerEvery step is logged. Every handoff is visible. Nothing happens in a black box.
Why Telegram (or Slack)?
Section titled “Why Telegram (or Slack)?”You might wonder why agents don’t just call each other directly through an API. They could. But using a messaging platform gives you three things that matter for production:
- Observability — you see every message in real time, no special dashboard needed
- Interruptibility — you can jump in at any point and redirect an agent
- Audit trail — full searchable history of every decision, built in
For enterprise deployments, this is often a compliance requirement. For smaller teams, it just means you always know what your agents are doing.
Human-on-the-Loop vs. Human-in-the-Loop
Section titled “Human-on-the-Loop vs. Human-in-the-Loop”Moe’s supports three levels of human oversight for every handoff in a pipeline:
Autonomous (Human-on-the-Loop)
Section titled “Autonomous (Human-on-the-Loop)”The agent proceeds immediately. You get notified but nothing stops.
Best for: routine tasks, low-risk changes, high-confidence operations.
Research Agent finishes → immediately hands off to Content AgentYou get a notification: "Research complete, Content Agent is making the fix"Gated (Human-in-the-Loop)
Section titled “Gated (Human-in-the-Loop)”The agent stops and waits for your explicit approval before proceeding.
Best for: sensitive changes, customer-facing content, financial operations.
Research Agent finishes → posts findings → waitsYou review the findings → reply "approved" or "hold, check X first"Content Agent only proceeds after your approvalTimed Review (The Middle Ground)
Section titled “Timed Review (The Middle Ground)”The agent pauses for a configurable window to give you time to review. If you don’t respond within that window, it proceeds automatically.
Best for: teams that want oversight without bottlenecks. Good default for most workflows.
Research Agent finishes → posts findings → waits 15 minutesIf you respond: follows your directionIf no response after 15 min: proceeds to Content Agent automaticallyYou configure this per-handoff, so you can have tight oversight on customer-facing steps and full autonomy on internal ones.
Configuration
Section titled “Configuration”In your agent’s pipeline config, set the review mode per step:
pipeline: - agent: research on_complete: handoff review: none # autonomous
- agent: content on_complete: handoff review: timed # wait for human review_timeout_minutes: 15
- agent: qa on_complete: handoff review: required # always wait for approvalHandoff Patterns
Section titled “Handoff Patterns”Sequential Pipeline
Section titled “Sequential Pipeline”Agents work one after another. Each waits for the previous to finish.
Support → Research → Content → QA → SupportFan-Out
Section titled “Fan-Out”One agent dispatches to multiple agents in parallel.
Support → Research (competitor A) → Research (competitor B) → Research (competitor C) ← all results collected → Content (write comparison)Escalation
Section titled “Escalation”An agent tries to handle something, and if it can’t, passes it up.
Support Agent receives ticket → tries to answer from knowledge base → can't find answer → escalates to Research Agent → Research Agent finds the answer → Support Agent replies to customerAdding A2A to Your Agents
Section titled “Adding A2A to Your Agents”Any Moe’s agent can participate in A2A workflows. The key ingredients:
- Shared communication channel — all agents in the same Telegram group with topics
- Clear handoff format — structured messages so receiving agents know what to do
- Pipeline configuration — define the order, review gates, and error handling
See Pipelines for detailed configuration guides.