Email Automation Pack

Trustedv1.0.0MITVerified88

by AgentNode · published 22 days ago · toolpack

Send, receive, and automate email workflows with SMTP/IMAP.

Full email automation: send emails via SMTP, read inbox via IMAP, apply filters, auto-respond, and manage email workflows. Supports Gmail, Outlook, and custom SMTP.

langchaincrewaigeneric

Quick Start

bash
agentnode install email-automation-pack

Usage

From package
python
from email_automation_pack.tool import run

result = run(
    action="automate_email",
    operation="send",
    to=["jamie.liu@acmecorp.com"],
    subject="Q1 2025 Sales Report — Final",
    body_html="""<h2>Q1 Sales Report</h2>
<p>Hi Jamie,</p>
<p>Attached is the final Q1 sales report. Key highlights:</p>
<ul>
    <li>Total revenue: <strong>$2.4M</strong> (+18% YoY)</li>
    <li>New accounts: <strong>47</strong></li>
    <li>Top region: Northeast (38% of revenue)</li>
</ul>
<p>Let me know if you have questions.</p>""",
    attachments=["/data/reports/q1_sales_2025.pdf"],
    from_name="Sales Analytics Bot"
)

print(f"Email sent: {result['message_id']}")
print(f"Status: {result['status']}")

Environment Variables

SMTP_HOST

SMTP server hostname (e.g., smtp.gmail.com)

required
SMTP_PORT

SMTP server port (e.g., 587 for TLS)

required
SMTP_USER

SMTP authentication username

required
SMTP_PASSWORD

SMTP authentication password or app-specific password

required
IMAP_HOST

IMAP server hostname for reading emails (e.g., imap.gmail.com)

required

Verification

high confidence88/100✔ Verified
smokeReturned valid result
+25/25
testsAuto-generated tests only
+8/15
importAll tools imported successfully
+15/15
installInstalled in 1.6s
+15/15
contractAll contract checks passed
+10/10
warningsNo warnings
0/0
determinismOutput consistency check
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

install1.6s
import148ms
smoke147ms
tests1.0s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Python 3.12.3ffmpegpopplertesseractuv

Last verified 18d ago· Runner v2.0.0

Use this when you need to...

  • Send transactional order confirmation emails via SMTP
  • Monitor an inbox for invoices and extract attachment data
  • Auto-respond to support emails matching specific keywords
  • Forward filtered emails to a Slack webhook for team visibility
  • Schedule and send weekly digest newsletters to subscriber lists

README

Email Automation Pack

Send, receive, and automate email workflows with SMTP/IMAP. Full email automation: send emails via SMTP, read inbox via IMAP, apply filters, and auto-respond.

Quick Start

agentnode install email-automation-pack
from email_automation_pack.tool import run

result = run(
    action="automate_email",
    operation="send",
    to=["recipient@example.com"],
    subject="Hello from AgentNode",
    body_text="This email was sent by an AI agent."
)

Usage

Send HTML Email

result = run(
    action="automate_email",
    operation="send",
    to=["team@company.com"],
    subject="Build Passed",
    body_html="<h1>All tests passed</h1><p>Branch: main, Commit: a3f8b2c</p>"
)

Read and Filter Inbox

result = run(
    action="automate_email",
    operation="read_inbox",
    folder="INBOX",
    filter_subject_contains="invoice",
    since="2025-01-01",
    limit=50
)

Auto-Respond to Matching Emails

result = run(
    action="automate_email",
    operation="auto_respond",
    folder="INBOX",
    match_subject="out of office",
    reply_body="Thank you for your message. I will respond when available."
)

API Reference

CapabilityDescription
automate_emailSend, receive, filter, and auto-respond to emails

Operations: send, read_inbox, auto_respond, forward, move_to_folder, download_attachments

Requirements

VariableRequiredDescription
SMTP_HOSTYesSMTP server hostname (e.g., smtp.gmail.com)
SMTP_PORTYesSMTP server port (e.g., 587)
SMTP_USERYesSMTP authentication username
SMTP_PASSWORDYesSMTP authentication password or app password
IMAP_HOSTYesIMAP server hostname (e.g., imap.gmail.com)

License

MIT

Version History

Capabilities

email_automationautomate_emailtool

Permissions

This package declares the following access levels. Review before installing.

Networkunrestricted
Filesystemnone
Code Executionnone
Data Accessconnected_accounts
User Approvalonce
bash
agentnode install email-automation-pack

Environment Variables

SMTP_HOSTrequired
SMTP_PORTrequired
SMTP_USERrequired
SMTP_PASSWORDrequired
IMAP_HOSTrequired

Files (3)

License

MIT

Stats

Downloads0
Installs0
Versionv1.0.0
Published3/16/2026
Channelstable
Typetoolpack
Entrypointemail_automation_pack.tool

Compatibility

Frameworks

langchaincrewaigeneric

Runtime

python

Python Version

>=3.10

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode