Idk
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v5View latest version
A powerful AI-powered research assistant that conducts comprehensive research on any topic.
- Topic Breakdown: Automatically breaks down complex topics into relevant subtopics
- In-depth Research: Conducts detailed research on each subtopic
- Executive Summary: Generates a concise summary of all findings
- Adjustable Depth: Choose between light, medium, or deep research depth
- User-friendly Interface: Simple web interface to request and view research
- The agent takes a research topic and desired depth level
- It uses GPT-4 to break down the topic into subtopics
- Each subtopic is researched in detail
- An executive summary is generated from all findings
- The complete research report is returned
deepResearchAgent.ts
- The main research agent (HTTP endpoint)researchInterface.ts
- Web interface for interacting with the agent
The easiest way to use the Deep Research Agent is through the web interface:
- Visit the Research Interface
- Enter your research topic
- Select the desired research depth
- Click "Start Research"
- View the comprehensive research results
You can also call the research agent directly via its API endpoint:
POST https://deepResearchAgent.YOUR_USERNAME.val.town
Request body:
{ "topic": "Your research topic", "depth": "medium" // Options: "light", "medium", "deep" }
Response:
{ "success": true, "topic": "Your research topic", "research": { "topic": "Your research topic", "executiveSummary": "...", "subtopics": [ { "title": "Subtopic 1", "content": "...", "wordCount": 500 }, // More subtopics... ], "generatedAt": "2023-06-15T12:34:56.789Z", "depth": "medium" } }
You can modify the agent to suit your specific research needs:
- Adjust the number of subtopics based on depth in the
generateSubtopics
function - Change the word count for each subtopic in the
researchSubtopic
function - Modify the system prompts to focus on specific aspects of research
This agent uses the OpenAI API via Val Town's standard library. No additional setup is required.
- Research is based on AI knowledge, not real-time web searches
- Very complex or niche topics may have limited information
- Research depth affects processing time and token usage