← Back to Projects

Autonomous Market Research Agent

Multi-agent research engine orchestrating 5 specialized LangGraph agents. Decomposes market queries, executes parallel web scraping with Tavily, verifies claims with local LLMs, and synthesizes publication-ready PDF reports.

LangGraph Ollama Groq Tavily ChromaDB FastAPI Streamlit n8n Python

πŸ’‘ The Problem

Comprehensive market research is fragmented and labor-intensive. Analysts spend hours manually browsing dozens of industry reports, cross-checking conflicting statistics, weeding out sponsored clickbait, and formatting summaries into presentation decks. Single-prompt AI tools often hallucinate unsourced figures or fail to maintain citation traceability across broad research queries.

🎯 The Solution

An autonomous multi-agent workflow built on LangGraph. Five specialized agents collaborate deterministically: a Planner decomposes queries into sub-topics, Search and Scraper agents gather live web data via Tavily and BeautifulSoup, a Verifier validates quantitative claims using local Ollama (qwen2.5:7b), and a Summarizer synthesizes executive insights via Groq (llama-3.3-70b)β€”complete with interactive ChromaDB RAG and automated ReportLab PDF exports.

⚑ Key Features

πŸ€–

5-Agent Collaboration

Planner, Search, Scraper, Verifier, and Summarizer agents coordinate seamlessly through a stateful LangGraph execution engine.

⚑

Hybrid Model Topology

Combines local privacy & cost efficiency (Ollama qwen2.5:7b for planning & verification) with high-speed cloud reasoning (Groq llama-3.3-70b for synthesis).

🌐

Real-time Web Scraping

Leverages Tavily search API and httpx + BeautifulSoup web scrapers to parse live source articles, news, and market data.

πŸ“š

Interactive Vector RAG

Embeds scraped research articles into ChromaDB, allowing users to ask follow-up questions directly grounded in fetched source context.

πŸ“„

ReportLab PDF Engine

Generates publication-ready, multi-page executive PDFs containing executive summaries, key trends, source citations, and visual charts.

πŸ”„

n8n Automation Workflows

Includes pre-configured n8n workflows for Telegram trigger bots, automated daily re-research, and email PDF delivery.

πŸ—οΈ Multi-Agent Architecture

πŸ“‹ Planner Ollama qwen2.5:7b
β†’
πŸ” Search & Scrape Tavily + BeautifulSoup
β†’
πŸ›‘οΈ Fact Verifier Ollama Cross-Check
β†’
🧠 Summarizer Groq Llama-3.3-70b
β†’
πŸ“Š PDF & RAG ChromaDB + ReportLab

Agent Microservices

  • agents/planner.py β€” Decomposes complex queries into focused research sub-tasks
  • agents/search.py β€” Executes Tavily search queries for targeted market domains
  • agents/scraper.py β€” Resilient HTML content extractor stripping site clutter
  • agents/verifier.py β€” Evaluates source credibility and cross-verifies statistical claims
  • agents/summarizer.py β€” Synthesizes structured JSON reports using Groq 70B

Storage & Delivery Layer

  • graph/workflow.py β€” LangGraph StateGraph connecting agent state transitions
  • db/chroma_client.py β€” ChromaDB vector store for semantic interactive Q&A
  • report/pdf_builder.py β€” ReportLab engine generating styled PDF reports
  • n8n/ β€” Automation JSONs for Telegram triggers and automated email delivery

πŸ› οΈ Tech Stack & Technologies

LangGraph

Stateful multi-agent orchestration framework for complex cyclic AI graph workflows.

Ollama & Groq

Hybrid local LLM (qwen2.5:7b) and ultra-fast cloud LLM inference API (llama-3.3-70b).

FastAPI & Streamlit

Production REST API backend with Swagger docs and an intuitive 4-tab Streamlit dashboard.

ChromaDB & SQLite

Vector store for conversational document RAG and relational database for research history.