Analyze - AI Search Analytics Platform
Back to All Prompts

ChatGPT Prompt for Nested Boolean Lead Search

This prompt lets ChatGPT act like a lead generation expert and create complex nested Boolean search queries for precise prospecting.

When to use this prompt

When sourcing targeted leads for sales or recruitment campaigns.

When refining complex searches on LinkedIn, Google, or databases.

When excluding irrelevant job titles, industries, or locations.

When building high-quality, precise prospect lists for outreach or marketing.

The prompt

Create a nested Boolean search query to find leads in [Criteria 1] AND [Criteria 2] while excluding [Criteria 3].
Ensure the query:

  • Uses proper parentheses and Boolean operators (AND, OR, NOT)

  • Is optimized for platforms like LinkedIn Sales Navigator, Google, or job/resume databases

  • Filters for highly relevant and high-quality leads

Variables to replace:

[Criteria 1][Criteria 2][Criteria 3]

Real-life example of how to use this prompt

To start, let’s assume I’m a senior marketer at HubSpot. The prompt in the context of HubSpot would look like:

Create a nested Boolean search query to find leads in “Marketing Managers” AND “SaaS companies” while excluding “Interns”. Ensure the query: - Uses proper parentheses and Boolean operators (AND, OR, NOT) - Is optimized for platforms like LinkedIn Sales Navigator, Google, or job/resume databases - Filters for highly relevant and high-quality leads

As you can see, this example demonstrates how the prompt leverages nested Boolean logic to precisely target prospects while filtering out irrelevant results, improving efficiency and accuracy in lead generation.

ChatGPT Prompt for Nested Boolean Lead Search

Example output from ChatGPT for this prompt

And here's the output:


Boolean Search Query:

("Marketing Manager" OR "Head of Marketing" OR "Marketing Lead") 
AND ("SaaS" OR "Software as a Service") 
NOT (Intern OR "Internship" OR "Marketing Intern")

Explanation & Optimization:

  1. Target Role (Marketing Manager):

    • Using parentheses with OR allows you to include variations of the title: "Marketing Manager", "Head of Marketing", "Marketing Lead".

    • This ensures you capture relevant managerial roles and not just exact matches.

  2. Target Company Type (SaaS):

    • "SaaS" is common shorthand; adding "Software as a Service" ensures you also catch profiles that spell it out fully.

  3. Exclusion (Interns):

    • NOT (Intern OR "Internship" OR "Marketing Intern") removes entry-level profiles, keeping your leads senior and decision-making.

  4. Nesting & Boolean Logic:

    • Parentheses correctly group synonyms for OR logic.

    • AND ensures both target role AND company type must be present.

    • NOT effectively filters out unwanted roles.


Advanced Tips for LinkedIn Sales Navigator / Google:

  • LinkedIn Sales Navigator:

    • Use the Title, Company, and Keywords fields separately for even more precise filtering.

    • You can add current to titles to focus on active positions: "current: Marketing Manager".

  • Google / Resume Databases:

    • Include site-specific search operators if targeting LinkedIn or other job boards:

      site:linkedin.com/in ("Marketing Manager" OR "Marketing Lead") AND ("SaaS" OR "Software as a Ser


Or to be more specific:

ChatGPT Prompt for Nested Boolean Lead Search Output

Pro tips

0.

Use quotes for exact phrases (e.g., “Marketing Manager”).

1.

Nest OR operators in parentheses to group similar criteria.

2.

Test queries in small batches to verify relevance before scaling.

3.

Adjust based on platform-specific search syntax and limitations.

Tie AI visibility to
qualified demand.

Measure the prompts and engines that drive real traffic, conversions, and revenue.

Covers ChatGPT, Perplexity, Claude, Copilot, Gemini
ANALYZE Dashboard - AI Search Analytics Platform

© 2025 Analyze. All rights reserved.