See llms.txt for all machine-readable content.

HubSpot and Perplexity integration

Save yourself the work of writing custom integrations for HubSpot and Perplexity and use n8n instead. Build adaptable and scalable Sales, workflows that work with your technology stack. All within a building experience you will love.

How to connect HubSpot and Perplexity

Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

HubSpot and Perplexity integration: Create a new workflow and add the first step

Enrich and score leads automatically with Claude AI, PDL and Perplexity

⚠️ Community Node Disclaimer This template uses the Apify LinkedIn Profile Scraper, which is a community node only available in self-hosted n8n installations. The LinkedIn scraping step is optional and can be removed for n8n Cloud compatibility. Who's it for Sales and marketing teams processing 20+ leads daily who need to eliminate manual research and focus reps on hot prospects. Perfect for B2B companies wanting to qualify inbound leads at scale using AI-powered enrichment and scoring. What it does This workflow automates lead qualification by enriching email addresses with firmographic data from People Data Labs, researching individuals and companies using Perplexity AI, scoring leads against your ICP criteria with Claude, and routing them to appropriate channels. Hot leads (8-10 score) get instant Slack alerts with personalized email drafts. Warm leads (5-7) go to a digest channel. Cold leads (0-4) log to your CRM only. Processing takes 30-60 seconds per lead versus 20 minutes manual research, costing $0.08-0.15 per lead. How it works The webhook receives an email address and optional name. Multiple enrichment sources run in parallel: PDL fetches contact and firmographic data, Perplexity researches the individual's recent activity and company developments, and optionally Apify scrapes their LinkedIn profile. All data merges into a complete profile. Claude AI scores the lead against your ICP rules stored in Google Docs, calculating points for company fit, title fit, buying signals, and timing. Based on the total score, leads route to three tiers with different handling. Hot leads trigger immediate Slack alerts and generate personalized email drafts using Gemini. All qualified leads optionally sync to your CRM. Requirements People Data Labs API (or Apollo/Clearbit alternative) Perplexity API Anthropic Claude API Google Docs for ICP rules Slack workspace Gmail account Optional: Apify for LinkedIn scraping (self-hosted only) Optional: HubSpot or other CRM Set up steps 1. Configure the webhook In the Webhook node, set your webhook path (default is "lead-intake"). Send POST requests with this JSON format: { "email": "lead@company.com", "name": "Optional Name" } 2. Add API credentials securely People Data Labs: In the PDL Enrich node, click "Credential for Header Auth" → Create new credential → Add header name X-Api-Key with your PDL API key as the value. This uses n8n's credential management instead of hardcoding keys. Perplexity: In both Individual Research and Company Research nodes, add your Perplexity API credentials. Anthropic: In the Anthropic Chat Model node, add your Claude API credentials. Slack: In both Slack nodes, set up OAuth2 and select your target channels. Hot and warm leads can route to different channels. Gmail: In the Send Hot Lead Email node, configure OAuth2 credentials. Google Docs: In the ICP & Use Case node, replace the documentURL with your Google Doc containing ICP scoring rules, then add OAuth2 credentials. Optional - Apify: In LinkedIn Profile Scraper node, add your Apify OAuth2 credentials from https://apify.com/curious_coder/linkedin-profile-scraper Optional - HubSpot: Enable the Upsert to HubSpot CRM node and add your credentials. Customize the customPropertiesValues array to match your fields. 3. Create your ICP rules document Create a Google Doc with this structure: COMPANY FIT (0-3 points): Company size: 50-500 employees = 3 points Industry: SaaS/Technology = 3 points Geography: North America = 3 points TITLE FIT (0-3 points): VP/C-level = 3 points Director = 2 points Manager = 1 point BUYING SIGNALS (0-2 points): Recent funding = 2 points New executive = 1 point TIMING (0-2 points): Urgent need = 2 points Copy the URL and paste it in the ICP & Use Case node's documentURL parameter. 4. Test the workflow Activate the workflow and send a test webhook. Monitor the execution to verify enrichment sources return data, AI scoring completes, routing works correctly, and notifications send to the right channels. How to customize Swap enrichment sources: Replace the PDL Enrich node with Apollo or Clearbit HTTP Request nodes. Update the Merge Enrichment Data node to parse the new response format. Adjust scoring thresholds: In the AI Agent node prompt, change the score ranges (currently 8-10 = hot, 5-7 = warm, 0-4 = cold) and add custom scoring factors like technology stack match or budget authority. Change routing: In the Route by Score node, add new output conditions for additional tiers like VIP or modify existing thresholds. Different notifications: Replace Slack nodes with Gmail or add Twilio nodes for SMS. Update the formatting nodes to create appropriate message templates. Use different AI models: Swap the Anthropic Chat Model with OpenAI for GPT-4 or replace the Gemini formatting nodes with Claude for consistency. Remove LinkedIn scraping: Delete the LinkedIn Profile Scraper node and adjust Merge All Sources to accept 4 inputs instead of 5 for n8n Cloud compatibility. Connect different CRMs: Replace the HubSpot node with Salesforce, Pipedrive, or other CRM nodes. Update the Format for CRM node's field mappings to match your CRM's structure.aiosdhioahiosda.PNG

Popular ways to use the HubSpot and Perplexity integration

Build your own HubSpot and Perplexity integration

Create custom HubSpot and Perplexity workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

HubSpot supported actions

Perplexity supported actions

HubSpot and Perplexity integration details

HubSpot

HubSpot is a leading all-in-one marketing and sales software that is tailored for content marketing, SEO, landing pages, lead management, marketing automation and more. It is easy to use, and can help you have a clear view of your entire sales cycle.

Perplexity

Perplexity is an AI‑powered answer engine that combines real‑time web search with natural‑language responses and inline citations. Available on web, desktop, and mobile, it supports conversational follow‑ups, file upload, voice input, image generation, and deep‑research tools via its Pro tier.

Other integrations with HubSpot and Perplexity

Supercharge your CRM

Need a more powerful integration with your CRM? n8n lets you go beyond standard integrations offered by popular CRMs!

Learn more

FAQ about HubSpot integrations

Need help setting up your HubSpot and Perplexity integration?

Discover our latest community's recommendations and join the discussions about HubSpot and Perplexity integration.

  • Jonas Wagner

    How can I edit the subscription type a contact is subscribed to?

    Jonas Wagner

    Hi, I am new here :smiley: I have a Notion form for interested contacts to subscribe to my hubspot newsletter. How can I change the subscription of a contact when he fills the form and a new contact is created in Hubsp…

    Open topic

Looking to integrate Slack and VirusTotal in your company?

Three colleagues talking around laptops at a shared desk

Trusted by teams building smarter workflows.

Why

Why use n8n to integrate HubSpot with Perplexity

Handle branching, merging and iteration easily. Pause your workflow to wait for external events.

Re-run single steps to test changes in no time. And pin your data to avoid generating trigger events every time you execute.

Your data is displayed alongside your settings, making edge cases easy to track down.

Use 1000+ workflow templates available from our core team and our community.

Copy and paste, easily import and export workflows.

Simple enough to 
understand + sophisticated 
enough to ship

Man in a brown jacket working at his desk by a window