The Search Intent Analyzer determines the search intent of a query by analyzing SERP features and content patterns. It classifies queries into four intent types: Informational, Navigational, Transactional, or Commercial Investigation.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TheCraigHewitt/seomachine/llms.txt
Use this file to discover all available pages before exploring further.
Intent Types
The analyzer uses theSearchIntent enum with four intent classifications:
User wants to learn or find information (how-to, guides, definitions)
User wants to find a specific website or page (brand searches, login pages)
User wants to complete an action (buy, download, sign up)
User is researching before purchase (reviews, comparisons, alternatives)
Basic Usage
Use the convenience function for quick analysis:Class API
SearchIntentAnalyzer
The main analyzer class:analyze()
Analyze search intent of a keyword.The search query to analyze
List of SERP features present (from DataForSEO). Examples:
featured_snippet, people_also_ask, shopping_results, local_pack, ads, video, carouselTop ranking pages with titles/descriptions. Each dict should contain:
title(string): Page titledescription(string): Meta descriptionurl(string): Page URL
The analyzed keyword
Primary intent classification:
informational, navigational, transactional, or commercial_investigationSecondary intent if within 15% confidence of primary, otherwise
NoneConfidence scores for each intent type (percentages summing to 100)
Detected signals for each intent type (keyword patterns and SERP features)
Content strategy recommendations based on detected intent
Intent Detection Logic
The analyzer uses three scoring methods:1. Keyword Pattern Analysis
Detects intent from keyword patterns:2. SERP Features Analysis
Maps SERP features to intent types:3. Content Pattern Analysis
Analyzes titles and descriptions of top-ranking pages for intent indicators.Real-World Examples
Example 1: Informational Query
- Create comprehensive, educational content
- Include step-by-step instructions
- Target featured snippet optimization
- Add FAQ sections
Example 2: Commercial Query with SERP Data
- Create comparison and review content
- Include pros/cons and alternatives
- Add detailed feature breakdowns
- Show ‘best for’ categories
Example 3: Transactional Query
- Focus on product/service pages
- Include clear pricing and purchase options
- Add trust signals (reviews, testimonials)
- Optimize for conversion, not just traffic
- Include strong, action-oriented CTAs
Example 4: Navigational Query
- Optimize for brand-related searches
- Ensure homepage/key pages rank well
- Include site navigation and clear CTAs
- Strengthen brand presence
Signal Detection
Thesignals_detected field shows which patterns triggered each intent:
Secondary Intent
When secondary intent is detected (within 15% confidence of primary), consider blending content approaches:- Primary: Commercial (65%) - comparison content
- Secondary: Informational (55%) - educational content
- Strategy: Create comparison article with educational elements
Integration with DataForSEO
Combine with DataForSEO for real SERP analysis:Best Practices
- Always provide SERP features when available for more accurate classification
- Include top 10 results for content pattern analysis
- Check for secondary intent - many queries have mixed intent
- Follow recommendations - they’re tailored to the detected intent type
- Monitor confidence scores - low confidence may indicate ambiguous intent
Related Modules
- Keyword Analyzer - Optimize keyword usage after determining intent
- Content Length Comparator - Match content length to intent type
- SEO Quality Rater - Ensure content matches intent requirements