Agentic system built with LangGraph, LangChain, Gemini 1.5 Pro, Tavily API, FPDF & Streamlit — automates deep company research, performs intelligent web crawling, and generates structured PDF reports with citations and zero manual effort.
# AI-Agent-Based Deep Research
[Live Demo
](https://ai-agent-based-deep-research.streamlit.app/)
A sophisticated AI-powered research automation system that performs comprehensive company research, generates structured reports, and delivers polished PDF documents with minimal human input.
## Overview
This project leverages Large Language Models and specialized AI agents to automate the process of gathering, analyzing, and synthesizing business intelligence. The system follows a structured workflow to transform a simple company name and keywords into a comprehensive, professionally formatted research report.
## Key Features
- **Automated Research Gathering**: Conducts parallel web searches across multiple queries to gather comprehensive company information
- **Intelligent Document Curation**: Filters and prioritizes the most relevant documents for report generation
- **Structured Report Generation**: Creates well-organized reports with standardized sections
- **Citation Management**: Automatically includes citations with quoted text and source URLs
- **PDF Export**: Converts markdown reports to properly formatted PDF documents
- **Rate Limiting**: Implements token bucket algorithm to manage API usage efficiently
## Architecture
The system is built using a modular architecture based on LangGraph's StateGraph framework:
```
┌─────────┐
│ │
▼ │
┌─────────┐ ┌─────┴───┐
│ research ├─────► tools │
└────┬────┘ └─────────┘
│
▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ curate ├─────► write ├─────► publish ├─────► END
└─────────┘ └─────────┘ └─────────┘
```
### Core Components
1. **Research Node**: Coordinates the research process using the Google Generative AI (Gemini)
2. **Tools Node**: Executes web searches using the Tavily API
3. **Curate Node**: Filters and processes collGoogle's AI-powered research notebook that ingests your documents and becomes an expert on your content. Generates audio overviews, study guides, FAQs, and interactive discussions from uploaded sources.
Google DeepMind's experimental AI agent that can navigate websites, fill forms, and complete multi-step browser tasks autonomously. Uses Gemini's multimodal understanding to interact with web interfaces.
Google DeepMind's universal AI assistant prototype that can see, hear, and respond in real-time through your device camera and microphone. Demonstrates the future of multimodal AI interaction.
Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.
Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.
Interactive coding and content creation agent that generates, previews, and iterates on code, documents, and interactive applications in a side panel. Supports HTML/CSS/JS, Python, and more.