Templates / Enforce sales rules of engagement with AgentMail for HubSpot teams

Enforce sales rules of engagement with AgentMail for HubSpot teams

Ready for 3.0

by Stephan Koning ✓ · 11 views · created 2026-04-17 · CRM, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 49 nodes and runs on a schedule (cron 0 0 * * 0) (plus 3 other triggers). It uses only n8n's built-in nodes. It also calls api.agentmail.to over HTTP.

How it runs

Trigger: On a schedule (cron 0 0 * * 0) (plus 3 other triggers).

  1. ⚙️ Read Team_Config (Data table): get
  2. ⚙️ Load Team_Config (Data table): get
  3. ⚙️ Read Team_Config (sent) (Data table): get
  4. ⚙️ Read Team_Config (received) (Data table): get
  5. GET blockLists (HTTP Request): calls an HTTP API
  6. 🧠 Calculate Hierarchy Blocks (Code): runs custom JavaScript code
  7. 🧠 Smart Classify & Route (Code): runs custom JavaScript code
  8. 🧠 Find Expired Entries (Code): runs custom JavaScript code
  9. Blocks Needed? (If): checks a condition and branches into true / false
  10. 🔀 Route by Action (Switch): routes items into 2 branches

…plus 35 more steps. See the full node list below.

HTTP calls to: api.agentmail.to

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.

Nodes used (8)

From the author

Who’s it for This is for SaaS founders, agency owners, and Sales Ops managers who use HubSpot but are tired of "toe-stepping." If your BDRs are accidentally emailing your AE’s active deals, or Marketing is blasting "Closed Won" accounts with generic…

Excerpt from Stephan Koning's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.