Create an AI-powered research assistant that can search, scrape, and synthesize information automatically.
Plan the architecture: search → scrape → synthesize → respond.
Create a tool that lets the AI search the web.
async function research(topic: string) {
const [search, deep] = await Promise.all([
client.search({ query: topic, max_results: 10 }),
client.research({ topic, max_sources: 10 })
]);
return { search, deep };
}Use an LLM to synthesize research findings into coherent responses.
Include source links for every claim in the response.
Create a chat interface for interacting with the assistant.