from anima import Anima
anima = Anima(api_key="mk_...") # master key — agent creation is admin-gated
# Create an agent with an email inbox
agent = anima.agents.create(
org_id="org_...", # your organization ID, from the console
name="My First Agent",
slug="my-first-agent",
)
print(f"Agent: {agent.id}")
# Send an email
anima.messages.send_email(
agent_id=agent.id,
to=["recipient@example.com"],
subject="Hello from my AI agent",
body="This email was sent by an AI agent powered by Anima.",
)
print("Email sent!")