Email Triage Guide
Let PILOT prioritize your inbox and draft replies using AI.
Overview
PILOT's email triage connects to your Microsoft 365 mailbox via OAuth and uses AI to:
- Rank emails by urgency and relevance
- Suggest actions: reply, delegate, archive, or defer
- Draft context-aware replies in your preferred tone
- Batch archive or mark-read low-priority messages
- Delegate emails to team members with tracking
Connect Your Email
Before using the email triage API, connect your Microsoft 365 account:
- Navigate to
https://app.withpilot.ai/email/connectin your browser - Authenticate with your Microsoft account
- Grant PILOT permission to read and send emails on your behalf
- Verify the connection:
GET /email/status
# Check email connection status curl -H "Authorization: Bearer pk_live_YOUR_KEY" \ https://app.withpilot.ai/email/status
Triage Your Inbox
Get an AI-prioritized view of your inbox with suggested actions:
# Get email triage curl -H "Authorization: Bearer pk_live_YOUR_KEY" \ https://app.withpilot.ai/api/v1/email/triage
Response:
[
{
"message_id": "msg_abc123",
"from": "cto@bigcorp.de",
"subject": "Partnership proposal — askSOPia integration",
"urgency": "high",
"suggested_action": "reply",
"summary": "CTO of BigCorp wants to discuss integrating askSOPia...",
"ai_draft_available": true
},
{
"message_id": "msg_def456",
"from": "newsletter@saas-weekly.com",
"subject": "This Week in SaaS",
"urgency": "low",
"suggested_action": "archive",
"summary": "Weekly newsletter — no action items."
}
]
Urgency Levels
| Level | Meaning |
|---|---|
critical | Requires immediate attention — time-sensitive, from VIP contacts |
high | Important and should be addressed today |
medium | Relevant but can wait — informational or non-urgent requests |
low | Newsletters, notifications, FYI — safe to batch-process |
Suggested Actions
| Action | Meaning |
|---|---|
reply | This email needs a response. AI draft is available. |
delegate | Better handled by someone on your team |
archive | No action needed — safe to archive |
defer | Not urgent now, but revisit later |
Draft a Reply
Generate an AI-drafted reply for any email. The AI uses your knowledge graph context to personalize the response:
curl -X POST https://app.withpilot.ai/api/v1/email/draft-reply \ -H "Authorization: Bearer pk_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "message_id": "msg_abc123", "tone": "professional" }'
Available Tones
professional— Default. Business-appropriate, clear and concisecasual— Friendly and relaxed, for established relationshipsfirm— Direct and assertive, for negotiations or boundariesgrateful— Warm and appreciative
Send a Reply
Once you've reviewed (and optionally edited) a draft, send it:
curl -X POST https://app.withpilot.ai/api/v1/email/send-reply \ -H "Authorization: Bearer pk_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "message_id": "msg_abc123", "body": "Thanks for reaching out about the integration..." }'
Batch Operations
Process multiple emails at once for low-priority items:
Batch Archive
curl -X POST https://app.withpilot.ai/api/v1/email/batch/archive \ -H "Authorization: Bearer pk_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "message_ids": ["msg_def456", "msg_ghi789"] }'
Batch Mark as Read
curl -X POST https://app.withpilot.ai/api/v1/email/batch/read \ -H "Authorization: Bearer pk_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "message_ids": ["msg_def456", "msg_ghi789"] }'
Delegate an Email
Forward an email to a team member with your comment. PILOT tracks the delegation:
curl -X POST https://app.withpilot.ai/api/v1/email/delegate \ -H "Authorization: Bearer pk_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "message_id": "msg_abc123", "to_address": "colleague@company.com", "comment": "Can you handle the technical evaluation?" }'
Track delegations via GET /api/v1/delegations.
Get Thread Summary
For long email threads, get an AI-generated summary:
curl -H "Authorization: Bearer pk_live_YOUR_KEY" \ https://app.withpilot.ai/api/v1/email/thread/conversation_abc123
Find Unanswered Emails
List emails that have been waiting for a reply beyond your configured threshold:
curl -H "Authorization: Bearer pk_live_YOUR_KEY" \ https://app.withpilot.ai/api/v1/email/unanswered
Related Endpoints
- GET /api/v1/email/triage — AI-prioritized triage
- POST /api/v1/email/draft-reply — Generate AI draft
- POST /api/v1/email/send-reply — Send reply
- GET /api/v1/email/thread/{id} — Thread summary
- GET /api/v1/email/unanswered — Unanswered emails
- POST /api/v1/email/batch/archive — Batch archive
- POST /api/v1/email/batch/read — Batch mark read
- POST /api/v1/email/delegate — Delegate email