What this workflow does
This workflow fetches leads from Pipedrive, adds company data from Clearbit automatically, and alerts a Slack channel about valuable leads.
It saves time by avoiding manual lead research and helps sales teams act fast on good leads.
Every 5 minutes, it checks active leads, finds company domain info, gets company revenue and employees from Clearbit, updates Pipedrive, and sends alerts for big companies tagged B2B.
Who should use this workflow
Sales managers or operations teams who use Pipedrive to track leads can use this.
It helps if the team wants faster, better lead data and uses Slack to communicate.
The workflow is for people who want to automate lead enrichment without manual work or extra tools.
It needs some API keys and custom fields in Pipedrive but no coding skills required.
Tools and services used
- Pipedrive API: To get leads and organizations, and update lead data.
- Clearbit API: To get company details like revenue and number of employees by domain.
- Slack API: To post alert messages to a Slack channel.
- n8n platform: Runs all these nodes and lets user connect services in automated steps.
How this workflow works inside n8n
Inputs
The workflow starts with scheduled trigger every 5 minutes.
It takes no user input but uses API credentials and custom field IDs configured in setup.
Processing steps
- Get active leads from Pipedrive.
- For each lead, fetch associated organization details from Pipedrive.
- Use Clearbit API to enrich company data by domain from the organization.
- Add organization ID to the enrichment data.
- Merge enriched data with lead data based on organization ID.
- Update lead in Pipedrive with enrichment date in custom field.
- Filter leads tagged “B2B” with revenue >5 million and employees >100.
- Send alert message with company info to Slack channel for filtered leads.
Output
Leads in Pipedrive are updated with new company info and enrichment timestamp.
Slack channel receives alert messages about high-value leads.
Beginner step-by-step: How to use this workflow in n8n
Step 1: Import the workflow
- Download the workflow file using the Download button on this page.
- Open your n8n editor and click “Import from File” to upload the workflow.
Step 2: Set up credentials
- Add API credentials for Pipedrive, Clearbit, and Slack if not present.
- Go to the Setup node and enter the correct IDs for Pipedrive custom fields: Domain and Enriched at date fields.
- Update Slack channel name where alerts should send (e.g. #sales-leads).
Step 3: Test the workflow
- Run the workflow manually once to check for errors and confirm leads get enriched.
- Check Pipedrive lead’s “Enriched at” field updates and Slack messages post.
Step 4: Activate workflow
- Turn on the scheduled trigger (Trigger every 5 minutes) to run the workflow automatically.
- Monitor recent runs in n8n dashboard for any failures.
If using self hosting n8n, consider resources to keep the workflow running smoothly: self-host n8n.
Customization ideas
- Change lead filters by editing the Keep leads that match the criteria node. Adjust revenue or employees numbers.
- Edit the Slack message format to include other company info like industry or contact details.
- Add other data sources like LinkedIn API to enrich leads more deeply.
- Change Slack channel dynamically by region or lead size using a code node before Slack node.
- Adjust workflow trigger timing from 5 minutes to hourly or daily as needed.
What to watch out for
- Ensure Pipedrive custom field IDs in the Setup node exactly match your account.
- API keys must be current and have required permissions in Pipedrive, Clearbit, and Slack.
- Make sure organization domain field has data to avoid Clearbit errors.
- Slack token needs chat:write permission and correct channel name or ID.
- Backup Pipedrive data before running bulk updates.
Summary of results
✓ Sales leads in Pipedrive automatically get matched with current company data.
✓ Leads qualifying as large B2B are instantly flagged and messaged to Slack.
✓ Saves hours of manual research and speeds sales follow-up.
✓ Keeps lead info accurate and up to date without extra tools.
✓ Workflow runs on schedule, minimal effort after setup.
