Workflow

Find Leads That Fit Your Criteria

Automatically discover and qualify leads that match your custom criteria using AI-powered web research, then deduplicate and enrich them in Google Sheets

Needle Team

Last updated

January 8, 2026

Connectors used

Google Sheets

Tags

Lead GenerationMarket IntelligenceB2B ProspectingSales Automation

Key Takeaways

  • Automated daily lead discovery - The workflow searches the web every day at 6:00 AM UTC to find leads matching your custom criteria
  • Built-in deduplication - Each discovered lead is checked against your existing Google Sheet so duplicates are automatically filtered out
  • Structured data output - Leads are enriched with company details, contact information, and qualifying data before being added to your sheet
  • Fully customizable criteria - Edit the AI prompt to define your ideal customer profile, target industries, regions, or any other qualifying factors

What This Workflow Does

This workflow automatically discovers and qualifies leads that match your custom criteria using AI-powered web research, then deduplicates and enriches them in Google Sheets. It runs on a daily schedule, so your lead database grows continuously without manual effort.

Use cases:

  • B2B prospecting for agencies or service providers with documented case studies
  • Partnership development across specific regions or industries
  • Competitive intelligence and market research
  • Building targeted outreach lists with enriched company data

How It Works

StepWhat Happens
1. Scheduled TriggerThe workflow runs automatically every day at 6:00 AM UTC
2. Fetch Existing LeadsAn AI Agent reads your current Google Sheet to know which leads you already have
3. AI Web ResearchAn AI Agent uses web browsing and internet search to find leads matching your criteria
4. Split ResultsA Code node converts the discovered agencies array into individual items for processing
5. Deduplication CheckEach discovered lead is compared against your existing sheet to determine if it is new
6. Merge and FilterResults are merged and split into two paths: new leads and already-tracked leads
7. Update Google SheetOnly new, verified leads are upserted into your Google Sheet with all enriched fields

Workflow Nodes

NodeRole
Scheduled TriggerRuns the workflow daily at 6:00 AM UTC
AI Agent (Fetch Sheet)Retrieves existing lead data from Google Sheets using the get_values_in_range tool
AI Agent (Web Research)Searches the web globally for leads using browse_web_page and search_internet tools (model: gpt-4.1)
Code (Split to Items)Converts the agencies array into individual items for per-lead processing
AI Agent (Dedup Check)Compares each lead against the Google Sheet to flag new vs. existing entries
MergeCombines deduplication results with lead data
Filter (New Leads)Passes only leads marked as new
Filter (Already Tracked)Catches leads that already exist in your sheet
AI Agent (Update Sheet)Upserts new leads into Google Sheets using upsert_row, get_values_in_range, find_row, and add_single_row tools

Setup Instructions

  1. Add the "Find Leads That Fit Your Criteria" workflow template to Needle
  2. Copy the template Google Sheet to your own Google Drive
  3. Create a Google Sheets connector in Needle and select it in all AI Agent nodes that use Google Sheets tools
  4. Update the Google Sheet links in each AI Agent prompt to point to your copied sheet
  5. Edit the web research AI Agent prompt to define your specific lead criteria

Customization

What You Can ChangeHow
Lead criteriaEdit the AI prompt in the web research node to define your ideal customer profile, target industries, and regions
Output fieldsModify the structured output schema and Google Sheet columns (default: agency_name, agency_country, case_study_url, specialization, client_name, client_industry, solution_type, target_department, email, target_person)
Schedule frequencyChange the cron expression in the Scheduled Trigger node (default: 0 6 * * *, which is daily at 6:00 AM UTC)
AI modelChange the model used in the AI Agent nodes (default: gpt-4.1)

FAQ

Q: What Google Sheet columns does this workflow use? A: The default columns are agency_name, agency_country, case_study_url, specialization, client_name, client_industry, solution_type, target_department, email, and target_person. You can customize these by editing the AI prompts and sheet structure.

Q: Can I change the search criteria? A: Yes. The AI web research node contains a detailed prompt that defines what types of leads to look for. Edit that prompt to match your specific needs, such as different industries, regions, or qualifying factors.

Q: How does deduplication work? A: The workflow fetches your existing Google Sheet data, then each newly discovered lead is checked against it. Leads already present in the sheet are filtered out, and only genuinely new entries are added.

Want to showcase your own workflows?

Become a Needle workflow partner and turn your expertise into recurring revenue.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .