Update HubSpot contacts from Gmail auto-replies using Claude and Slack
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs on a schedule (every hour). Along the way it connects Gmail, Anthropic Chat Model and Slack. It also calls api.hubapi.com over HTTP.
How it runs
Trigger: On a schedule (every hour).
- Config (Edit Fields (Set)): sets 9 fields: slackChannelId, lookBackDays, maxRepliesPerRun…
- Check Your Settings (Code): runs custom JavaScript code
- Test HubSpot Connection (HTTP Request): calls api.hubapi.com (GET)
- Get HubSpot Account (HTTP Request): calls api.hubapi.com (GET)
- Confirm HubSpot Access (Code): runs custom JavaScript code
- Search Gmail for Auto-Replies (Gmail): get many (message)
- Skip Replies Already Seen (Remove Duplicates): removes duplicate items
- Sort Replies and Bounces (Code): runs custom JavaScript code
- Loop Over Replies (Loop Over Items (Split in Batches)): loops over the items in batches
- Find Contact in HubSpot (HTTP Request): calls an HTTP API (GET)
…plus 12 more steps. See the full node list below.
Services it uses
Other Gmail + Slack templates (957) · Other Anthropic + Slack templates (204) · Other Anthropic + Gmail templates (192)
HTTP calls to: api.hubapi.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (13)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Remove Duplicates
n8n-nodes-base.removeDuplicates - Switch
n8n-nodes-base.switch - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Slack
n8n-nodes-base.slack - If
n8n-nodes-base.if
From the author
Quick overview This workflow runs hourly to find Gmail auto-replies and permanent bounces, uses Anthropic Claude to detect when a HubSpot contact has left or is out of office, and posts Slack approvals before updating HubSpot with lead status changes, notes,…