Automate Domain Verification in HubSpot to Slack Alerts via n8n

This n8n workflow automates domain verification for new HubSpot companies, detecting invalid or suspicious domains and sending instant Slack alerts. It saves hours spent on manual checks and prevents potential business risks from disposable or problematic email domains.
hubspotTrigger
hubspot
httpRequest
+2
Workflow Identifier: 2387
NODES in Use: HubSpot Trigger, HubSpot, HTTP Request, IF, Slack
Automate domain verification with n8n and HubSpot

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow starts when a new company is added in HubSpot. It gets the full company info, tries to open the company’s website, and checks if the site works fine. If the website is broken or suspicious, it sends a message to a Slack channel with details about the company. This helps the team find bad domains fast without checking manually.

The workflow saves time by running automatically and stops bad leads from wasting effort. It connects HubSpot and Slack through n8n and uses the website response to decide if a domain is good or not.


Tools and Services Used

  • HubSpot CRM: Sends new company creation events and holds company info.
  • Slack workspace: Receives alert messages about suspicious domains.
  • n8n automation platform: Runs the workflow to connect services and check domains.

Inputs, Processing, and Outputs

Inputs

  • New company creation event from HubSpot with company ID.
  • Company website domain from HubSpot company details.

Processing Steps

  • Get detailed company information using the company ID.
  • Make an HTTP GET request to the company website URL.
  • Check the HTTP status code of the website response (expect 200 for OK).
  • If response is not OK, prepare an alert message.
  • Send alert message to Slack channel with company name, domain, and ID.

Outputs

  • Slack alert message when domain is suspicious or site is unreachable.

Beginner step-by-step: How to use this workflow in n8n

Import Workflow

  1. Download the workflow using the Download button on this page.
  2. In the n8n editor, click “Import from File” and upload the downloaded workflow.

Configure Credentials

  1. Add HubSpot API Key credentials in the HubSpot nodes.
  2. Add Slack Bot API credentials in the Slack node.

Update Settings

  1. Check and update Slack channel if needed (default is #hubspot-alerts).
  2. Verify expressions in nodes match correct property names:
    {{$json["companyId"]}

    {{$node["Get company information"].json["properties"]["domain"]["value"]}

Test Workflow

  1. Add a test company in HubSpot with a valid domain.
  2. Watch the Slack channel for alert messages.

Activate Workflow

  1. After testing, activate the workflow in n8n so it runs automatically.
  2. Monitor execution to ensure alerts work correctly.

This method lets beginners quickly run the workflow without building from scratch. The workflow can run on cloud or self-host n8n.


Step-by-Step Guide

Step 1: Set up the HubSpot Trigger node

Choose the “On new company created” trigger event.

Connect the HubSpot Developer API credentials.

Step 2: Add the Get company HubSpot node

Use operation “Get company”.

Enter company ID using {{$json["companyId"]}}.

Step 3: Insert HTTP Request node to load domain

Set method to GET.

Use URL from {{$json["properties"]["domain"]["value"]}}.

Enable full response to get status code.

Step 4: Add IF node to check HTTP status

Check if {{$json["statusCode"]}} equals 200.

Step 5: Add Slack node to post messages

Choose “Post Message”.

Set channel (default #hubspot-alerts).

Use this message template:

=:warning: New Company with suspicious domain :warning:
*Name: * {{$node["Get company information"].json["properties"]["name"]["value"]}}
*Domain: * {{$node["Get company information"].json["properties"]["website"]["value"]}}
*ID: * {{$node["Get company information"].json["companyId"]}}

Step 6: Connect nodes in order and activate

Link nodes as: HubSpot Trigger → Get company → HTTP Request → IF → Slack.

Save the workflow and activate it.


Customizations ✏️

  • Add HTTP status codes like 400, 404, 500 in the IF node to catch more bad domains.
  • Add more company info in Slack alert like industry or location for context.
  • Use external APIs or code nodes to check desktop email domain lists before alerting.

Troubleshooting 🔧

Problem: “No data from HubSpot node”

Cause: Company ID not passed correctly.

Fix: Check expression {{$json["companyId"]}} and debug input.

Problem: “Slack messages not posting”

Cause: Wrong Slack API Key or channel.

Fix: Re-authenticate Slack node and confirm channel name.

Problem: “HTTP request status code missing or wrong”

Cause: HTTP Request node missing full response setting.

Fix: Set “Full response” option true in the HTTP Request node.


Pre-Production Checklist ✅

  • Test HubSpot Developer API credentials and webhook triggers.
  • Try HTTP Request node with good and bad URLs.
  • Send a test Slack message to validate connection.
  • Check all node connections and expressions.
  • Backup workflows before turning on.

Deployment Guide

Activate the workflow after testing.

Watch logs for errors and success.

Check Slack alerts to notify team.

Adjust conditions based on alert accuracy.


Summary

✓ Saves at least 3-4 hours weekly by automating domain checks.

✓ Stops bad leads with suspicious domains from wasting time.

→ Sends Slack alerts when domain checks fail.

→ Works with HubSpot’s new company creation event to run automatically.


Automate domain verification with n8n and HubSpot

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow triggers when a new company is created in HubSpot.
It sends an HTTP GET request to the company’s domain and checks if the status code is 200.
The workflow posts an alert message with company details to a specified Slack channel.
Download the workflow file, import it into n8n, add required HubSpot and Slack API credentials, test once, and activate it.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.