Give MetaGPT's role-based agents the ability to send, read, and manage email — with oversight modes that keep external communications within approved boundaries.
MetaGPT assigns different GPT roles — product manager, architect, engineer — to form a collaborative software company. When these role-based agents need to communicate with external stakeholders via email, MultiMail provides the infrastructure with built-in safety controls.
By integrating MultiMail into MetaGPT's action system, any role can send emails, check inboxes, and manage threads. The default gated_send mode ensures that agent-composed emails are reviewed by a human before delivery, critical when multiple agents may independently decide to reach out to external contacts.
Integration works through MetaGPT's custom Action class. Define email actions that call the MultiMail REST API, then assign them to the roles that need email capabilities.
Different MetaGPT roles can have different email capabilities. A project manager role might send status updates while an engineer role only reads support tickets. MultiMail's per-mailbox oversight modes enable this granular control.
When multiple MetaGPT roles can trigger emails, coordination failures can lead to duplicate or contradictory messages. MultiMail's gated_send mode creates a review queue where a human can catch and resolve conflicts before delivery.
MetaGPT follows Standard Operating Procedures (SOPs). MultiMail's thread tracking and contact management integrate naturally into SOP-driven workflows, maintaining structured communication records.
MultiMail logs which role and action triggered each email, providing a cross-role audit trail. This helps trace communication decisions back to the specific agent and reasoning step that initiated them.
No code, no dashboard. Paste this to your AI agent — it connects MultiMail, creates an inbox, and builds the flow for you.
Sign up at multimail.dev, create a mailbox, and generate an API key from your dashboard. Your key will start with mm_live_.
Install MetaGPT and the HTTP library for calling the MultiMail API.
Create MetaGPT Action subclasses that wrap MultiMail API endpoints. At minimum, define SendEmail and CheckInbox actions.
Create a Role subclass that uses your email actions. Set constraints in the role definition to explain the oversight mode and communication guidelines.
Monitor the MultiMail dashboard for pending emails generated by your MetaGPT roles. Review and approve each message before it is delivered.
Email infrastructure built for AI agents. Verifiable identity, graduated oversight, and a hosted MCP server. Formally verified in Lean 4.