AI Deep Research Agent
A powerful research assistant that leverages the Motia Framework to perform comprehensive web research on any topic and any question.
Let's build a finance agent that:
- Deep Web Research: Automatically searches the web, extracts content, and synthesizes findings
- Iterative Research Process: Supports multiple layers of research depth for comprehensive exploration
- Event-Driven Architecture: Built using Motia Framework's event system for robust workflow management
- Parallel Processing: Efficiently processes search results and content extraction
- API Endpoints: REST API access for initiating research and retrieving reports
- Stateful Processing: Maintains research state throughout the entire process
The Steps
analyze-content.step.ts
compile-report.step.ts
extract-content.step.ts
follow-up-research.step.ts
generate-queries.step.ts
report-api.step.ts
research-api.step.ts
search-web.step.ts
status-api.step.ts
🚀 Features
- Deep Web Research: Automatically searches the web, extracts content, and synthesizes findings
- Iterative Research Process: Supports multiple layers of research depth for comprehensive exploration
- Event-Driven Architecture: Built using Motia Framework's event system for robust workflow management
- Parallel Processing: Efficiently processes search results and content extraction
- API Endpoints: REST API access for initiating research and retrieving reports
- Stateful Processing: Maintains research state throughout the entire process
📋 Prerequisites
🛠️ Installation
-
Clone the repository:
-
Install dependencies:
-
Configure environment variables:
Update
.env
with your API keys:
🏗️ Architecture
🚦 API Endpoints
Start Research
Response:
Check Research Status
Response:
Get Research Report
Response:
🏃♂️ Running the Application
-
Start the development server:
-
Access the Motia Workbench:
-
Make a test request:
🙏 Acknowledgments
- Motia Framework for the event-driven workflow engine
- OpenAI for AI analysis
- Firecrawl for Web search and content extraction API
Need help? See our Community Resources for questions, examples, and discussions.