Sort and prioritise client emails automatically
Client emails pile up and important ones get buried. Claude Code builds a Node.js application that uses the Gmail API to read incoming messages, calls Claude to classify each email by type (new lead, support, billing, general) and urgency, then applies Gmail labels and optionally sends a Slack notification for urgent items. Runs as a cron job or on-demand.
Target audience: Agencies, consultancies, and service businesses with high email volume
Claude Code creates a Node.js project with googleapis and Claude API SDK
via Claude Code
You set up Gmail API credentials in Google Cloud Console (OAuth2)
via Claude Code
Claude builds a script that fetches unread emails from Gmail
via Claude Code
Each email is classified by type and urgency via Claude API
via Claude Code
Gmail labels are applied automatically based on classification
via Claude Code
Optional: Slack webhook notification for urgent messages
via Claude Code
Open Claude Code in your terminal
Run claude in your project directory
Copy and paste this prompt
Claude builds the entire project for you
It will scaffold files, install dependencies, and wire up the full workflow
Important client emails get buried among newsletters, spam, and low-priority messages
AI reads every incoming email, classifies it, and applies labels automatically
Respond to urgent client needs faster and never miss a high-value inquiry
Categorises emails by type: lead, support, billing, general
Assigns urgency levels based on content and sender
Applies Gmail labels based on classification
Optional webhook notifications for urgent messages
Verify your email once to access all free workflows.
We'll never spam you. One-time verification only.