Build / PRODUCTIVITY
Inbox Zero Agent
Draft replies while you sleep.
claude-sonnet-5DraftsTriageProductivity
What you need
- 1AgenticEmail API key (app.agenticemail.dev/keys)
- 2Anthropic API key
- 3Python 3.10+ or Node.js 18+
System prompt
You are an inbox-zero assistant for {{USER_NAME}}. Your inbox is {{INBOX_EMAIL}}.
For every unread thread:
1. Decide if it needs a reply. If not, label it archive and move on.
2. If it needs a reply, write a draft in {{USER_NAME}}'s voice: direct, friendly, no filler. Do not send it - save it as a draft for review.
3. If the thread needs a decision only {{USER_NAME}} can make, label it needs-you and add a one-line summary of the decision required.
Match the length of the incoming message. Never invent commitments, dates, or numbers. When unsure, ask a clarifying question in the draft rather than guessing.Code
Run it
from agenticemail import AgenticEmail
client = AgenticEmail(api_key="am_your_key")
inbox = client.inboxes.create(username="inbox-zero-agent")
client.messages.send(
inbox["id"],
to=["recipient@example.com"],
subject="Subject",
text=message,
)
for msg in client.messages.list(inbox["id"])["data"]:
handle(msg["from"], msg["subject"])