Skip to main content

DNB company search & extract with Bright Data and OpenAI 4o mini

Workflow preview

Workflow preview
100%
DNB company search & extract with Bright Data and OpenAI 4o mini preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Notice Community nodes can only be installed on self hosted instances of n8n. Who this is for The DNB Company Sea...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-mcp.mcpclient, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.function, n8n-nodes-base.readwritefile, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ranjan Dailata.

Original n8n.io source

1.1 Workflow description

Title
DNB company search & extract with Bright Data and OpenAI 4o mini
Workflow name
DNB company search & extract with Bright Data and OpenAI 4o mini

Notice

Community nodes can only be installed on self-hosted instances of n8n.

Who this is for

The DNB Company Search & Extract workflow is designed for professionals who need to gather structured business intelligence from Dun & Bradstreet (DNB).

It is ideal for:

  • Market Researchers

  • B2B Sales & Lead Generation Experts

  • Business Analysts

  • Investment Analysts

  • AI Developers Building Financial Knowledge Graphs

What problem is this workflow solving?

Gathering business information from the DNB website usually involves manual browsing, copying company details, and organizing them in spreadsheets.

This workflow automates the entire data collection pipeline — from searching DNB via Google, scraping relevant pages, to structuring the data and saving it in usable formats.

What this workflow does

This workflow performs automated search, scraping, and structured extraction of DNB company profiles using Bright Data’s MCP search agents and OpenAI’s 4o mini model.

Here's what it includes:

Set Input Fields: Provide search_query and webhook_notification_url.

Bright Data MCP Client (Search): Performs Google search for the DNB company URL.

Markdown Scrape from DNB: Scrapes the company page using Bright Data and returns it as markdown.

OpenAI LLM Extraction:

Transforms markdown into clean structured data.

Extracts business information (company name, size, address, industry, etc.)

Webhook Notification: Sends structured response to your provided webhook.

Save to Disk: Persists the structured data locally for logging or auditing.

Pre-conditions

  1. Knowledge of Model Context Protocol (MCP) is highly essential. Please read this blog post - model-context-protocol
  2. You need to have the Bright Data account and do the necessary setup as mentioned in the Setup section below.
  3. You need to have the Google Gemini API Key. Visit Google AI Studio
  4. You need to install the Bright Data MCP Server @brightdata/mcp
  5. You need to install the n8n-nodes-mcp

Setup

  1. Please make sure to setup n8n locally with MCP Servers by navigating to n8n-nodes-mcp
  2. Please make sure to install the Bright Data MCP Server @brightdata/mcp on your local machine.
  3. Sign up at Bright Data.
  4. Navigate to Proxies & Scraping and create a new Web Unlocker zone by selecting Web Unlocker API under Scraping Solutions.
  5. Create a Web Unlocker proxy zone called mcp_unlocker on Bright Data control panel.
  6. In n8n, configure the OpenAi account credentials.
  7. In n8n, configure the credentials to connect with MCP Client (STDIO) account with the Bright Data MCP Server as shown below.

Make sure to copy the Bright Data API_TOKEN within the Environments textbox above as API_TOKEN=<your-token>. 7. Update the Set input fields for search_query and webhook_notification_url. 8. Update the file name and path to persist on disk.

How to customize this workflow to your needs

  • Search Engine: Default is Google, but you can change the MCP client engine to Bing, or Yandex if needed.

  • Company Scope: Modify search query logic for niche filtering, e.g., "biotech startups site:dnb.com".

  • Structured Fields: Customize the LLM prompt to extract additional fields like CEO name, revenue, or ratings.

  • Integrations: Push output to Notion, Airtable, or CRMs like HubSpot using additional n8n nodes.

  • Formatting: Convert output to PDF or CSV using built-in File and Spreadsheet nodes.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Set input fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - List all tools for Bright Data

Type / Role
n8n-nodes-mcp.mcpClient - mcpClient
Config choices
Version 1

Block 5 - MCP Client for Search Engine

Type / Role
n8n-nodes-mcp.mcpClient - mcpClient
Config choices
Version 1

Block 6 - Bright Data MCP Client For DNB

Type / Role
n8n-nodes-mcp.mcpClient - mcpClient
Config choices
Version 1

Block 7 - DNB URL Data Extract Using LLM

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 8 - DNB Structured Data Extract Using LLM

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 9 - Create a binary data for Structured Data Extract

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 10 - Write the structured content to disk

Type / Role
n8n-nodes-base.readWriteFile - readWriteFile
Config choices
Version 1

Block 11 - Initiate a Webhook Notification for Structured Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Structured Output Parser for URL

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 16 - Structured Output Parser for Structured Extract

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 17 - OpenAI Chat Model for URL Data Extract

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 18 - OpenAI Chat Model for DNB Structured Data Extract

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

3. Summary Table

Workflow DNB company search & extract with Bright Data and OpenAI 4o mini
Complexity advanced
Nodes 18
Categories Lead Generation, AI Summarization
Author Ranjan Dailata
Published 09 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4821/4821.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does DNB company search & extract with Bright Data and OpenAI 4o mini do?

Notice Community nodes can only be installed on self hosted instances of n8n. Who this is for The DNB Company Sea...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.