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:
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:
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.

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:
Target Role (
Marketing Manager):Using parentheses with
ORallows 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.
Target Company Type (
SaaS):"SaaS"is common shorthand; adding"Software as a Service"ensures you also catch profiles that spell it out fully.
Exclusion (
Interns):NOT (Intern OR "Internship" OR "Marketing Intern")removes entry-level profiles, keeping your leads senior and decision-making.
Nesting & Boolean Logic:
Parentheses correctly group synonyms for OR logic.
ANDensures both target role AND company type must be present.NOTeffectively 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
currentto 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:

Pro tips
Use quotes for exact phrases (e.g., “Marketing Manager”).
Nest OR operators in parentheses to group similar criteria.
Test queries in small batches to verify relevance before scaling.
Adjust based on platform-specific search syntax and limitations.
