Starbase / 01 PlainAgent

PlainAgent / Templates / Inbox triage agent

Operations template

Inbox triage agent

Labels incoming email by type and urgency and drafts replies for the routine ones.

Job

Sort every new email into a few labels and draft replies for routine messages.

Trigger

A new email arrives.

Hand off to a person when

Anything labelled urgent, legal or personal stays for you.

Inputs & knowledge
  • Email sender, subject and body
  • Your label list with one-line definitions
Tools / actions
  • Apply a label
  • Create a draft reply (not send)
Rules
  • Exactly one label per email.
  • Drafts only; never send automatically.

How to build it

  1. Choose 4 to 6 labels you actually use (for example: needs reply, FYI, invoice, sales pitch, newsletter).
  2. Define each in one line.
  3. Have the model pick one label and say whether a draft is needed.
  4. Create drafts only for routine types.
  5. Review the labels daily for a week.

System prompt

Replace the parts in {BRACES}. Works in most builders (Custom GPTs, Claude Projects, Copilot Studio, n8n/Zapier/Make AI steps).

Classify this email into exactly one label:
{LABELS WITH DEFINITIONS}

Email: {EMAIL}

Return JSON: {"label": "<label>", "urgent": true|false, "draft_reply": "<only if the label is routine, else null>"}

Test before you switch it on

  • A newsletter: newsletter label, no draft.
  • A client question: needs reply, draft created.

New to this? Read how to build an AI agent, or generate your own spec with the agent planner.

Want a ready-made workflow for this? See AI email triage agent on RecipeAgents, our sister site with importable n8n and Zapier workflows. Choosing the AI tool for the AI step? TaskRank ranks the best AI writing and chat assistant.

Related templates

Newsletter

One agent template a week

A short Friday email: one agent spec, the system prompt, and what to test before you switch it on. Free, and the unsubscribe link is in every email.