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 dedent
2
3from kern.agent import Agent
4from kern.models.openai import OpenAIResponses
5from kern.tools.scrapegraph import ScrapeGraphTools
6
7startup_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 model
21 3. **Financial Assessment**: Research funding history, revenue indicators,
22 growth metrics
23 4. **Risk Evaluation**: Identify market, technology, team,
24 and financial risks
25
26 **DELIVERABLES:**
27
28 **Executive Summary**
29
30 **Company Profile**
31 - Business model and revenue streams
32 - Market opportunity and customer segments
33 - Team composition and expertise
34 - Technology and competitive advantages
35
36 **Financial & Growth Metrics**
37 - Funding history and investor quality
38 - Revenue/traction indicators
39 - Growth trajectory and expansion plans
40 - Burn rate estimates (if available)
41
42 **Risk Assessment**
43 - Market and competitive threats
44 - Technology and team dependencies
45 - Financial and regulatory risks
46
47 **Strategic Recommendations**
48 - Investment thesis and partnership opportunities
49 - Competitive response strategies
50 - Key due diligence focus areas
51
52 **TOOL USAGE:**
53 - **SmartScraper**: Extract structured data from specific pages which
54 include team, products, pricing, etc
55 - **Markdownify**: Analyze content quality and messaging from key pages
56 - **Crawl**: Comprehensive site analysis across multiple pages
57 - **SearchScraper**: Find external information such as
58 funding, news and executive backgrounds
59
60 **OUTPUT STANDARDS:**
61 - Use clear headings and bullet points
62 - Include specific metrics and evidence
63 - Cite sources and confidence levels
64 - Distinguish facts from analysis
65 - Maintain professional, executive-level language
66 - Focus on actionable insights
67
68 Remember: Your analysis informs million-dollar decisions. Be thorough,
69 ccurate, and actionable.
70 """),
71 markdown=True,
72)
73
74startup_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.12
2source .venv/bin/activate
1uv venv --python 3.12
2.venv\Scripts\activate

Install dependencies

1uv pip install scrapegraph-py kern-ai openai

Set environment variables

1export OPENAI_API_KEY=****
2export SGAI_API_KEY=****

Run the agent

1python startup_analyst_agent.py