Company Research in Seconds

Contributors

Ferris Kleier
Software Developer
Estimated Implementation Time
20 minutes
Key Libraries Used
  • @operaide/ai
  • @operaide/aktor
  • @operaide/mail
  • zod
LLM Providers & Models
  • Azure GPT-4o-mini
  • Configurable via settings
External Services
  • Jina AI
  • Mailgun
TAGS
Web Search
Email & Messaging

Introduction

Enter a company name — get back a structured report covering leadership, products, financials, and recent news. The system scrapes the website, runs targeted searches, and synthesizes everything into a ready-to-use analysis. An email variant lets you send a research request by email and receive the finished report in your inbox.

Business Impact

Challenge

Company due diligence requires hours of manual research — visiting websites, searching news, reviewing financials, and compiling findings into a report.

Solution

An AI-driven pipeline scrapes the company website, runs targeted web searches, and synthesizes a structured analysis automatically.

Outcome

Research that took hours is delivered in seconds — consistent, comprehensive, and ready for review.

What It Does

  • Automated Company Research — Enter a company name and get a structured report covering leadership, products, financials, and recent news. The system pulls information from the company website and multiple web searches, then synthesizes everything into a ready-to-use analysis.
  • Email-Triggered Research — Send a research request by email with just a company name or description. The system fills in missing details automatically, runs the full research pipeline, and replies with the finished report directly to your inbox.

How It Works

  • Nested Aktor CompositionsaktorCompanyResearch is a defineAktor subgraph that orchestrates scraping, search, and AI analysis. Inside it, aktorAIAnalyzeCompany is another nested defineAktor handling prompt construction and the LLM call. This multi-level composition keeps each concern isolated while building complex pipelines.
  • Stream-Based Search Processing — Company research generates four search queries via aktorSearchCompanyInfo. aktorForEachStream creates a stream, aktorInput holds the current query, and aktorStreamProcessor runs aktorWebsearch for each item. Results are combined and formatted before AI analysis.
  • Web Scraping via Jina AIaktorWebscrape fetches the company website as markdown with extracted links. The scraped content is processed and structured via aktorProcessCompanyData before being passed alongside search results to the AI for analysis.
  • Tool Wrapping for Email Automation — The mail Reaktor uses aktorToTool to expose both aktorCompanyResearch and aktorWebsearch as AI-callable tools, combined via aktorToolSet. The AI autonomously decides: search first to find missing details, then invoke company research when it has enough data — up to five tool iterations.
  • Configurable Prompt Templates — All system and user prompts use aktorCompletePrompt with {{variable}} placeholders. Prompts are exposed as aktorSetting values, so research instructions, output structure, and language can be customized through the Operaide UI without code changes.

Reaktor Architecture

The Company Research app registers two Reaktors. The company research Reaktor is the core: it scrapes the target website via aktorWebscrape, processes the content with aktorProcessCompanyData, generates four search queries via aktorSearchCompanyInfo, and processes them through aktorStreamProcessor with aktorWebsearch. The formatted search results and scraped website data flow into a nested aktorAIAnalyzeCompany subgraph, where an AI produces the final structured report. The mail Reaktor wraps company research and web search as AI-callable tools via aktorToTool and aktorToolSet, lets the AI decide which tools to use based on the email content, and sends the result back via aktorReplyToMail.

Research Reaktor Architecture Expanded
Why Operaide

Ready to Ship AI

That Works?

See how Operaide helps teams ship reliable AI applications faster. From prototype to production—with complete control and European sovereignty.

More Than Chat. The AI-Native Enterprise

Browse our repository of AI applications built with Operaide. All available in the Operaide platform’s app store as templates for you to get a headstart when implementing your custom AI solutions.