mailer-gpt

An AutoGPT agent that uses the Nylas email API to read, understand, and send email based on a goal.

In plain words
What is it for?
Use it to extract information from incoming messages and draft personalized replies or new outgoing emails.
Why use it?
It removes the need to build separate email-provider integrations and write custom message parsing and composition logic.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/wiseaidotdev/autogpt/mailer-gpt
Clone the repo
git clone --depth 1 https://github.com/wiseaidotdev/autogpt
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 471 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00471
Opus 5 $0.00000 $0.00235
Sonnet 5 $0.00000 $0.00094
Haiku 4.5 $0.00000 $0.00047

Measured 3d ago against content hash 9d82b4b152a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mailer-gpt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/src/agents/mailer-gpt.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MailerGPT

Feature: mail

MailerGPT integrates with the Nylas email API to read, parse, and send emails autonomously. It extracts relevant information from incoming messages and generates personalized outgoing email content based on user-defined goals.

What MailerGPT Solves

Automating email workflows typically requires complex IMAP/SMTP integrations with fragile parsing logic. MailerGPT uses the Nylas unified API to abstract email providers and the LLM to handle content understanding and generation, turning natural language goals into fully composed emails.

Enabling MailerGPT

MailerGPT requires the mail feature flag and three Nylas environment variables:

cargo install autogpt --features mail,gem

export NYLAS_SYSTEM_TOKEN=<your_nylas_system_token>
export NYLAS_CLIENT_ID=<your_nylas_client_id>
export NYLAS_CLIENT_SECRET=<your_nylas_client_secret>

Follow the Nylas setup guide to obtain these credentials.

How It Works

  1. MailerGPT connects to the Nylas API using the configured credentials
  2. It reads emails from the configured inbox and parses their content
  3. Based on the agent's behavior goal, it composes reply or new outbound email content using the LLM
  4. It sends the generated email via the Nylas API

SDK Usage

use autogpt::prelude::*;

#[tokio::main]
async fn main() {
    let persona = "Customer Support Agent";
    let behavior = "Read incoming support emails and draft polite, helpful replies.";

    let agent = MailerGPT::new(persona, behavior).await;

    AutoGPT::default()
        .with(agents![agent])
        .build()
        .expect("Failed to build AutoGPT")
        .run()
        .await
        .unwrap();
}

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 58 lines · 0 tokens per session scan A 9d82b4b152a3

Subscribe to this mod's changes

mailer-gpt is an agent published in the GitHub repository wiseaidotdev/autogpt (115 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 471 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.