📊 Dynamic AI web researcher: From plain text to custom CSV with GPT-4 and Linkup

⚡ 358 views · 📊 Market Research & Insights

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

This template introduces a revolutionary approach to automated web research. Instead of a rigid workflow that can only find one type of information, this system uses a “thinker” and “doer” AI architecture. It dynamically interprets your plain-English research request, designs a custom spreadsheet (CSV) with the perfect columns for your goal, and then deploys a web-scraping AI to fill it out.

It’s like having an expert research assistant who not only finds the data you need but also builds the perfect container for it on the fly. Whether you’re looking for sales leads, competitor data, or market trends, this workflow adapts to your request and delivers a perfectly structured, ready-to-use dataset every time.

Who is this for?

What problem does this solve?

How it works (The “Thinker & Doer” Method)

The process is cleverly split into two main phases:

  1. The “Thinker” (AI Planner): You submit a research request via the built-in form (e.g., “Find 50 US-based fashion companies for a sales outreach campaign”).
    • The first AI node acts as the “thinker.” It analyzes your request and determines the optimal structure for your final spreadsheet.
    • It dynamically generates a plan, which includes a discoveryQuery to find the initial list, an enrichmentQuery to get details for each item, and the JSON schemas that define the exact columns for your CSV.
  2. The “Doer” (AI Researcher): The rest of the workflow is the “doer,” which executes the plan.
    • Discovery: It uses a powerful “deep search” with Linkup.so to execute the discoveryQuery and find the initial list of items (e.g., the 50 fashion companies).
    • Enrichment: It then loops through each item in the list. For each one, it performs a fast and cost-effective “standard search” with Linkup to execute the enrichmentQuery, filling in all the detailed columns defined by the “thinker.”
    • Final Output: The workflow consolidates all the enriched data and converts it into a final CSV file, ready for download or further processing.

Setup

  1. Connect your AI provider: In the OpenAI Chat Model node, add your AI provider’s credentials.
  2. Connect your Linkup account: In the two Linkup (HTTP Request) nodes, add your Linkup API key (free account at linkup.so). We recommend creating a “Generic Credential” of type “Bearer Token” for this. Linkup offers €5 of free credits monthly, which is enough for 1k standard searches or 100 deep queries.
  3. Activate the workflow: Toggle the workflow to “Active.” You can now use the form to submit your first research request!

Taking it further

đź”— Nodes Used

HTTP Request, Basic LLM Chain, OpenAI Chat Model, n8n Form Trigger, Convert to File

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup