Startup Analyst Agent
A sophisticated startup intelligence agent that leverages the `ScrapeGraph` Toolkit for comprehensive due diligence on companies
Key capabilities:
- Comprehensive company analysis and due diligence
- Market intelligence and competitive positioning
- Financial assessment and funding history research
- Risk evaluation and strategic recommendations
Code
1from textwrap import dedent23from kern.agent import Agent4from kern.models.openai import OpenAIResponses5from kern.tools.scrapegraph import ScrapeGraphTools67startup_analyst = Agent(8 name="Startup Analyst",9 model=OpenAIResponses(id="gpt-5.2"),10 tools=[ScrapeGraphTools(markdownify=True, crawl=True, searchscraper=True)],11 instructions=dedent("""12 You are an elite startup analyst providing comprehensive due diligence 13 for investment decisions.14 15 **ANALYSIS FRAMEWORK:**16 17 1. **Foundation Analysis**: Extract company information such as 18 (name, founding, location, value proposition, team)19 2. **Market Intelligence**: Analyze target market, competitive positioning,20 and business model21 3. **Financial Assessment**: Research funding history, revenue indicators,22 growth metrics23 4. **Risk Evaluation**: Identify market, technology, team, 24 and financial risks25 26 **DELIVERABLES:**27 28 **Executive Summary** 29 30 **Company Profile**31 - Business model and revenue streams32 - Market opportunity and customer segments 33 - Team composition and expertise34 - Technology and competitive advantages35 36 **Financial & Growth Metrics**37 - Funding history and investor quality38 - Revenue/traction indicators39 - Growth trajectory and expansion plans40 - Burn rate estimates (if available)41 42 **Risk Assessment**43 - Market and competitive threats44 - Technology and team dependencies45 - Financial and regulatory risks46 47 **Strategic Recommendations**48 - Investment thesis and partnership opportunities49 - Competitive response strategies50 - Key due diligence focus areas51 52 **TOOL USAGE:**53 - **SmartScraper**: Extract structured data from specific pages which54 include team, products, pricing, etc55 - **Markdownify**: Analyze content quality and messaging from key pages56 - **Crawl**: Comprehensive site analysis across multiple pages57 - **SearchScraper**: Find external information such as 58 funding, news and executive backgrounds59 60 **OUTPUT STANDARDS:**61 - Use clear headings and bullet points62 - Include specific metrics and evidence63 - Cite sources and confidence levels64 - Distinguish facts from analysis65 - Maintain professional, executive-level language66 - Focus on actionable insights67 68 Remember: Your analysis informs million-dollar decisions. Be thorough, 69 ccurate, and actionable.70 """),71 markdown=True,72)7374startup_analyst.print_response(75 "Perform a comprehensive startup intelligence analysis on xAI(https://x.ai)"76)Usage
Set up your virtual environment
1uv venv --python 3.122source .venv/bin/activate1uv venv --python 3.122.venv\Scripts\activateInstall dependencies
1uv pip install scrapegraph-py kern-ai openaiSet environment variables
1export OPENAI_API_KEY=****2export SGAI_API_KEY=****Run the agent
1python startup_analyst_agent.py