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/sdk'; 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

Filter prompt injection vectors hiding inside incoming email bodies. Ensure outbound agent drafts are sanitized, legal, and hallucination-free.

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 }

Built for Automated Scale

Supercharge your AI workflows with mailboxes engineered for sub-second speeds.

<15ms
API Latency
Instant parsing for agent queries
100%
Type-Safe JSON
Validates output against schemas
0%
Injection Leaks
Robust pre-send email sanitation
99.99%
Uptime SLA
Reliable infrastructure for production

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/sdk

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.
Start for free.

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