Construction & Business
Advertising Intelligence
This page defines a repeatable workflow for pulling a company profile from public web data with high-signal prompt engineering. It is designed for Lupo's platform build and supports targets like completetrailersco.com.
Scope
What this extracts
- Company Profile — high-level business overview and positioning
- Company Size — estimated range with confidence and evidence notes
- Locations — headquarters and operating locations
- Products & Services — primary offerings and categories
- Target Market & Audience — likely buyer segments and use cases
- Demographic + Geographic Signals — region, buyer profile, and market coverage
- Psychographic Signals — customer motivations, priorities, and purchase triggers
Live tester
Run extraction from this page
Drag and drop a website URL into the box below, or paste a URL and press Enter.
This calls /api/advertising-intelligence and returns profile JSON that you can publish or download.
Drop a website URL here (or paste into the field)
Ready.
Run a website to generate a readable company profile summary.
Downloadables
Files in this wiki folder
- Extractor Script — Download
company_profile_extractor.py - Prompt Template — Download
profile_prompt_template.txt
Quick Start
Run locally
python3 -m pip install requests beautifulsoup4 export LLM_API_KEY="your_key_here" export LLM_MODEL="gpt-4.1-mini" python3 company_profile_extractor.py "https://www.completetrailersco.com/" --output complete-trailers-profile.json
The script crawls key public pages on the same domain (home, about, services, products, contact), then prompts the model to return strict JSON with evidence and confidence notes.
API configuration
Environment variables
- LLM_API_KEY — required (falls back to
OPENAI_API_KEY) - LLM_BASE_URL — optional, default
https://api.openai.com/v1 - LLM_MODEL — optional, default
gpt-4.1-mini
Output format
JSON keys
- company_name
- company_profile_overview
- estimated_company_size_range
- annual_revenue_estimate
- main_competitors
- locations
- products_services
- target_market
- target_audiences
- demographic_geographic_profile
- psychographic_profile
- confidence_notes
- evidence_quotes
- source_urls