Connects to IMAP or the Gmail API, classifies each unread message (reply, archive, escalate, snooze), drafts a reply if needed, and queues the draft for human approval before sending. The approval gate is the difference between a useful agent and a liability.
1modules:2 channels:3 config:4 gmail: { credential: gmail_oauth }5 approvals:6 config:7 require_for: [send_email]89triggers:10 - id: new-mail11 kind: cron12 schedule: "*/5 * * * *"13 target: { agent: triager, message: "Triage unread mail." }1415agents:16 - id: triager17 modules: [channels, approvals]18 brain: { model: claude-haiku-4-5 }# 1. install runtime
curl -sSL https://digitorn.ai/install | sh
# 2. save the YAML above to ~/.digitorn/apps/my-email-triage/app.yaml
mkdir -p ~/.digitorn/apps/my-email-triage
# paste the YAML into app.yaml
# 3. deploy
digitorn deploy my-email-triageEngineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.