Templates / Qualify agency leads and draft email replies with OpenAI, HubSpot, Gmail and Slack

Qualify agency leads and draft email replies with OpenAI, HubSpot, Gmail and Slack

Ready for 3.0

by Minimolo Studio · 0 views · created 2026-10-20 · Lead Generation, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 24 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, HubSpot, Gmail and Slack. It also calls api.hubapi.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Settings (Edit Fields (Set)): sets 14 fields: agencyName, model, services…
  2. Validate and normalise lead (Code): runs custom JavaScript code
  3. Valid submission? (If): checks a condition and branches into true / false
  4. Find existing HubSpot enquiry (HTTP Request): calls api.hubapi.com (POST)
  5. Return validation errors (Respond to Webhook): sends the response back to the webhook caller
  6. Enquiry already exists? (If): checks a condition and branches into true / false
  7. Alert agency processing failure (Slack): uses Slack
  8. Return existing deal (Respond to Webhook): sends the response back to the webhook caller
  9. Website domain approved? (If): checks a condition and branches into true / false
  10. Return recoverable processing error (Respond to Webhook): sends the response back to the webhook caller

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

Services it uses

OpenAI Chat ModelHubSpotGmailSlack

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (12)

From the author

Quick overview This workflow receives agency enquiries via an authenticated webhook, uses OpenAI to extract a structured brief and draft reply (optionally enriching with an approved company homepage), deduplicates by searching HubSpot deals, then creates or…

Excerpt from Minimolo Studio'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.