How to Build an AI Research Agent

Build an AI research agent step by step: when built-in deep research is enough, approved sources, traceable citations, limits, testing and human review.

Some questions take an afternoon of searching, reading and comparing, and you get them every week. An AI research agent sounds like the fix: hand over the question, get back a cited summary. The catch is that a wrong answer with a tidy citation looks exactly like a right one.

So start with a check: your assistant’s built-in deep research mode, or a simple scheduled automation, may already do the job. If you still need your own agent, build it around five things: a narrow research goal, approved sources, a traceable citation for every claim, limits on steps, time and cost, and a person who checks key claims before anyone relies on the findings. New to agents? Read our beginner's guide to building AI agents first.

TL;DR

  • Try a built-in deep research mode first, and check whether it can limit itself to your sources.
  • Write the goal, scope, output and finish line first, and allowlist primary sources.
  • Keep confidential data out of unapproved tools and away from the open web.
  • Require a link and passage for every claim; have the agent report conflicts, gaps and blocked pages.

Do You Need a Research Agent at All?

An AI assistant answers when a person asks; you stay in charge of each turn. An automation runs a predefined trigger, path and series of actions, such as “every Monday, copy these five feeds into a document.” Give an AI agent a goal and, within limits you set, it may choose or adapt its next steps and tools, such as web search, a page reader or a folder of files. Each step it takes with a tool, like running a search, is an action. Agents are the most flexible and the hardest to check, not the best by default. Our explainer on what an AI agent is goes further.

Rule out three simpler options.

Ordinary AI search. For a question with one clear answer, an assistant with web search usually suffices; Anthropic, OpenAI and Microsoft each steer quick facts or summaries to ordinary search or chat [1, 2, 3].

A built-in deep research mode. Major assistants now offer a mode that plans searches, reads many sources and writes a report. As of November 2026, the vendors describe them like this [1, 4, 5, 3, 6]:

FeatureWhat it searches (vendor’s description)Source controls describedThings to check
OpenAI ChatGPT deep researchUploaded files, the public web or specific sites, and enabled ChatGPT apps [1]Restrict to listed sites or just prioritize them [1]Read-only in connected apps; availability varies by plan and country [1]
Google Gemini Deep ResearchGoogle Search by default, plus sources you add such as Gmail or Drive [4]Deselect Google Search to use only chosen sources; no per-site list described [4]Daily request limits, higher on paid plans; reports usually take 5 to 10 minutes [4]
Anthropic Claude researchThe web and connected tools such as Google Workspace [5, 2]Uses the connectors turned on for the chat; no per-site list described [5]Paid plans only; needs web search on; uses connector tools without asking each time; on mobile searches only the web [5]
Microsoft Copilot ResearcherThe web plus work files, emails, meetings and chats you can access [3]Scope it to work content, the web or both; no per-site list, only an admin web search switch [3, 6]For Microsoft Copilot licensed users; up to 25 queries per user per month [6]

Treat the table as a dated snapshot; check each vendor’s current page before relying on it. OpenAI, Anthropic and Microsoft describe these reports as cited, as Google does its developer version [1, 2, 3, 7]; the evidence below shows a citation is where checking starts, not proof.

A fixed automation. If you just need the same sources collected on a schedule, a trigger-and-action workflow is cheaper and more predictable. Microsoft’s planning guidance says to use regular code when steps are clear and rule-based, and a ready-made agent when one meets the need [8]; Anthropic recommends the simplest workable approach, sometimes not an agent [9]. BuildAIQ’s AI Automation curriculum covers information-collection workflows.

BuildAIQ’s view: build your own only when you ask the same type of question repeatedly and need more control over sources, format or logging than a built-in mode allows. Otherwise, use the built-in feature and spend the effort checking it. See our guides on choosing a first agent project and when not to build an agent. If the job is really sorting items or watching for changes, our guides to agents that organize information and agents that monitor changes fit better.

Step 1: Write the Research Goal and Question Scope

The goal is the outcome the agent works toward, stated so you can tell whether a run achieved it. “Research our competitors” is not a goal. “List the published prices and plan limits for these five named products, from each vendor’s own pricing page” is.

Before configuring anything, write down:

  • Scope: what is in and out, and what counts as current.
  • Output: a fixed format, such as one row per claim with link, passage and retrieval date.
  • Finish line: for example, “every product has a row, or a note saying why not.”
  • Gaps: the agent says “not found” instead of guessing.

ChatGPT and Gemini show an editable research plan before work starts [1, 4]; borrow the habit and have your agent restate the question and its plan first. Our guide to giving an agent a clear goal and boundaries covers the wording.

Step 2: Choose Approved Sources and Set an Allowlist

An allowlist names the sources the agent may use; everything else is off limits. Keep it short and favor primary sources: official documentation, government and standards bodies, original studies.

Tools enforce this differently:

  • OpenAI’s developer web search tool accepts up to 100 allowed or 100 blocked domains [10].
  • Anthropic’s developer web search tool takes an allowed list or a blocked list, not both, and admins can restrict domains organization-wide [11].
  • Google Cloud’s search grounding lets developers exclude domains, which is a blocklist rather than an allowlist [12].
  • In Microsoft Copilot Studio, the website address you add sets the scope, and forum or social network addresses can produce nonsensical answers [13].

Whatever the tool, set its permission, what the agent is allowed to do with it, to read only: no sending, posting, buying or editing. Our guide on giving an agent access to tools safely explains least-privilege access. Keep sensitive material out of public searches too: OpenAI advises gathering public facts in a web-only request, then passing them to a second request that can see private records [14]. Research across your own files is covered in our guide to building an agent that uses your documents safely.

Step 3: Decide How the Agent Gathers and Compares Sources

Google describes its Deep Research agent’s loop as plan, search several sources, iterate, then output [7]. A run, one complete attempt at the task, should make each stage explicit:

  1. Plan the searches and name the approved sources for each.
  2. Open pages, recording each URL and date read.
  3. Extract claims, each tied to its supporting passage.
  4. Flag where sources agree, differ or are silent.
  5. Write the report in your fixed format.

Keep a log of every search, page and step, so reviewers see what the agent read but left out. OpenAI’s API can list every URL the model consulted, often more than it cites [10], and Google’s grounding data maps segments of an answer to the web sources that support them [12].

Context is what the agent has in front of it for the current task; memory, or state, carries selected information or progress across steps or between runs, such as pages already checked. Start a first research agent fresh each run; our guide on context and memory explains when carrying information forward helps.

Step 4: Require Citations You Can Trace

Every factual claim should point to a specific page and passage, not a list of links at the end. Independent studies show why:

  • In February 2025 tests for Columbia Journalism Review, the Tow Center asked eight AI search tools, including ChatGPT Search, Perplexity, Copilot, Gemini and Grok, to identify the sources of news excerpts across 1,600 queries; collectively they answered more than 60 percent incorrectly, from 37 percent for Perplexity to 94 percent for Grok 3 [15]. They fabricated links and rarely signaled doubt, though the authors caution against extrapolating their news task to all models [15].
  • The DeepTRACE audit, presented at ICLR 2026, examined nine public AI search and deep research systems, including GPT-4.5/5, You.com, Perplexity, Copilot/Bing and Gemini, on 303 debate and expert questions, with results as of August 27, 2025 [16, 17]. Deep research modes still produced large shares of statements their own sources did not support, and citation accuracy ranged from 40 to 80 percent [16]. Its AI judge only moderately agreed with human checkers, a limit the authors note [16].
  • A 2025 Nature Communications study of seven AI models answering 800 medical questions found 50 to 90 percent of responses were not fully supported by their cited sources; GPT-4o with web search left about 30 percent of statements unsupported [18]. The models were versions from the first half of 2024, support was judged by an automated pipeline that agreed with doctors 89 percent of the time, and models without web access produced working links only 40 to 70 percent of the time [18].

Newer versions may score differently; either way, treat each citation as a lead, not a verdict.

Step 5: Handle Conflicts, Outdated Pages and Weak Sources

Conflicts. Tell the agent to report disagreement, not settle it: show both figures with dates and mark the item for a person.

Outdated pages. In a 2024 analysis of nearly 1 million archived webpages, Pew Research Center found 38 percent of pages that existed in 2013 were no longer accessible in October 2023, and 54 percent of sampled English Wikipedia pages had at least one dead reference link [19]. Record a retrieval date for every source and flag anything older than your cutoff. Also check whether your tool reads live pages or a cache; OpenAI’s developer search can run cache-only [10].

Weak sources. The Tow Center found AI tools sometimes cited syndicated copies rather than originals [15]. Tell the agent to prefer the original publisher and label everything else as secondary.

Paywalled and blocked pages. Never bypass a paywall, login, CAPTCHA or bot check. Record it as a gap, or flag it for someone with legitimate access. Robots.txt, the file sites use to steer automated visitors, is a request, and its internet standard says its rules are not a form of access authorization [20]. Some tools honor it anyway: Anthropic’s web fetch tool refuses URLs blocked by robots.txt or domain settings [21], and Google’s search grounding skips pages whose robots.txt opts out of Google-Extended [12].

Step 6: Treat Every Web Page as Untrusted Content

Untrusted content is text from people and sites you don’t control, which is nearly everything a research agent reads. The risk is prompt injection: instructions hidden in outside material such as web pages or files that try to redirect the agent, in OWASP’s description [22]. A January 2025 NIST blog by the then-named U.S. AI Safety Institute calls the agent case “agent hijacking” [23, 24]. In simulated tests of an agent built on an October 2024 Claude model, which a test framework had rated among the most hijack-resistant, the researchers frequently got the agent to follow planted instructions in three new risk areas, including data exfiltration [24].

Anthropic warns that its page-fetching tool risks leaks when untrusted input meets sensitive data [21], and the UK’s NCSC says prompt injection might never be eliminated, so designers should reduce its likelihood and impact [25].

In practice:

  • Keep the agent read-only. That limits what hidden instructions can trigger but doesn’t make them harmless: OpenAI notes a page could get a model to put private data into a URL it fetches, even when its tools only read [14], and planted text can skew findings [22].
  • Never give one run both confidential data and the open web.
  • Treat page text as material to summarize, never as orders; OWASP recommends clearly separating untrusted content [22].
  • Have the agent flag pages that seem to address it, and review those runs.

Our guide on protecting an agent from unsafe instructions and untrusted content covers defenses in depth.

Step 7: Set Limits on Steps, Time and Cost

Set a stop condition, a rule that ends the run, before you start. Anthropic notes that agents commonly stop after a set number of iterations [9].

Cap searches, pages read, minutes and spending per run. Some tools help: Anthropic’s developer web search tool lets you cap searches per turn [11], OpenAI’s lets you limit how much search content the model receives [10], and Gemini Apps limits daily deep research requests [4]. OpenAI and Anthropic both charge per developer web search, at rates they publish in their documentation [10, 11].

At a limit, the agent should stop and report what it found and skipped, not retry, or repeat, the same step endlessly. See our guides on spending, time and usage limits and fixing an agent that gets stuck.

Step 8: Test It Before You Rely on It

An evaluation is a planned test of whether the agent does the job well enough. Build a small set of questions where you already know the answer and the right sources:

  • A well-documented fact, to check accuracy.
  • A point where approved sources disagree, to check it reports the conflict.
  • A question your sources can’t answer, to check it says so.
  • A paywalled or blocked page, to check it records a gap.
  • A page with odd text addressed to an AI, to check it flags rather than obeys. Describe the scenario; you don’t need working attack text.

Run each test repeatedly and open every citation; a few clean runs prove little. Our guide to testing an agent before you trust its work explains fuller test plans.

Step 9: Put a Person Between the Findings and Any Decision

Human review is the point where a named person checks the findings before anyone quotes, shares or acts on them. OWASP calls for human fact-checking of critical or sensitive information, by reviewers trained not to overrely on AI output [26]. A review checklist:

  • Confirm each key claim against its source passage.
  • Check dates on anything time-sensitive, and read the conflicts and gaps first.
  • Scan the full source list for strong sources the report ignored.
  • Record who reviewed it and when.

That recorded sign-off is the approval. Our guides on making an agent ask before it acts, when an agent needs human supervision and fact-checking an AI answer go further.

Step 10: Keep Reviewing After Launch

Sample runs on a schedule and re-check their citations, prune stale sources from the allowlist, and recheck settings after each vendor update. If checking the agent’s work takes as long as doing the research yourself, retire it. Our guide on monitoring an agent after launch sets out a routine.

Two Example Research Agents

Software pricing comparison. Goal: current published prices and plan limits for five named products. Sources: those five vendors’ domains only. Limits: 25 page reads and 15 minutes. Output: one row per product with price, quoted passage, URL and retrieval date. Human review point: a person checks every figure against its pricing page before the table goes into a proposal. Sensitive-data flag: budgets, client names and internal evaluation notes stay out unless the tool is cleared for confidential work.

Official-guidance briefing. Goal: what named government and standards bodies say about a defined topic, and where they differ. Sources: official sites only. Output: claims grouped by source, conflicts listed separately. Human review point: a subject-matter expert checks the briefing; legal, medical, financial or employment questions go to a qualified professional. Sensitive-data flag: questions from a client matter, patient or personnel case, all sensitive under OWASP’s definition, belong only in an approved system [27]. Google’s preview notice for this agent, under its Pre-GA and generative AI preview terms, tells developers to keep confidential data out of it [7].

What We Know, What We Don’t, and Where Experts Disagree

Confidence: Research Finding

What We Know

Studies published in 2025 and 2026 found AI search and deep research tools citing sources that did not support their claims, fabricating links and answering wrongly with confidence [15, 16, 17, 18]. Government and industry security guidance agrees that hidden instructions in web content are a real risk for agents [22, 25, 23].

What We Don’t Know

We found no study of research agents built by individuals or small teams. Published studies cover specific tasks and product versions since updated, so how current tools would score is unknown [15, 16, 18].

What Experts Disagree About

We found no substantive expert disagreement about the safeguards in this guide. The visible tension is between vendor descriptions of cited, verifiable reports [1, 3] and independent audits finding many unsupported statements, with wide variation between systems [16]. Emphasis differs on prompt injection: the NCSC says it may never be fully mitigated [25], while Google says layered defenses make attacks markedly harder and costlier [28].

Practical Takeaways

  • Try a built-in deep research mode first, and check whether it can limit itself to your sources.
  • Write the goal, scope, output and finish line first, and allowlist primary sources.
  • Keep confidential data out of unapproved tools and away from the open web.
  • Require a link and passage for every claim; have the agent report conflicts, gaps and blocked pages.
  • Keep it read-only, cap searches, time and cost, and make it stop and report at the limit.
  • Put a named reviewer between the report and any decision, and sample its work after launch.

Sources

  1. Deep research in ChatGPT (Internet Archive capture of 7 November 2026). OpenAI Help Center, accessed 2026-11-13.
  2. When should I use web search, extended thinking, and research?. Anthropic (Claude Help Center), 2026-06-02, accessed 2026-11-13.
  3. Get started with Researcher agent in Microsoft Copilot. Microsoft Learn, 2026-11-03, accessed 2026-11-13.
  4. Use Deep Research in Gemini Apps. Google (Gemini Apps Help), accessed 2026-11-13.
  5. Use research on Claude. Anthropic (Claude Help Center), accessed 2026-11-13.
  6. Microsoft Copilot Researcher agent frequently asked questions. Microsoft Learn, 2026-11-04, accessed 2026-11-13.
  7. Use the Gemini Deep Research Agent. Google Cloud Documentation, 2026-11-12, accessed 2026-11-13.
  8. Business plan for AI agents (Cloud Adoption Framework). Microsoft Learn, 2026-04-10, accessed 2026-11-13.
  9. Building effective agents. Anthropic, 2024-12-19, accessed 2026-11-13.
  10. Web search (OpenAI API documentation). OpenAI Developers, accessed 2026-11-13.
  11. Web search tool (Claude API documentation). Anthropic (Claude Platform Docs), accessed 2026-11-13.
  12. Grounding with Google Search (Gemini Enterprise Agent Platform). Google Cloud Documentation, 2026-11-13, accessed 2026-11-13.
  13. Add a public website as a knowledge source (Microsoft Copilot Studio). Microsoft Learn, 2026-08-03, accessed 2026-11-13.
  14. MCP and Connectors (OpenAI API documentation). OpenAI Developers, accessed 2026-11-13.
  15. We compared eight AI search engines. They're all bad at citing news.. Columbia Journalism Review (Tow Center for Digital Journalism), 2025-03-06, accessed 2026-11-13.
  16. DeepTRACE: Auditing Deep Research AI Systems for Tracking Reliability Across Citations and Evidence. arXiv (v1); accepted as ICLR 2026 poster, 2025-09-02, accessed 2026-11-13.
  17. DeepTRACE (ICLR 2026 poster page). International Conference on Learning Representations (ICLR 2026), 2026-04-24, accessed 2026-11-13.
  18. An automated framework for assessing how well LLMs cite relevant medical references. Nature Communications, 2025-04-16, accessed 2026-11-13.
  19. When Online Content Disappears. Pew Research Center, 2024-05-17, accessed 2026-11-13.
  20. RFC 9309: Robots Exclusion Protocol. IETF / RFC Editor, 2022-09, accessed 2026-11-13.
  21. Web fetch tool (Claude API documentation). Anthropic (Claude Platform Docs), accessed 2026-11-13.
  22. LLM01:2025 Prompt Injection. OWASP Gen AI Security Project, accessed 2026-11-13.
  23. Technical Blog: Strengthening AI Agent Hijacking Evaluations. National Institute of Standards and Technology (NIST), 2025-01-17, accessed 2026-11-13.
  24. Technical Blog: Strengthening AI Agent Hijacking Evaluations (Internet Archive capture, 18 January 2025). National Institute of Standards and Technology (NIST) / U.S. AI Safety Institute, 2025-01-17, accessed 2026-11-13.
  25. Prompt injection is not SQL injection (it may be worse). UK National Cyber Security Centre (NCSC), 2025-12-08, accessed 2026-11-13.
  26. LLM09:2025 Misinformation. OWASP Gen AI Security Project, accessed 2026-11-13.
  27. LLM02:2025 Sensitive Information Disclosure. OWASP Gen AI Security Project, accessed 2026-11-13.
  28. Mitigating prompt injection attacks with a layered defense strategy. Google (The Keyword, Google GenAI Security Team), 2025-06-13, accessed 2026-11-13.