Close Menu
Content DistilledContent Distilled
  • Tech
    • Ai Gen
    • N8N
    • MCP
  • Javascript
  • Business Ideas
  • Startup Ideas
  • Tech Opinion
  • Blog

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

What's Hot

Turn Any GitHub Repo Into AI Tutorials in 5 Minutes

July 14, 2025

5 New NotebookLM Features That Will Transform Your Learning

July 13, 2025

Build SaaS Image Generator: React, Convex & OpenAI Tutorial

July 12, 2025
Facebook X (Twitter) Instagram
  • Tech
    • Ai Gen
    • N8N
    • MCP
  • Javascript
  • Business Ideas
  • Startup Ideas
  • Tech Opinion
  • Blog
Facebook X (Twitter) Instagram Pinterest
Content DistilledContent Distilled
  • Tech
    • Ai Gen
    • N8N
    • MCP
  • Javascript
  • Business Ideas
  • Startup Ideas
  • Tech Opinion
  • Blog
Content DistilledContent Distilled
Home»Tech»N8N»Build a Complete Data Enrichment Workflow in Naiden
N8N

Build a Complete Data Enrichment Workflow in Naiden

PeterBy PeterMay 15, 2025Updated:June 30, 2025No Comments6 Mins Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
Share
Facebook Twitter LinkedIn Pinterest Email

Based on a tutorial by Naiden Advanced Course

If you’re looking to build powerful automated workflows in Naiden but struggle with putting all the pieces together, you’re not alone. Creating end-to-end workflows that handle real business processes can be challenging.

I’ve summarized this comprehensive tutorial that walks through building a complete workflow from scratch, including form triggers, API integration, error handling, and more. This will save you time while still capturing all the essential techniques.

Quick Navigation

  • Workflow Overview & Objective (00:00-01:00)
  • Setting Up Form Trigger (01:01-02:45)
  • Preparing URL Data (02:46-04:30)
  • API Integration with People Data Lab (04:31-07:00)
  • Error Handling (07:01-08:30)
  • Data Filtering & Google Sheets Integration (08:31-10:45)
  • Creating Slack Notifications (10:46-13:30)

Workflow Overview & Objective (00:00-01:00)

This tutorial demonstrates how to build a complete workflow that takes a list of company URLs via a form, enriches them with company data from the People Data Lab API, filters for European companies, adds them to a Google Sheet, and sends a summary notification to Slack.

Key Points:

  • The workflow uses a form trigger as the entry point
  • Data enrichment happens via the People Data Lab API
  • Error handling ensures workflow reliability
  • Only European companies are added to Google Sheets
  • A summary message is sent to Slack with a link to the sheet

My Take:

This workflow combines several essential automation techniques into one practical use case. It’s perfect for lead generation teams or market research that need to quickly process and enrich company information from just their website URLs.

Setting Up Form Trigger (01:01-02:45)

The workflow begins with a form trigger that collects a comma-separated list of company URLs. This creates a shareable interface that anyone can use to submit data.

Key Points:

  • Add a form trigger node with a single field called “URL”
  • The form accepts multiple URLs separated by commas
  • For testing purposes, you can pin the submitted data
  • Test example: URLs for Google, Naiden, Facebook, Pulan, and Spendesk

My Take:

Using a form as an entry point makes your workflow accessible to non-technical team members. It’s a great way to democratize data processes in your organization without requiring everyone to understand the underlying automation.

Preparing URL Data (02:46-04:30)

Before enrichment can begin, the comma-separated URLs need to be transformed into individual items that can be processed one at a time.

Key Points:

  • Use an Edit Fields node to convert the comma-separated string into an array
  • Configure the field name as “URL list” with type “array”
  • Use the Split Out node to convert the array into separate workflow items
  • Add a Loop Over Items node with batch size set to 1

// Within Edit Fields node
// Field: URL list
// Type: Array
// Value: Split input by comma
{
  name: "URL list",
  type: "array",
  value: "{{$json.URL.split(',')}}"
}
    

My Take:

This pattern of converting strings to arrays and then splitting them into individual workflow items is extremely useful. It lets you accept bulk input from users while processing each item individually with proper error handling.

API Integration with People Data Lab (04:31-07:00)

The heart of the workflow is the HTTP node that connects to the People Data Lab API to enrich each URL with company information.

Key Points:

  • Add an HTTP node configured for a GET request
  • Set up authentication using your People Data Lab API key
  • Configure the query to search for company data by website
  • Use dynamic expressions to insert each URL from the loop
  • Process one URL at a time for better error handling

// HTTP Node Configuration
{
  "method": "GET",
  "url": "https://api.peopledatalab.com/v5/company/enrich",
  "headers": {
    "X-API-Key": "YOUR_PDL_API_KEY"
  },
  "body": {
    "size": 1,
    "sql": "SELECT * FROM company WHERE website = '" + $json.URL list + "'"
  }
}
    

My Take:

The People Data Lab API is powerful for company enrichment, but notice how this pattern works for any API. Just replace the endpoint and adjust the query format, and you could use this same workflow structure with Clearbit, Hunter.io, or any other data enrichment service.

Error Handling (07:01-08:30)

To ensure the workflow is robust, an If node checks for successful API responses and handles errors gracefully.

Key Points:

  • Add an If node after the HTTP request
  • Check if the status code is not equal to 200
  • If there’s an error, stop execution and throw a descriptive error
  • If successful, continue processing the next item

// If Node Condition
$json.status !== 200

// True path: Error handling
// Action: Stop and throw error
"Error on PDL enrichment"
    

My Take:

Never skip error handling in production workflows. This approach lets you gracefully fail on individual items without crashing the entire workflow. For even more robust error handling, you could log the errors to a separate Google Sheet for later review.

Data Filtering & Google Sheets Integration (08:31-10:45)

After enrichment, the workflow simplifies the complex JSON response, filters for European companies only, and appends the matching records to a Google Sheet.

Key Points:

  • Use Edit Fields to extract only needed data from the API response
  • Focus on company name, employee count, country, continent, and funding
  • Add an If node to filter for companies where continent equals “Europe”
  • Connect a Google Sheets node to append the filtered data
  • Map the relevant fields to your sheet columns

// Edit Fields for data simplification
{
  "name": "{{$json.data[0].name}}",
  "employee_count": {{$json.data[0].employee_count}},
  "country": "{{$json.data[0].location.country}}",
  "continent": "{{$json.data[0].location.continent}}",
  "funding": {{$json.data[0].total_funding_raised}}
}

// If Node Condition for filtering
$json.continent === "Europe"
    

My Take:

Simplifying complex API responses before further processing is a best practice. It makes your workflow more readable and easier to debug. The filtering step also shows how you can create targeted workflows that only process specific data matching your business criteria.

Creating Slack Notifications (10:46-13:30)

The final step creates a dynamic Slack notification that summarizes the workflow execution and provides a convenient link to the Google Sheet.

Key Points:

  • Use the Summarize node to count the number of processed companies
  • Add a Slack node configured to send a message to a specific user
  • Implement Slack Blocks for advanced message formatting
  • Include dynamic data with the count of added companies
  • Add a button that links directly to the Google Sheet

// Slack Blocks Format
[
  {
    "type": "section",
    "text": {
      "type": "mrkdwn",
      "text": "Your Naiden workflow just added {{$json.counter_name}} companies to your Google sheet!"
    }
  },
  {
    "type": "section",
    "text": {
      "type": "mrkdwn",
      "text": "Here is a link to access your Google sheet:"
    },
    "accessory": {
      "type": "button",
      "text": {
        "type": "plain_text",
        "text": "Google Sheet",
        "emoji": true
      },
      "value": "click_me_123",
      "url": "https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit",
      "action_id": "button-action"
    }
  }
]
    

My Take:

The Slack notification is what transforms this from a simple data pipeline into a true business workflow. By notifying users when the process completes and providing a direct link to the results, you close the loop and make the automation immediately actionable for your team.

This article summarizes the excellent tutorial created by Naiden Advanced Course. If you found this summary helpful, please support the creator by watching the full video and subscribing to their channel.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Peter
  • Website

Related Posts

How to Create Zalo Chatbot with N8N – Complete Tutorial

July 10, 2025

Complete Guide: Installing n8n Automation Platform on Ubuntu VPS

June 30, 2025

Create AI Chatbots Without Code: N8N, Loom & Vercel Guide

May 27, 2025

Deploy Self-Hosted Content Apps with Coolify & Strapi on Vultr

May 24, 2025
Add A Comment
Leave A Reply Cancel Reply

Editors Picks
Top Reviews
Advertisement
Content Distilled
Facebook Instagram Pinterest YouTube
  • Home
  • Tech
  • Buy Now
© 2025 Contentdistilled.com Contentdistilled.

Type above and press Enter to search. Press Esc to cancel.