Mailgent

Mailgent for CrewAI

Give each agent in your crew its own inbox and identity. Add Mailgent tools so crew members can email, hold secrets, and coordinate as distinct, accountable actors.

CrewAI orchestrates multiple agents with distinct roles. Mailgent fits that model perfectly: provision a separate identity per crew member, so each has its own address, scoped key, and audit trail.

Add Mailgent tools to the crew and members can email each other and the outside world, store and share secrets through the vault, and act as the distinct, accountable actors CrewAI models them to be.

One identity per crew member

Provision an agent identity for each role in the crew. The researcher, the writer, and the reviewer each get their own address, so their actions stay attributable and their scopes stay tailored to their job.

Wrap Mailgent endpoints as CrewAI tools and assign them per agent.

crew.py
from crewai.tools import tool
import requests

@tool("send_email")
def send_email(to: str, subject: str, text: str) -> str:
    """Send email from this agent's inbox."""
    return requests.post("https://api.mailgent.dev/v0/mail/send",
        headers={"Authorization": f"Bearer {AGENT_KEY}"},
        json={"to": to, "subject": subject, "text": text}).text

Coordinate safely

Because each member has scoped access, you can let the outreach agent send mail while the reviewer can only read — controlling the crew's reach at the identity level rather than hoping the prompt holds.

FAQ

Can each agent have a different address?

Yes. Provision one identity per crew member from your platform key; each gets its own address and scoped key.

How do I limit a member's reach?

Set scopes per agent key. A member only gets the capabilities its role needs.

Give your agent an inbox.

A real email address, a vault, 2FA, and an identity in one API call.

Get started