For the complete site index, see llms.txt. Docs index: llms-docs.txt. Marketing corpus: llms-full.txt. Docs corpus: llms-full-docs.txt. Prefer markdown URLs where available (append .md).. Product skill: skill.md. Pricing: pricing.md. Docs MCP: /docs/mcp.

Email Infrastructure
For AI Agents

Equip your autonomous agents and LLMs with a reliable email mailbox. Enable your AI workforce to safely read, write, parse, and act on email workflows in real time.

Interactive Sandbox

Select a preset agent, inspect the setup code, and simulate how Reloop parses incoming email into structured data to drive agent logic.

agent_setup.js
import Reloop from 'reloop-email'; const reloop = new Reloop('rl_live_agent_key'); // Configure AI-Agent Mailbox with structured JSON schemaconst mailbox = await reloop.mailboxes.create({  address: 'support-agent@yourdomain.com',  description: 'Automated Customer Support Handler',  schema: {    type: 'object',    properties: {      orderId: { type: 'string', description: 'Extracted order ID starting with #' },      requestType: { type: 'string', enum: ['refund', 'tracking_status', 'general'] },      customerSentiment: { type: 'string', enum: ['happy', 'neutral', 'angry'] }    },    required: ['orderId', 'requestType', 'customerSentiment']  }}); // Register Agent webhook target to handle parsed emailsawait reloop.webhooks.register({  mailboxId: mailbox.id,  url: 'https://api.yourdomain.com/agents/support'});
Live Inbox Simulator
INBOUND EMAIL
From: customer@gmail.com
Subject: Where is my order #28391?
Hey, my order was supposed to arrive yesterday but it hasn't. Can I get a refund or tracking status?
Agent Execution Trace
Click "Trigger Inbound Email" to watch execution trace.

AI-Native Email Architecture

Stop parsing messy, unstructured MIME content. Supply standard JSON schemas, and let Reloop handle validation and delivery.

Structured Schema Validation

Map inbound messages to structured JSON objects instantly. Define required properties, types, and constraints to filter and clean data for LLM function calls.

INBOUND FORMAT
MIME / Multipart
Encrypted attachments, headers
OUTBOUND TO AGENT
Type-Safe JSON Schema
Pre-parsed & clean fields

Thread Context Sync

Maintain autonomous agent memory. Automatically associate replies with parent threads so your LLMs always have the full conversation context.

<15ms
Average Context Stitching

AI-Native Guardrails

Screen inbound bodies for prompt-injection patterns before they reach your model, and route outbound drafts to a human for approval before they send.

Injection Block PassOutbound Sanity Pass

Asynchronous Agent Webhooks

Automatically route parsed inbox messages straight to your agent's API endpoint. Perfect for LangChain, AutoGen, and custom LLM servers.

AGENT WEBHOOK CALLBACKWAITING
POST https://api.yourdomain.com/agents/callback200 OK
{ "status": "processed", "replied": true, "tokens_used": 420 }

What an agent gets from Reloop

An address it can receive at, a webhook it can act on, an API it can send from, and tools it can call. Hosted or self-hosted.

1, 5, 10
Agent inboxes per plan
Free, Pro and Growth. Custom on Enterprise.
email.received
Inbound webhook event
Sender, subject, thread id and message id as JSON.
11
MCP tool groups
Emails, inbound, contacts, broadcasts, domains, webhooks and more.
9 SDKs + CLI
Ways to call the API
Node.js, Python, PHP, Ruby, Go, Rust, Java, .NET, Elixir.

Give Claude Code the Reloop MCP server

claude mcp add reloop -e RELOOP_API_KEY=rl_xxxxxxxxx -- npx -y reloop-mcp
MCP server guide

Install the agent skills

npx skills add reloop/reloop-skills
Give an agent an inbox

Stream inbound mail to a script

reloop emails receiving listen --json
CLI for agents

What the email.received webhook delivers

{
  "email_id": "in_…",
  "mailbox_id": "mb_…",
  "from": "customer@example.com",
  "subject": "Order #4821 never arrived",
  "thread_id": "thr_…",
  "has_attachments": false,
  "is_spam": false,
  "status": "received"
}

FAQ

Email for AI agents, answered.

A mailbox on a domain you have verified with Reloop, such as agent@agent.example.com. Reloop receives mail for it, parses the body, headers and attachments, runs your classification prompt and JSON schema over it, and hands the result to your agent as an email.received webhook or through the inbox API. The agent replies through the same API. Plans include 1 on Free, 5 on Pro, 10 on Growth agent inboxes.

Subscribe a webhook to the email.received event and Reloop posts a JSON payload with the sender, subject, thread id and message id the moment a message lands. For local development or scripts, the CLI command reloop emails receiving listen --json streams inbound mail to stdout.

The reloop-mcp server exposes sending, inbound mail, contacts, broadcasts, domains, webhooks and templates as MCP tools for Claude Code, Codex, Cursor and Claude Desktop. The reloop-skills package installs agent skills, the CLI has a non-interactive mode, and every docs and marketing page has a markdown twin plus llms.txt and skill.md for retrieval.

Yes. Sending uses the same REST API, SMTP relay and SDKs as any other Reloop send, with scheduling, attachments and tags. Drafts can be routed to a human in the dashboard for approval before they go out.

Yes. The agent inbox, MCP server and inbound processing are part of the Apache 2.0 codebase (with Reloop Labs use restrictions), so a self-hosted install has the same agent features as Reloop Cloud with no license fee.

Setup in 3 Steps

No complex integration pipelines. Connect your agent frameworks in minutes.

1

Configure Mailbox

Create a dedicated agent inbox address (e.g. agent@yourdomain.com) and supply the validation JSON schemas.

2

Import SDK Code

Install the official Reloop Client SDK package for your language:npm install reloop-email

3

Bind Callbacks

Receive clean parsed JSON callbacks on incoming emails, let your agents process requests, and reply back programmatically.

Give your AI Agents an inbox.
Get Started .

Connect your LLMs, LangChain, or Autogen framework to Reloop today and empower your autonomous workforce with real-time email operations.

Reloop