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

AutoGen + Lumbox

Let an AutoGen assistant own an inbox and resolve email verification on its own.

Python

Microsoft AutoGen builds conversational multi-agent systems. Lumbox's lumbox_tools() returns plain functions you register directly on an AutoGen AssistantAgent, so it can create an inbox, wait for an OTP and reply without leaving the conversation.

$ pip install lumbox autogen-agentchat autogen-ext[openai]
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient
from lumbox import lumbox_tools

fns = lumbox_tools(api_key="ak_...")

agent = AssistantAgent(
    name="inbox_agent",
    model_client=OpenAIChatCompletionClient(model="gpt-4o"),
    tools=list(fns.values()),
    system_message="You own an email inbox. Use it to receive OTPs and verify signups.",
)

How it works

  1. 1Install lumbox and autogen-agentchat.
  2. 2Get the typed functions with lumbox_tools(api_key).
  3. 3Pass them as the tools list on an AutoGen AssistantAgent.
  4. 4The assistant can now handle inbox creation and OTP retrieval in-conversation.

FAQ

How do I add email to an AutoGen agent?

Install lumbox, call lumbox_tools(api_key='ak_...'), and pass the returned functions as the tools list on an AutoGen AssistantAgent. It can then create an inbox, wait for an OTP and reply to email.

Give your AutoGen agent an inbox