Workflow Orchestration · Python SDK harness

CrewAI Agents for Legacy Gmail Backlog Cleanup

A CrewAI side project processes an old Gmail inbox over IMAP: it categorizes and prioritizes email, applies labels and stars, drafts replies for important messages, sends Slack notifications for high-priority mail, and deletes low-priority email under configurable rules.

Evidence ReportedAgent CrewAIHarness Python SDK harnessAdded 1 Dec 2026

What This Workflow Does

Categorizes inbox email and assigns priority levels.

Applies labels and stars based on content analysis.

Creates draft responses for important messages and saves them in Drafts; the post does not say it sends those replies.

Sends Slack notifications for high-priority messages.

Deletes low-priority email according to configurable rules and empties Trash.

Written for Personal email users. Goal: Workflow Orchestration.

Agent, Harness & Requirements

The workflow runs on CrewAI inside a Python SDK harness. You embed the agent loop in Python and own the tools, state, and deployment.

  • A Gmail account accessible over IMAP.
  • A model with good tool-calling capability; the builder reports that most open-source Ollama models struggle with this.
  • Slack for the described high-priority notifications.

How It Works

  1. Connect the Gmail account over IMAP.
  2. Have the CrewAI agents categorize email and assign priorities, then apply labels and stars based on content.
  3. Create drafts for important messages and send Slack notifications for high-priority messages.
  4. Apply configurable rules to delete low-priority email and empty Trash.

Configuration details

Not provided in the Show HN post.

Evidence & Source

Reported Reported: in the Show HN post, the builder says they made a CrewAI agent crew to address an old Gmail account with many unread messages, and describes its categorization, prioritization, labeling, draft creation, Slack notification, and cleanup actions. The builder disclosed working at CrewAI and characterized this as a side project. They say it works with models that are good at tool calling and that most open-source Ollama models struggle. In comments, the builder acknowledges emptying trash need not be an agent action, explains the account was long unused and storage-full, and says an archive option could replace deletion. The discussion provides no independently verified results or outcome metrics.

Show HN: I built AI agents with CrewAI to automate my entire Gmail workflow

Hacker News Show HN · checked 1 Dec 2026

Open the source

Limitations

  • The builder reports that most open-source Ollama models struggle with tool calling.
  • The workflow includes deletion based on classification; a commenter raised the risk of misclassification. The builder said this particular account had been unused for years and suggested an archive option could replace the delete tool.
  • The builder acknowledges emptying Trash does not require an agent action.
  • The discussion gives no exact prompt/configuration or independently verified results.

This record describes what the source states. It is not a review, a benchmark, or a recommendation. If the tool has changed since the check date, report it.