{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "apowerb-apowerb--triage-inbox-with-email-triggered-agent",
 "repo": "apowerb/apowerb",
 "repo_url": "https://github.com/apowerb/apowerb",
 "repo_slug": "apowerb-apowerb",
 "title": "Triage new Gmail or Outlook messages with an agent",
 "page_title": "How to triage new Gmail or Outlook messages with an agent with Apowerb",
 "summary": "A new email starts an agent that classifies it, checks the CRM and drafts a reply.",
 "who": "A customer support or sales lead whose inbox fills faster than the team can sort it, and who wants drafts ready before a person reads each message.",
 "problem": "Each incoming message needs reading, sorting, a customer lookup and a first reply, all done by hand.",
 "outcome": "Each new message gets a classification, a CRM lookup and a draft reply, with a session trace for review.",
 "steps": [
  "Start the stack from the quick start: `docker compose -f docker-compose/docker-compose.yml --env-file .env up -d`",
  "In the web interface, define an agent with instructions, a model and the tools it needs.",
  "Connect the Gmail or Outlook account that will trigger the agent, following the Webhooks section of the docs. (inferred, check the README)",
  "Add a CRM tool such as HubSpot or Pipedrive so the agent can look up the sender.",
  "Send a test message and open its session trace to check the classification and the draft."
 ],
 "agent_prompt": "Using the apowerb repo at https://github.com/apowerb/apowerb, build an inbox triage agent that is triggered by new messages in <target mailbox>. Expected output: for each message, a category, a CRM lookup result and a draft reply. Verify the session trace records each run before trusting the drafts.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Gmail and Outlook triggers depend on webhook callbacks reaching PUBLIC_BASE_URL, which must be a public address for a real mailbox to reach the server.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Docker and Docker Compose",
  "An API key from a supported model provider such as Anthropic, OpenAI, Mistral, Gemini, Azure AI Foundry or OVHcloud, or any other LiteLLM provider",
  "Accounts for the business systems you want to connect, such as Gmail, Outlook, HubSpot, Pipedrive or Odoo"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The agent needs access to a mailbox and a CRM, so the account grants should be limited to what triage needs."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/apowerb-apowerb/triage-inbox-with-email-triggered-agent/",
 "md": "https://dedupedai.com/use-cases/apowerb-apowerb/triage-inbox-with-email-triggered-agent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/apowerb-apowerb--triage-inbox-with-email-triggered-agent.json",
 "api_version": "v1"
}
