Quick Overview
This workflow monitors Gmail for new email replies, uses Anthropic Claude to classify each reply and draft a suggested response, then routes interested replies to Slack and a Gmail draft while labeling all other replies in Gmail for triage.
How it works
- Triggers every minute when a new email reply is received in Gmail.
- Loads configuration values such as your offer/voice context, Slack channel, and Gmail label IDs.
- Sends the email details to Anthropic Claude to classify the reply, score confidence, summarize it, and draft a suggested response as structured JSON.
- Routes the message by category so “interested” replies post an alert to Slack.
- Creates a Gmail draft reply in the same thread using Claude’s suggested response.
- For non-interested categories (not now, out of office, unsubscribe, referral, objection) and any unmatched output, adds the corresponding Gmail label to the incoming message.
Setup
- Add credentials for Gmail OAuth2, Anthropic API, and Slack OAuth in the respective nodes.
- Update the “Config (edit me)” values with your offer/voice context, Slack channel name, and the Gmail label IDs for each category (not_now, out_of_office, unsubscribe, referral, objection, and review).
- Create the required Gmail labels and copy their label IDs into the config so each category is applied correctly.