Every agent profile in Asteroid is automatically provisioned with its own email inbox. Agents can read and send mail from this inbox during a run, which makes it easy to handle flows that depend on email — for example, retrieving a one-time login code, confirming a sign-up link, or replying to a counterpart.Documentation Index
Fetch the complete documentation index at: https://docs.asteroid.ai/llms.txt
Use this file to discover all available pages before exploring further.
Per-profile inbox
Each agent profile gets its own address at
agentmail.asteroid.aiCustom prefix
Override the default to use a friendly address like
[email protected]Send & receive
Enable the
send_mail and get_mail tools on AI Task nodesEmail 2FA
Receive TOTP / login codes and feed them back into your workflow
How the inbox is assigned
The inbox address is derived from the agent profile attached to the execution. The format is:acme-support resolves to:
The prefix is normalised (lowercased and trimmed) and must be unique across the platform. If the prefix is already taken, profile creation/update will fail — pick a different one.
Requirements
To use email in an agent, two things have to be in place:An agent profile is attached to the execution
Email is a profile-bound feature. Executions without an agent profile (or pool) have no inbox, and the
send_mail / get_mail tools will fail.See Agent Profiles for how to create one and how to attach it to an execution via the dashboard, API, or SDK.Email tools are enabled on the node
On every AI Task node that needs to send or read mail, enable the email tools under the Communication capability in the node settings:
send_mail— send an email from the profile’s inboxget_mail— list recent emails, or fetch a specific email by ID
tools array. See AI Capabilities → Communication.Configuring the prefix
- Dashboard
- API / SDK
- Open Agent Profiles on the Asteroid platform.
- Create a new profile, or open an existing one.
- Set the Inbox Email Prefix field (e.g.
acme-support). - Save. The full address is shown alongside the field.
Using email from an AI Task node
Once the tools are enabled and a profile is attached, the agent can call them like any other tool. The agent doesn’t need to be told its own address — it’s resolved automatically from the profile at runtime.Sending an email
The agent can send an email by callingsend_mail. Typical instruction:
Reading an email
The agent can list recent messages or fetch one by ID withget_mail. The tool only returns mail addressed to the profile’s own inbox.
Receiving email codes (TOTP / login)
The most common use case for the inbox is catching one-time codes sent by email — for example, a login flow that emails a 6-digit verification code, or a magic-link sign-in. The pattern is:Submit the email address on the target site
Instruct the agent to enter the profile’s inbox address (e.g.
[email protected]) into the sign-in form. You can pass the address in as a dynamic variable, or have the agent read it from the prompt.Wait for the email to arrive
Email delivery takes a few seconds. Tell the agent to poll its inbox rather than calling
get_mail once — codes can arrive 5–30 seconds after the request.Example prompt
Privacy and isolation
get_mailonly returns emails addressed to the profile’s own inbox. Mail sent to a different profile is not visible.- Inbox addresses are unique across the platform — no two profiles can share the same prefix.
- Inboxes persist for the lifetime of the profile. Deleting the profile releases the prefix.
Limitations
- The inbox is only available to executions that have an agent profile attached.
- Attachments on inbound mail are surfaced in the
get_mailresponse but cannot currently be downloaded as workflow files. - Mail delivery is best-effort — for hard-real-time flows, build in retries (see the prompt example above) rather than assuming the next
get_mailcall will succeed.
For more on profiles, credentials, and TOTP secrets, see Agent Profiles. For the full list of node capabilities including
send_mail and get_mail, see AI Capabilities.
