AgentMailr is now Lumbox. Same product, new name. Learn more →
← All integrations

CrewAI + Lumbox

Equip a CrewAI agent with email: inboxes, OTP codes and replies as CrewAI tools.

Python

CrewAI orchestrates role-playing agents that collaborate on tasks. Lumbox's lumbox_tools() returns plain typed functions you wrap as CrewAI tools, so a crew member can own an inbox, receive verification emails and reply, end to end.

$ pip install "lumbox[crewai]"
from crewai import Agent
from crewai.tools import tool
from lumbox import lumbox_tools

fns = lumbox_tools(api_key="ak_...")
create_inbox = tool("create_inbox")(fns["create_inbox"])
get_otp = tool("get_otp")(fns["get_otp"])

signup_agent = Agent(
    role="Signup agent",
    goal="Create accounts and confirm verification emails",
    backstory="Owns an email inbox and finishes signups autonomously.",
    tools=[create_inbox, get_otp],
)

How it works

  1. 1Install the CrewAI extra: pip install "lumbox[crewai]".
  2. 2Get the typed tool functions with lumbox_tools(api_key).
  3. 3Wrap the functions you need with CrewAI's tool() decorator.
  4. 4Add them to a CrewAI Agent's tools list so the crew can send and receive email.

FAQ

How do I add email to a CrewAI agent?

Install lumbox[crewai], call lumbox_tools(api_key='ak_...') to get typed functions, wrap them with CrewAI's tool() decorator, and add them to your Agent's tools. The agent can then create an inbox, wait for an OTP and reply.

Can a CrewAI crew handle email verification?

Yes. Give one crew member Lumbox's create_inbox and get_otp tools and it can sign up for a service, receive the verification email and return the extracted code to the rest of the crew.

Give your CrewAI agent an inbox