# AI Clinical Trial Summary with Risk Flags

**Use case:** 

Generate structured AI summaries for clinical trials with TL;DR, risk flags, milestone classification, and calibrated outcome priors per NCT ID.

## Input

```json
{
  "mode": "ai_summary",
  "sponsorIdentifiers": [],
  "nctIds": [
    "NCT04368728"
  ],
  "conditions": [],
  "interventions": [],
  "phases": [],
  "statuses": [],
  "countries": [],
  "applicantName": "Medtronic",
  "productCode": "",
  "devicePathways": [
    "510k",
    "pma"
  ],
  "drugName": "Ozempic",
  "seriousOnly": false,
  "recallClassifications": [],
  "recallDomains": [
    "drug",
    "device"
  ],
  "shortageStatus": "any",
  "dateFrom": "",
  "dateTo": "",
  "maxItems": 25,
  "maxItemsPerSource": 1000,
  "incrementalMode": false,
  "monitorTargets": [],
  "enableAiSummary": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "type": {
    "label": "Type",
    "format": "text"
  },
  "id": {
    "label": "ID",
    "format": "text"
  },
  "sponsorName": {
    "label": "Sponsor",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "phase": {
    "label": "Phase",
    "format": "text"
  },
  "scrapedAt": {
    "label": "Scraped",
    "format": "date"
  },
  "verifyUrl": {
    "label": "Verify",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Clinical Trials & FDA Pipeline Intelligence Scraper](https://apify.com/constructive_calm/clinical-trials-fda-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/constructive_calm/clinical-trials-fda-scraper) to learn more, explore other use cases, and run it yourself.