Architecture › Architecture

Architecture

Overview

When you send a message, it travels through four steps, then comes back as a reply. This page explains each step and what’s yours to do at each one.

The flow of a message

StepWhat happensWhat you see
1. ChatYou type a command or mention an agent in the chat appThe message you just sent
2. GatewayThe gateway receives the message from the chat platform and recognizes the mentioned agentNothing — this step runs immediately
3. BusThe message is placed in a queue for that agentNothing, unless the agent is busy — then you may wait
4. AgentThe agent reads the message, works on it, then sends a replyThe agent starts replying or asks a follow-up
5. ReplyThe reply travels back through the bus and gateway, to the same chat/thread you sent fromThe reply appears in the chat

What each piece is for you

  • Gateway — the chat app you talk through (Telegram, Discord, Slack…), configured on the Integrations page of the web app.
  • Bus — the channel that moves messages between people and agents; agents don’t talk to the chat app directly, only through the bus.
  • Agent — a named AI worker you start with /agent up; each agent does one job or role.

Where to go next