Skip to content

AgenticEmail/langchain-agenticemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

langchain-agenticemail

LangChain tools for AgenticEmail, API-first email infrastructure for AI agents. The AgenticEmailToolkit gives a LangChain agent its own real email inbox: it can create inboxes and send, read, reply to, and search email, with optional end-to-end encryption.

Install

pip install langchain-agenticemail

Setup

Get an API key at https://app.agenticemail.dev and export it:

export AGENTICEMAIL_API_KEY="am_..."

Usage

from langchain.agents import create_agent
from langchain_agenticemail import AgenticEmailToolkit

toolkit = AgenticEmailToolkit.from_api_key()
tools = toolkit.get_tools()

agent = create_agent("anthropic:claude-sonnet-4-5", tools)
agent.invoke({
    "messages": [
        {"role": "user", "content": "Create an inbox and email a welcome note to user@example.com"}
    ]
})

Tools

create_inbox, list_inboxes, send_email, list_messages, get_message, reply_to_message, search_messages.

JavaScript and other frameworks

For TypeScript or non-LangChain agents, point the framework at the hosted MCP server at https://api.agenticemail.dev/mcp with the API key as a Bearer token. MCP is the framework-agnostic tool bridge, so it needs no per-framework wrapper.

Links

License

MIT

About

LangChain tools for AgenticEmail: give an AI agent its own real email inbox (send, receive, reply), with optional end-to-end encryption.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages