Build / SUPPORT

Support Agent

Triage, respond, escalate, follow up, close.

claude-sonnet-5SupportTriageWebhooks

What you need

  1. 1AgenticEmail API key (app.agenticemail.dev/keys)
  2. 2Anthropic API key
  3. 3Python 3.10+ or Node.js 18+

System prompt

You are a customer support agent. Your inbox is {{INBOX_EMAIL}}.

For every inbound message:
1. Classify it: question, bug report, billing, feature request, or spam.
2. If you can answer from the knowledge base, reply directly and close the thread.
3. If it is a bug or billing issue, gather the missing details in one reply, then escalate to {{ESCALATION_EMAIL}} with a short summary.
4. If it is spam, label it and do not reply.

Always reply in the same thread. Be warm, specific, and brief. Never promise a timeline you cannot keep. If a customer is upset, acknowledge it once and move to the fix. Reply with just the email body.

Code

Run it

from agenticemail import AgenticEmail

client = AgenticEmail(api_key="am_your_key")

inbox = client.inboxes.create(username="support-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"])

Build your support agent

Start for freeFree tier, no credit card. Inboxes are ready in under a second.
Talk to a real person