n8n

How to Automate HubSpot Gmail Lead Qualification?

Capture inbound form leads, check if the email is real, score the fit, and send a warm email from Gmail while logging the activity in HubSpot. Ideal for B2B teams that want faster responses and cleaner pipelines without extra manual work.

A built in form collects the business email. Hunter checks if the address is valid. If it passes, the flow calls MadKudu over HTTP to fetch a customer fit score. A rule compares that score to a threshold of 60. High scoring leads get created or updated in HubSpot. A Set step prepares the subject, recipient, and HTML content. Gmail sends the outreach email and the engagement is recorded back to HubSpot. Invalid or low scoring leads move to quiet branches so your team does not waste time.

You will need Gmail OAuth, HubSpot OAuth, a Hunter API key, and a MadKudu API key. Adjust the score threshold and the email template to match your ideal customer. Expect faster first touch, fewer spam contacts, and better focus for your sales team. Great for teams that want to qualify form leads before a sales call or for small teams that want to scale responses without adding headcount.

What are the key features?

  • n8n Form Trigger collects business emails and basic details.
  • Hunter email verification filters fake or risky addresses before scoring.
  • HTTP Request to MadKudu retrieves customer fit score by email.
  • If rule qualifies leads only when the fit score is above 60.
  • HubSpot contact creation or update keeps the CRM current.
  • Set node builds the subject, recipient, and HTML body for outreach.
  • Gmail sends a personalized email using the prepared content.
  • HubSpot engagement logging records the email for full visibility.
  • NoOp branches quietly handle invalid and low scoring leads.

What are the benefits?

  • Reduce manual lead review from 2 hours to 5 minutes
  • Automate 80% of email checks and scoring steps
  • Improve data quality by 90% with email verification
  • Handle 5 times more inbound leads without new hires
  • Connect 4 systems seamlessly for a single lead flow

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail, HubSpot, Hunter and MadKudu. See the Tools Required section above for links to create accounts with these services.
  3. Open the Form Trigger node and confirm the form title, description, and the field label for the email question match your site copy.
  4. In the Hunter node, double click the node, then on the 'Credential to connect with' dropdown, click 'Create new credential' and paste your Hunter API key from the Hunter dashboard API page.
  5. In the HTTP Request to MadKudu, create a new HTTP Header Auth credential. Add the required authorization header using your MadKudu API key from the MadKudu account settings.
  6. In the HubSpot nodes, create a new HubSpot OAuth2 credential by following the on screen steps in n8n Cloud and grant contacts and engagements permissions.
  7. In the Gmail node, create a new Gmail OAuth2 credential. Choose the correct Google account and approve the requested scopes for sending email.
  8. Check field mappings: make sure the email captured by the form is the same field used in Hunter and in the MadKudu request. If your form label changes, update the expressions in those nodes.
  9. Open the If node for customer fit and adjust the threshold if needed. Teams can start at 60 and tune up or down after a week of data.
  10. Edit the Set node to adjust subject, HTML content, and the 'to' field. Map 'to' to the captured email so Gmail sends to the right contact.
  11. In the HubSpot contact node, choose Create or Update and map the email property. In the HubSpot engagement node, confirm subject, HTML body, from and to fields are using the same values as the email.
  12. Click Test Workflow in n8n. Submit a sample email in the form. Verify Hunter status, confirm a MadKudu score appears, check the If routing, and see the contact and engagement in HubSpot. If you see 401 errors, recheck API keys. If Gmail does not send, confirm the 'to' field and Gmail OAuth status.
  13. Activate the workflow and use the production form URL from the Form Trigger to embed or link on your site.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

HubSpot

Sign up

Free: $0 / mo; API access included (private app or OAuth). Limits on Free: 250,000 API calls/day and 100 requests per 10 seconds per private app.

Hunter

Sign up

Free plan: $0 / mo, 50 credits / mo, API access included (0.5 credit per email verification)

MadKudu

Sign up
Credits:
Mutasem from n8n

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.