AutoGen + Lumbox
Let an AutoGen assistant own an inbox and resolve email verification on its own.
PythonMicrosoft 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
- 1Install lumbox and autogen-agentchat.
- 2Get the typed functions with lumbox_tools(api_key).
- 3Pass them as the tools list on an AutoGen AssistantAgent.
- 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.