
Clinical Trial AI Agent Workflows: Automate Trial Tracking and Readout Analysis
On this page
- Tracking a clinical pipeline by hand means juggling ClinicalTrials.gov rows, journal papers, sponsor press releases and fragile Excel catalyst calendars. A clinical trial AI agent automates both the landscape tracker and the single-trial readout.
- With Valyu's curated life-sciences workflows, one call to ls-clinical-trial-tracker generates a multi-tab Excel tracker and readout calendar for a disease area, while ls-trial-readout breaks down a trial's design, endpoints, confidence intervals, p-values and safety by arm.
- Pair those curated workflows with fast Valyu Search lookups across ClinicalTrials.gov and PubMed so you can check specific trials on demand and catch estimand differences or spreadsheet quirks before sharing numbers.
- This step-by-step guide walks through obesity GLP-1 and GIP agonists as the worked example, including a full verified readout of SURMOUNT-5, with side-by-side Python and TypeScript code.
If you're an agent: Set up Valyu and make your first search.
If you're a human: Create an account and get an API key.
MCP onboarding: Connect your agent to https://mcp.valyu.ai/mcp and follow the MCP setup guide for authentication.
Why clinical trial tracking and readout analysis break manual workflows
Every biotech analyst, medical affairs team and R&D strategist hits the same two bottlenecks. First, you need a live clinical trial tracker across an indication: every active Phase 2 and Phase 3 study, its NCT ID, sponsor, mechanism, enrollment, primary endpoint and estimated completion date, rolled into a 12-month catalyst calendar.
Then, the moment a pivotal trial reads out, you need a structured readout breakdown: primary and secondary endpoints with effect sizes, 95% confidence intervals, p-values, safety by arm and the methodological caveats that headlines skip.
Doing that by hand means bouncing between ClinicalTrials.gov, PubMed, sponsor releases and spreadsheets. Generic chatbots are faster, yet they routinely mix up trial phases, blend incompatible statistical estimands, invent p-values or miss newly registered trials.
How to get the best results with Valyu
Match each part of your pipeline workflow to the right Valyu tool:
- Curated Workflows (
ls-clinical-trial-trackerandls-trial-readout): Use Valyu DeepResearch Workflows to produce cited reports and multi-tab Excel workbooks from a single typed input. - Valyu Search (
valyu/valyu-clinical-trialsandvalyu/valyu-pubmed): Run fast programmatic lookups in seconds whenever you need to pull a specific NCT ID, check active Phase 3 studies or surface open-access biomedical papers.
Worked example: obesity GLP-1/GIP agonists and SURMOUNT-5
To show both workflows end to end on real, live data, we will run them on one of the most active clinical spaces in biopharma:
ls-clinical-trial-trackeron"Obesity - GLP-1 and GIP agonists"to map active, planned and recently completed Phase 2/3 studies into a multi-tab Excel workbook and 12-month catalyst calendar.ls-trial-readouton SURMOUNT-5 (NCT05822830), Eli Lilly's head-to-head Phase 3b study comparing tirzepatide (Zepbound) against semaglutide (Wegovy) in adults with obesity without diabetes.
You can swap in any other disease area or NCT number using the exact same code.
SURMOUNT-5 readout highlights, checked against the ClinicalTrials.gov results record for NCT05822830 (posted November 26, 2025) and Aronne et al., NEJM 2025;393:26-36. Responder rows use the registry's observed values for 318 evaluable participants per arm; the NEJM paper reports imputed values under the treatment-regimen estimand.
Figure 1. Verified SURMOUNT-5 (NCT05822830) design, 72-week efficacy and safety by arm, cross-checked against ClinicalTrials.gov results and the NEJM publication (PMID 40353578).
Step 1: build an automated Phase 2/3 clinical trial tracker
Install the SDK for Python or TypeScript and export your API key:
# Pythonpip install valyu# TypeScript / Node.jsnpm install valyu-jsexport VALYU_API_KEY="your-api-key"
Start by listing Valyu's curated life-sciences workflows with valyu.workflows.list(vertical="life-sciences"). Nine workflows ship in that vertical, including ls-clinical-trial-tracker and ls-trial-readout.
To build a live disease-area tracker and downloadable Excel workbook, call valyu.deepresearch.create() with workflow_id="ls-clinical-trial-tracker" and pass a focused disease string:
import urllib.requestfrom valyu import Valyuvalyu = Valyu() # reads VALYU_API_KEYtask = valyu.deepresearch.create(workflow_id="ls-clinical-trial-tracker",workflow_params={"disease": "Obesity - GLP-1 and GIP agonists"},mode="standard",)final = valyu.deepresearch.wait(task.deepresearch_id, poll_interval=15)print(final.output) # cited markdown reportfor dl in final.deliverables or []:print(dl.title, dl.type, dl.url)if dl.url:urllib.request.urlretrieve(dl.url, "obesity_trial_tracker.xlsx")
In our live run, ls-clinical-trial-tracker finished in 6.6 minutes (398 seconds, ahead of the 7 to 12 minute estimate) for $0.97 (155 credits). It cited 135 sources and produced a six-tab Excel workbook:
Summary: High-level trial counts broken down by status and phase.Trials: 85 trials across 14 structured columns (NCT ID, acronym, sponsor, drug and mechanism, comparator, phase, status, enrollment, dates, blinding and sources). Every master row included an NCT ID (37 recruiting, 24 completed, 19 active not recruiting, 4 not yet recruiting, 1 unknown; 61 in Phase 3 or 3b; led by Eli Lilly with 20, Novo Nordisk with 12, Amgen with 11 and Boehringer Ingelheim/Zealand with 10).SponsorRollup: 11 sponsors with liveCOUNTIFandSUMIFformulas.ReadoutCalendar: 19 upcoming catalysts spanning late 2026 through November 2027.AtRisk: 11 stalled, halted or terminated programs, including Aardvark ARD-101's FDA clinical hold and October 2026 lift, Amgen's August 2026 discontinuation of AMG 513 and nine terminated or withdrawn Phase 2 studies.Sources: 75 linked source references.
You can adjust depth and speed on any workflow or custom DeepResearch call using five DeepResearch modes: instant (1 step, quick cited answers without file deliverables), fast (up to 12 steps), standard (up to 25 steps), heavy (up to 45 steps) and max (up to 75 steps). Pass mode explicitly so Python and TypeScript behave identically (Python defaults to "standard", while TypeScript defaults to "fast").
Sample upcoming readouts we verified directly on ClinicalTrials.gov
| Trial (NCT ID) | Drug & sponsor | Design & enrollment | Primary completion (est.) |
|---|---|---|---|
| TRIUMPH-5 ( ) | Retatrutide vs tirzepatide (Eli Lilly) | Phase 3, double-blind, 800 est. | November 2026 (80-week primary) |
| MARITIME-1 ( ) | Maridebart cafraglutide (Amgen) | Phase 3, 3,853 actual | January 21, 2027 |
| MARITIME-2 ( ) | Maridebart cafraglutide (Amgen) | Phase 3 | January 21, 2027 |
| VANQUISH-1 ( ) | VK2735 (Viking Therapeutics) | Phase 3, triple-blind, 4,500 est. | July 1, 2027 (78-week primary) |
| VANQUISH-2 ( ) | VK2735 (Viking Therapeutics) | Phase 3 | July 1, 2027 |
One helpful detail from the tracker: on VANQUISH-1, it kept ClinicalTrials.gov's 4,500 estimated enrollment intact while separately noting Viking's public update of 4,650 enrolled, keeping registry facts and sponsor announcements clearly separated.
Four quick checks to run on any tracker workbook
An automated tracker saves hours of manual gathering, and a two-minute quality check keeps every slide deck number airtight:
- Check Excel formatting on sub-phases (
3b,2b): Nine Phase 3b/2b rows in our workbook (including ATTAIN-MAINTAIN and TRIUMPH-6/8/9) were stored as3000000000or2000000000with a display format showing"3b"or"2b", causingSummarytabCOUNTIFtotals to skip them. Double-check formula totals whenever sub-phases appear. - Check the source behind efficacy figures: Registry fields matched ClinicalTrials.gov cleanly, while a few broad tracker efficacy snippets drew from secondary blogs or trade press. On TRIUMPH-1 (NCT05929066), the NEJM abstract (PMID 42814954) verifies
-25.0%vs-3.9%placebo (treatment-regimen), whereas a28.3%figure traced to a secondary blog. On REDEFINE-4 (NCT06131437), registry fields matched, while efficacy numbers came only from trade press. - Always label the statistical estimand: On ATTAIN-1 (NCT05869903), the tracker reported
11.2%vs2.1%(treatment-regimen estimand), whereas ClinicalTrials.gov lists-12.35%vs-0.87%(on-treatment estimand). Both are real; they just measure different estimands. - Scan headers and signs quickly: The
ReadoutCalendarheader read"Dec 2026 to Nov 2027"while including three November 2026 primary completions, one row (SURMOUNT-MMO,NCT05556512) missed status and start date, and one survodutide weight-loss sign differed from adjacent rows.
Step 2: run a structured clinical trial readout
When a pivotal study reports results, switch to ls-trial-readout. Pass the trial name and NCT ID in trial, and use context to tell the agent which comparator, safety breakdowns and caveats to focus on:
import urllib.requestfrom valyu import Valyuvalyu = Valyu() # reads VALYU_API_KEYtask = valyu.deepresearch.create(workflow_id="ls-trial-readout",workflow_params={"trial": "SURMOUNT-5 (NCT05822830)","context": "Compare tirzepatide vs semaglutide efficacy endpoints, safety by arm, and caveats",},mode="fast",)final = valyu.deepresearch.wait(task.deepresearch_id, poll_interval=15)print(final.output)for dl in final.deliverables or []:if dl.url:urllib.request.urlretrieve(dl.url, "surmount5_readout.xlsx")
In our live run (mode="fast"), ls-trial-readout completed in about 7 minutes (427 seconds) for $0.50. It returned a cited readout report alongside a five-tab Excel workbook (Summary, Design with 11 rows, Efficacy with 16 rows, Safety with 36 rows using live rate/difference/risk-ratio formulas, and Sources).
Verified SURMOUNT-5 readout highlights
Every headline metric below from ls-trial-readout was cross-checked against ClinicalTrials.gov (NCT05822830, results posted November 26, 2025) and the NEJM publication (Aronne et al., NEJM 2025;393(1):26-36, PMID 40353578):
| Metric (week 72) | Tirzepatide (10 or 15 mg) | Semaglutide (1.7 or 2.4 mg) | Difference / note |
|---|---|---|---|
| Primary: % body weight change | -20.2% (95% CI -21.4 to -19.1) | -13.7% (95% CI -14.9 to -12.6) | -6.5 pts (95% CI -8.1 to -4.9), P<0.001 |
| Body weight change (kg) | -22.8 kg | -15.0 kg | -7.9 kg (95% CI -9.7 to -6.0); not multiplicity-controlled |
| Waist circumference change | -18.4 cm | -13.0 cm | -5.4 cm (95% CI -7.1 to -3.6), P<0.001 |
| Lost >=10% weight (NEJM, imputed) | 81.6% | 60.5% | Relative risk 1.3 |
| Lost >=15% weight (NEJM, imputed) | 64.6% | 40.1% | Relative risk 1.6 |
| Lost >=20% weight (NEJM, imputed) | 48.4% | 27.3% | Relative risk 1.8 |
| Lost >=25% weight (NEJM, imputed) | 31.6% | 16.1% | Relative risk 2.0 |
| Serious adverse events | 18 (4.8%) | 13 (3.5%) | 0 deaths in both arms |
| Discontinued treatment for AE | 23 (6.1%) | 30 (8.0%) | GI AE discontinuations: 10 (2.7%) vs 21 (5.6%) |
| Vomiting | 15.0% | 21.3% | Nausea: 43.6% vs 44.4%; constipation: 27.0% vs 28.5% |
| Injection-site reaction | 8.6% | 0.3% | GERD: 6.1% vs 10.6%; adjudicated pancreatitis: 0 vs 1 |
Why readout caveats matter (and what ls-trial-readout caught)
Strong readout analysis pays as much attention to the footnotes as the headline percentage:
- Observed registry rates vs imputed journal rates: ClinicalTrials.gov posts observed responder rates for the 318 evaluable participants per arm (
87.7%vs66.7%at >=10% weight loss;71.7%vs45.0%at >=15%;55.0%vs31.1%at >=20%;36.5%vs18.6%at >=25%;23.0%vs8.2%at >=30%). NEJM reports imputed rates across all 750 dosed patients under the modified treatment-regimen estimand (81.6%vs60.5%at >=10%).ls-trial-readoutflagged this difference automatically so the two are never mixed. - Registry vs journal p-values: ClinicalTrials.gov posts the
-6.5percentage-point difference and 95% CI (-8.1to-4.9) without a p-value;P<0.001comes from NEJM. BMI reductions also differ slightly by source (-8.5vs-6.0on ClinicalTrials.gov;-8.0vs-5.3in NEJM). - Open-label design and safety power: SURMOUNT-5 randomized 751 adults 1:1 (750 dosed across 30 US and 2 Puerto Rico sites, completed November 13, 2024) in an open-label design (
masking: NONE). Eli Lilly's topline release and full results release note the study was not powered to compare safety and tolerability, and secondary endpoints such as >=30% weight loss, kg and BMI were not multiplicity-adjusted. - Quick workbook spot-check: While the Markdown report captured every verified figure, the generated
EfficacyExcel tab marked registry observed-responder rows"Not reported"andSummarystored percentages as decimals (-0.202) beside a"%"label. Always skim the workbook against the report before pasting charts.
Step 3: run fast programmatic lookups with Search
You do not need a seven-minute workflow just to locate an NCT ID or check a trial status. For fast programmatic lookups inside an app or agent loop, query Valyu Search directly against valyu/valyu-clinical-trials and valyu/valyu-pubmed:
from valyu import Valyuvalyu = Valyu() # reads VALYU_API_KEYqueries = [("valyu/valyu-clinical-trials", "SURMOUNT-5 NCT05822830 tirzepatide versus semaglutide"),("valyu/valyu-clinical-trials", "retatrutide phase 3 obesity TRIUMPH"),("valyu/valyu-clinical-trials", "orforglipron phase 3 obesity ATTAIN"),("valyu/valyu-pubmed", "orforglipron ATTAIN-1 obesity phase 3 results"),]for source, q in queries:resp = valyu.search(q, included_sources=[source], max_num_results=5)print(f"\n[{source}] {q} (${resp.total_deduction_dollars})")for r in resp.results:print(" -", r.title, "|", r.url)
Query tips for Step 3
- Include the NCT ID or trial acronym alongside the drug name. In our tests, TRIUMPH-1 (
NCT05929066) and ATTAIN-1 (NCT05869903) ranked #1 immediately, while SURMOUNT-5 ranked #2 behind SURPASS-2 (NCT03987919). Inspectmax_num_results=5and match by NCT ID. - Know the open-access boundary on PubMed.
valyu/valyu-pubmedindexes Open Access PubMed Central full text. Because the NEJM SURMOUNT-5 paper sits behind a paywall outside PMC, PubMed search returned open-access meta-analyses instead; use DeepResearch orls-trial-readoutwhen you need full journal endpoint synthesis.
Next-step workflows for deeper diligence
For this guide, we ran ls-clinical-trial-tracker and ls-trial-readout live. Once those two are in place, two additional curated life-sciences workflows extend your research pipeline (listed via valyu.workflows.list(vertical="life-sciences"), not run for this guide):
ls-drug-competitive-landscape(Drug Competitive Landscape): Takes anindicationstring (for example,"GLP-1/GIP dual agonists for obesity"), recommended modeheavy. Pulls from ClinicalTrials.gov, EU CTR and conference abstracts to deliver a Word positioning report and an Excel workbook (Assets,Trials,Efficacy,UpcomingReadouts,IP).ls-kol-mapping(KOL & Investigator Map): Takes adiseasestring, recommended modestandard. Maps leading clinicians and principal investigators into an Excel workbook (KOLs,Institutions,RisingStars,Sources).
See the Workflows quickstart for full SDK options.
Putting it together: morning brief after a Phase 3 readout
The problem. A major Phase 3 obesity readout drops before the market opens. Your research team needs a clean breakdown of primary and secondary endpoints, safety imbalances, methodological caveats and which rival trials read out next.
The workflow. Launch ls-trial-readout (mode="fast") with the trial's NCT ID and comparator context so it builds the design, endpoints, confidence intervals, p-values and safety-by-arm workbook in about seven minutes. While it runs, fire off quick Valyu Search calls on valyu/valyu-clinical-trials and valyu/valyu-pubmed to surface related competitor trials and background literature in seconds.
The follow-through. Pull your refreshed ls-clinical-trial-tracker ReadoutCalendar tab to put the next 12 months of competing Phase 3 catalysts (TRIUMPH-5, MARITIME-1/2, VANQUISH-1/2) right beside the readout, and check that responder rates and estimands are clearly labeled.
The result. A concise readout brief plus an Excel workbook where every endpoint, estimand, safety count and upcoming catalyst date links straight back to an NCT ID or PMID.
Troubleshooting: how to get clean results every time
- Paywalled NEJM or Lancet paper missing from
valyu/valyu-pubmed: That dataset indexes Open Access PMC full text. Runls-trial-readoutor DeepResearch to synthesize endpoints from primary publications and sponsor releases. - Responder percentages disagree between ClinicalTrials.gov and the journal: Check the analysis population and estimand (observed evaluable completers vs imputed treatment-regimen) and label which one your table quotes.
- Tracker Excel phase totals look slightly low: Check whether Phase 3b or 2b rows were stored with custom numeric formatting rather than text strings, and verify counts directly on the
Trialstab. - Competitor efficacy cell cites a blog or press recap: Cross-check the figure against ClinicalTrials.gov results or the primary PubMed abstract before sharing, and label trade-press figures clearly.
FAQ
What is a clinical trial readout?
A clinical trial readout is the release of a study's efficacy and safety results after data collection finishes (or at a prespecified interim analysis), delivered via a sponsor press release, medical conference presentation, peer-reviewed journal publication or ClinicalTrials.gov results posting.
How do I track upcoming clinical trial readouts?
Combine ClinicalTrials.gov primary completion dates with sponsor guidance. Running ls-clinical-trial-tracker on a disease area automates this by gathering active Phase 2 and Phase 3 trials, estimating readout windows and outputting a 12-month ReadoutCalendar tab in Excel.
Can I export a clinical trial tracker to Excel?
Yes. Both ls-clinical-trial-tracker and ls-trial-readout automatically produce downloadable .xlsx deliverables with structured tabs and live Excel formulas (such as SponsorRollup, ReadoutCalendar, Efficacy and Safety).
What are primary vs secondary endpoints?
The primary endpoint is the main prespecified measure used to determine whether a trial succeeded (in SURMOUNT-5, percentage change in body weight at week 72). Secondary endpoints measure additional clinical effects (such as waist circumference reduction or the share of patients losing >=15% of body weight); only multiplicity-controlled endpoints support formal statistical claims.
What is the difference between an endpoint and an outcome?
In clinical trial design, an outcome is the general health event or measurement being tracked (such as body weight change), while an endpoint is the precisely defined quantitative target and time frame used for statistical analysis (such as mean percentage change in body weight from baseline to week 72).
What were the SURMOUNT-5 results?
In SURMOUNT-5 (NCT05822830, 751 adults with obesity and no type 2 diabetes), Eli Lilly's tirzepatide achieved -20.2% mean weight loss at week 72 versus -13.7% for Novo Nordisk's semaglutide, a difference of -6.5 percentage points (95% CI -8.1 to -4.9, P<0.001). Serious adverse events occurred in 4.8% vs 3.5% of patients with zero deaths in either arm.
Was SURMOUNT-5 comparing Zepbound/Mounjaro against Wegovy?
Yes. Tirzepatide is marketed as Zepbound for obesity and Mounjaro for type 2 diabetes; semaglutide is marketed as Wegovy for obesity. Because SURMOUNT-5 enrolled adults with obesity without diabetes, Eli Lilly's releases refer to the head-to-head comparison as Zepbound versus Wegovy.
What is a clinical trial AI agent?
A clinical trial AI agent is an AI system equipped with live biomedical data tools (ClinicalTrials.gov, PubMed, FDA drug labels and safety databases) that searches registries, synthesizes readouts and tracks trial catalysts with direct citations. For the full architecture and comparison against operational trial software, read our pillar guide on clinical trial AI agents.
Is there a free way to test Valyu's clinical trial workflows and API?
New accounts get free credits every month, up to 2,000 with a work email. Fast clinical trial lookups via Search cost $0.025 per query, and the full ls-trial-readout and ls-clinical-trial-tracker runs in this guide cost $0.50 and $0.97 respectively.
How do I run clinical trial lookups in ChatGPT or Claude?
Connect Valyu as a custom MCP connector at https://mcp.valyu.ai/mcp, sign in, and prompt "Use Valyu to check the latest Phase 3 GLP-1 obesity trials on ClinicalTrials.gov and cite each NCT ID." See the chat apps guide for setup steps.
Build your own clinical trial tracking workflow
Automate your Phase 2/3 catalyst calendar, break down readouts with full endpoint and safety tables, and pull live ClinicalTrials.gov and PubMed evidence in seconds. Get an API key, explore healthcare and life-sciences use cases, or read how to find recruiting clinical trials via API and how to map a clinical trial landscape for a drug target.
Related Blogs
How to Map a Clinical Trial Landscape for a Drug Target
How to Find Recruiting Clinical Trials from ClinicalTrials.gov via API
CASE STUDY: How Storke uses Valyu to cut clinical evaluation timelines in half
How to Integrate PubMed Papers into Your AI (Complete 2025 Guide)
More from the blog





Valyu Add
Join 12,000+ professionals and knowledge workers.
Valyu Add is a free weekly research briefing for builders, investors and operators. Every issue is sourced, cited and verified with Valyu DeepResearch.
