Overview
meshagent process is designed to grow one agent across multiple channels.
The main command to learn is meshagent process join.
Use meshagent process join for local development, and use that same command as the container command when you package a deployed multi-channel agent service.
Each --channel flag adds another way to reach the same agent. The agent keeps one identity, one rules setup, and one shared tool configuration as you add those channels.
This page walks through one example agent and grows it in stages:
- start with chat
- add mail
- add a queue
- deploy the same agent shape
Channel reference
Pass--channel once per entry point you want to attach:
--channel chat--channel mail:news-agent@mail.meshagent.com--channel queue:news-jobs--channel toolkit:news-agent
| Channel | What it is for | What you need to test it |
|---|---|---|
chat | People talk to the agent directly from chat-style clients | a room and a chat client such as MeshAgent Studio |
mail:EMAIL | Email sent to that mailbox becomes work for the agent | a mailbox configured for that address |
queue:NAME | Messages sent to that room queue become work for the agent | another service, script, or user pushing queue messages |
toolkit:NAME | Other agents or participants call the agent like a tool | another caller that invokes the toolkit |
--channel as many times as needed, including multiple queue channels.
Step 1: Start with one chat channel
Start with one chat-facing agent. This gives you a clean place to test the rules, the thread behavior, and built-in MeshAgent tools such as web search.meshagent process run with the same --channel chat setup.
Step 2: Add a mail channel
Next, add email as another entry point for the same agent. Before the agent can receive mail, create a mailbox:- answer in chat
- receive email through the mailbox
- keep using the same rules and tool configuration across both channels
Step 3: Add a queue channel
Now add a queue so the same agent can also handle scheduled or triggered news jobs in the background.- answer in chat
- receive mail
- process queued news requests
Step 4: Deploy the same agent shape
The recommended deployment path is to package a service whose container command is the samemeshagent process join ... command you used locally.
That keeps local development and deployment aligned: the agent you test locally is the same agent shape you deploy.
For a full packaging example, see Deploy a Multi-channel Agent.
Threads and context
Channels do not automatically collapse all work into one context.meshagent process still isolates work by thread_id. That means:
- the running agent is shared
- thread history is not shared unless inputs reuse the same thread path
--threading-mode and --thread-dir control the chat-oriented thread list behavior in the same way they do for a ChatBot.
This is also what allows cross-channel continuity. A thread that starts from one channel can later be continued from another channel if they reference the same thread path.
Where to go next
- Multi-channel Agents Overview: what
meshagent processis and the benefits it brings - Multi-channel Agent Architecture: how channels, supervisors, and thread processes fit together under the hood
- CLI Quickstart: general MeshAgent CLI workflows