Skip to content
AgentMail logo

AgentMail integration

Communication · 21 actions · API key auth

Integrate AgentMail into your workflow. Create and manage email inboxes, send and receive messages, reply to threads, manage drafts, and organize threads with labels.

The ModuleX AgentMail integration lets a ModuleX agent operate AgentMail on your behalf, running create, update and send actions across messages, threads and drafts, directly from a plain-English request, using your organization's own AgentMail credentials. No pre-built workflow is required: the agent picks the right AgentMail action for the task.

AgentMail is a communication platform. ModuleX adds the agent layer: ask for an outcome and it selects and runs the right AgentMail action. Or, when you want a repeatable process, the composer assembles a AgentMail workflow for you, streaming the nodes onto the canvas as it builds.

Drive AgentMail in plain English

Type what you want. A ModuleX agent picks the right AgentMail action, or chains several, and runs it. No workflow to build.

  • Create a new email draft in AgentMail
    resolves tocreate_draft
  • Find the message I describe and send it
    resolves tolist_messagessend_message
  • Add or remove labels on an email message in AgentMail
    resolves toupdate_message
  • Show me the messages that match what I describe
    resolves toget_message

What you can automate with AgentMail

  • Find the right message and send it in one promptlist_messagessend_message
  • Pull a list of threads for a reportlist_threads
  • Create a draft straight from a requestcreate_draft
  • Look up an inbox on demandget_inbox

AgentMail integration at a glance

VendorAgentMail
Actions available21
AuthenticationAPI key
Uses your own credentialsYes
Works with the assistantYes
Works in the composerYes
Multi-step / tool-chainingYes
Technical referenceView docs
Integration version1.0.0
Last updatedJul 2026

All 21 AgentMail actions

Messages6
send_message
Send an email message from an AgentMail inbox.
reply_message
Reply to an existing email message in AgentMail.
forward_message
Forward an email message to new recipients in AgentMail.
list_messages
List messages in an inbox in AgentMail.
get_message
Get details of a specific email message in AgentMail.
update_message
Add or remove labels on an email message in AgentMail.
Threads4
list_threads
List email threads in AgentMail.
get_thread
Get details of a specific email thread including messages in AgentMail.
update_thread
Add or remove labels on an email thread in AgentMail.
delete_thread
Delete an email thread in AgentMail (moves to trash, or permanently deletes if already in trash).
Drafts6
create_draft
Create a new email draft in AgentMail.
list_drafts
List email drafts in an inbox in AgentMail.
get_draft
Get details of a specific email draft in AgentMail.
update_draft
Update an existing email draft in AgentMail.
delete_draft
Delete an email draft in AgentMail.
send_draft
Send an existing email draft in AgentMail.
Inboxes5
create_inbox
Create a new email inbox with AgentMail.
list_inboxes
List all email inboxes in AgentMail.
get_inbox
Get details of a specific email inbox in AgentMail.
update_inbox
Update the display name of an email inbox in AgentMail.
delete_inbox
Delete an email inbox in AgentMail.

See full parameters and response schemas in the AgentMail integration docs

Two ways to use AgentMail in ModuleX

Ask the assistantType what you want done and a ModuleX agent picks the right AgentMail action and runs it. No workflow to build.
Compose a workflowNeed it to happen every time? Describe the process and the composer wires AgentMail into a repeatable workflow you can run on a schedule, from chat, or as an API.

Connecting AgentMail

API keyAgentMail uses API-key authentication. You provide your own AgentMail secret key; ModuleX encrypts it and scopes it to your organization, so your whole team can use AgentMail without re-authenticating.

Step-by-step setup in the AgentMail docs

Works with AgentMail

Agents often chain AgentMail with these. Connect them once and one agent can use all of them in a single task.

AgentMail + ModuleX FAQ

  • A ModuleX agent can run any of AgentMail's 21 actions, across messages, threads, drafts and inboxes, from a plain-English request, using your organization's own AgentMail credentials.

Put AgentMail to work in ModuleX.

Connect AgentMail once with your own credentials and let your agent run all 21 actions on demand.

Last updated: Jul 2026Browse all 179 integrations