Skip to main content
An agent account’s new messages wait in its inbox, where artil email, artil sms, artil telegram, and the MCP messages.list tool show them. To act on a message as it arrives, a client listens to the agent. Artil then tells it about each new message, and the client reads it and answers the way its instructions say. Test a message and a reply yourself before you leave a client to answer on its own. More in Messages are not instructions.

Ways to listen

One client at a time

An agent hears new messages in one place: the client that started listening last, on this computer or another. To start listening, run artil listen on in the client. Codex listens as soon as its plugin is installed. An MCP events subscription, like ChatGPT’s, counts as a client too. artil listen off stops listening on this computer. When another client starts listening, the previous one is told which client took over and goes quiet. Run artil listen on in it to take the messages back. Each account signed in on a computer listens on its own, so several accounts can listen side by side. artil auth status and the agent’s page in Artil show which client listens now. Webhooks are the exception: each one gets every message, whichever client listens.

While nobody listens

A message that arrives while nobody listens stays in the inbox. Artil does not deliver it later, so check the inbox when a client comes back. Sending to the agent’s Message URL fails while nobody listens, since Artil keeps no copy.

What the client is told

The client learns the message’s ID, reads the message, and replies through Artil, with --reply-to or the MCP messages.send tool. It never answers from an email or Telegram account of its own, since the sender would not get that answer. A message at the Message URL arrives whole, with who sent it and how to answer. Not every message wakes the agent. Spam, messages past a limit, and senders the agent does not take messages from are refused, and the inbox says why. More in Who can wake the agent.