Workflow

Qualify Leads with Deep Research

Automate lead qualification by using AI to analyze spreadsheet data, update records, and notify your team via email, ensuring everyone stays informed effortlessly.

Needle Team

Last updated

October 1, 2025

Connectors used

Google Sheets
Google Mail

Tags

Lead QualificationSales IntelligenceProspecting ToolsB2B Sales

Key Takeaways

  • AI-powered lead qualification - Uses GPT-4.1 to evaluate each lead in your spreadsheet and determine relevance automatically
  • Google Sheets integration - Reads lead data from a spreadsheet, processes it, and writes results back to the same sheet
  • Parallel processing - Runs AI evaluation and row lookup simultaneously, then merges results before updating
  • Email notifications - Sends a Gmail notification to your team once the research is complete
  • No manual review needed - The AI makes true/false relevance decisions so your team only focuses on qualified leads

What This Workflow Does

This Needle workflow automates lead qualification by reading data from a Google Sheets spreadsheet, running each entry through an AI evaluation using GPT-4.1, and writing the relevance results back to the sheet. Once all leads are processed, it sends an email notification to keep your team informed. Instead of manually researching each lead, the AI handles the evaluation and your spreadsheet stays up to date automatically.

Use cases:

  • Qualifying inbound leads from a spreadsheet before sales outreach
  • Scoring and filtering large lists of prospects against your ideal customer profile
  • Automating repetitive lead research that would otherwise take hours of manual work

How It Works

StepWhat Happens
1. Manual TriggerYou start the workflow manually when you have new leads to process
2. Google Sheets: Get ValuesFetches all data from your lead spreadsheet
3. Code (JavaScript)Parses the raw sheet data into structured key-value pairs using headers
4. AI Agent (GPT-4.1)Evaluates each lead and returns a true/false relevance decision
5. Google Sheets: Find RowLocates the matching row for each lead in the spreadsheet
6. Transform + MergeCombines the AI relevance result with the row data
7. Google Sheets: Update RowsWrites the relevance values back to the spreadsheet
8. Gmail: Send EmailSends a notification email that the research is complete

Workflow Nodes

NodeRole
Manual TriggerStarts the workflow on demand
Google Sheets: Get Values in RangeReads lead data from your spreadsheet
Code (JavaScript)Converts raw rows into structured objects with headers as keys
AI Agent (GPT-4.1)Evaluates each lead for relevance, returning true or false
Google Sheets: Find RowFinds the specific row for each lead item
Transform (clean row)Removes the index field from the found row data
Transform (wrap result)Wraps the AI relevance result into a structured object
MergeCombines the AI evaluation and row lookup results into one dataset
Google Sheets: Update Multiple RowsWrites relevance values back to the "Relevant" column
Google Sheets: Update RowUpdates individual rows as needed
Gmail: Send EmailSends a notification email when processing is complete

Setup Instructions

  1. Add the "Qualify Leads with Deep Research" workflow template to your Needle workspace
  2. Connect your Google Sheets account so the workflow can read and update your spreadsheet
  3. Connect your Gmail account for sending notification emails
  4. Update the Google Sheets URL in the nodes to point to your own lead spreadsheet
  5. Adjust the AI prompt to match your specific qualification criteria and ideal customer profile

Customization

What You Can ChangeHow
Qualification criteriaEdit the AI Agent's system prompt to define what makes a lead relevant to your business
AI modelChange the model in the AI Agent node (default is GPT-4.1)
Spreadsheet sourceUpdate the Google Sheets URL in the Get Values and Find Row nodes
Notification recipientChange the email address in the Gmail Send Email node
Column to updateModify the Update Multiple Rows instructions to target a different column
Processing modeFor large datasets, use the Update Row node instead of Update Multiple Rows for better reliability

FAQ

Q: How many leads can this workflow process at once? A: The workflow processes all rows in your spreadsheet. For very large datasets, the sticky note in the template recommends using the single Update Row node instead of Update Multiple Rows for better reliability.

Q: What format does my spreadsheet need to be in? A: Your spreadsheet should have column headers in the first row. The Code node automatically maps headers to values, so any column structure works as long as the first row contains headers.

Q: Can I change the AI evaluation from true/false to a score? A: Yes. Edit the AI Agent's system prompt to return a numeric score or any other format you prefer, and adjust the Transform and Update nodes accordingly.

Q: Does the workflow run automatically on a schedule? A: By default it uses a Manual Trigger, so you start it when ready. You can replace the Manual Trigger with a Scheduled Trigger if you want it to run on a recurring basis.

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 .