# AI Agents

> Explore Mailrith's AI Agent workflows beta with OAuth, MCP, SDKs, scoped tools, exact action previews, human approvals, sandbox testing, and redacted activity history.

- Human page: https://mailrith.com/features/ai-agents
- Markdown page: https://mailrith.com/features/ai-agents.md
- Feature category: Keep Brands And Teams Organized
- Primary keyword: AI Agent email marketing platform
- Related keywords: AI Agent email marketing beta, MCP email marketing platform, email marketing for AI agents, safe AI email automation
- Last reviewed: 2026-07-22

## Direct Answer
Test a controlled AI Agent path from discovery to results without giving it unrestricted control. During beta, production access and action volume remain limited while Mailrith validates the complete workflow.

- Connect OpenAI, Claude, Codex, n8n, Pipedream, or another standards-based client without changing Mailrith's resource model.
- Start read-only, add only the permissions a task needs, and review the exact effect before a high-impact action runs.
- Inspect request IDs, approvals, outcomes, and redacted activity from one Agent Control screen.

## What This Feature Helps You Do
- **Reporting And Research:** Let a read-only agent inspect workspace capabilities, Subscribers, campaigns, and progress without granting write or send access.
- **Drafting And Synchronization:** Create campaign drafts or synchronize Subscriber data with typed inputs, bounded pagination, request IDs, and idempotency safeguards.
- **Controlled Operations:** Require an exact preview, workspace policy decision, and single-use approval token before sending, activating, bulk changing, or deleting.

## When To Use This Feature
- Use AI Agents when another application or agent runtime needs to inspect or operate Mailrith on a user's behalf.
- Use AI Agents when you need repeatable email marketing work across reporting, Subscriber sync, drafting, approval, and progress checks.
- Use the sandbox first when a workflow includes writes or high-impact actions.

## When This May Not Be The First Thing To Set Up
- Use AI Writing instead when you only want help writing copy inside a Mailrith editor.
- Do not connect an agent before you can describe its task and choose the smallest matching permission preset.
- Do not use a live workspace for early workflow experiments that can run safely with synthetic sandbox data.

## A Simple Setup Path
1. Choose the task: read-only reporting, Subscriber sync, campaign drafting, or approval-based operation.
2. Connect through OAuth when a user is authorizing an agent client, or use a task-specific API key only for a trusted server-side runtime.
3. Run capability discovery and expose only the tools required for that task.
4. Test the workflow in the Agent Sandbox and inspect every request ID and result.
5. For high-impact work, create a plan, send the approval link to a workspace owner, and execute only the unchanged approved action.

## Common Mistakes To Avoid
- **Granting Broad Access First:** Begin with read-only tools and expand the connection only when a tested workflow has a clear need for another permission.
- **Treating Client Approval As Mailrith Approval:** A client may ask before calling a tool, but Mailrith still requires its own exact plan and approval for high-impact actions.
- **Retrying An Uncertain Result:** Use the request or action ID to inspect the current state. Do not repeat a mutation until you know whether the first attempt changed anything.

## How This Connects With The Rest Of Mailrith
- Subscribers, tags, and custom fields support reporting and synchronization tasks.
- Broadcasts, sequences, and automations support draft-first campaign workflows.
- Agent Control provides connection, policy, approval, activity, and revocation controls.
- Email delivery connections and preflight checks remain the only path to provider delivery.

## Keep Exploring
- [AI Agent Quickstarts](https://mailrith.com/developers/agent-quickstarts.md): Connect read-only, drafting, approved-send, and sandbox workflows with exact commands and safety checks.
- [AI Writing](https://mailrith.com/features/ai-writing.md): Mailrith AI Writing helps draft broadcasts, sequence emails, sequence plans, and automation ideas. Review each draft before anything goes live.
- [Broadcasts](https://mailrith.com/features/broadcasts.md): Mailrith Broadcasts help you write, select subscribers, test, schedule, send, and review one-time emails.
- [Automations](https://mailrith.com/features/automations.md): Mailrith Automations help you build subscriber follow-up with triggers, waits, rules, emails, tags, and sequences.

## Related Email Sending Setup Pages
- [Amazon SES Email Marketing](https://mailrith.com/features/amazon-ses-email-marketing.md): Use Mailrith with Amazon SES for email marketing campaigns, newsletters, forms, automations, and reports while Amazon SES handles delivery.
- [Postmark Email Marketing](https://mailrith.com/features/postmark-email-marketing.md): Postmark Email Marketing with Mailrith: run campaigns, newsletters, forms, automations, and reports while Postmark handles delivery.
- [SendGrid Email Marketing](https://mailrith.com/features/sendgrid-email-marketing.md): SendGrid Email Marketing with Mailrith: run campaigns, newsletters, forms, automations, and reports while SendGrid handles delivery.
