Lab build

CrewAI stock picker

Hierarchical crew finds trending companies, researches them and pushes its pick to the user's phone.

Role
Builder, end to end
Group
Agents and MCP
Services
AI & LLM systems

What it does

A manager agent coordinates the crew in hierarchical process mode: one agent finds trending companies in a sector with a web search tool, another researches them, and a picker chooses one and sends a push notification through a custom tool. Pydantic models define the trending-company and research outputs written to JSON, and CrewAI memory adds short-term and entity memory in a vector store and long-term memory in SQL.

What was built

  1. 01

    Hierarchical process lets a manager agent delegate between finder, researcher and picker agents.

  2. 02

    TrendingCompany and research-list Pydantic schemas structure outputs saved as JSON files.

  3. 03

    Custom tool with a JSON argument schema sends the final pick as a push notification.

  4. 04

    Short-term and entity memory use a vector store; long-term memory is kept in SQL.

The pipeline, layer by layer

Five layers, one pipeline.

  1. L1Manager

    • Hierarchical manager agent
  2. L2Agents

    • Trending company finder
    • Financial researcher
    • Stock picker
  3. L3Tools

    • Web search tool
    • Push notification tool
  4. L4Memory

    • Vector and SQL memory
  5. L5Output

    • Pydantic JSON reports

Stack

  • CrewAI
  • Pydantic
  • Web search tool
  • Custom BaseTool
  • Pushover
  • CrewAI memory
  • YAML

Next lab build · 35 / 46

Sales outreach agents

Sales manager agent compares cold emails from three writer agents and sends the best via SendGrid.

Previous: CrewAI engineering team

Need a system like this in production? Tell us about it.