Method 1: The built-in Apple Health export (XML)
- Open the Health app on your iPhone.
- Tap your profile picture in the top-right corner.
- Scroll down and tap Export All Health Data, then confirm.
- Wait while iOS prepares
export.zip, then share or save it.
The ZIP contains export.xml (plus workout routes and ECG files if you have them). For years of Apple Watch data, the XML can easily reach hundreds of megabytes or more.
Problems when you give the XML to AI
- Too big: many chatbots limit file size and context length, so the file gets truncated or rejected.
- Hard to parse: millions of raw samples with nested attributes rather than clean daily summaries.
- Instantly outdated: it’s a one-time snapshot; you must re-export to update.
- All or nothing: it includes every category, even data you’d rather keep private.
- No control afterwards: once uploaded, you can’t see what was read or revoke access.
Method 2: Connect Apple Health to AI with Health to AI
- Install Health to AI (free, iOS 17+).
- Pick the data types to share — e.g. only sleep and heart rate.
- Data is summarized daily or hourly and encrypted on your iPhone, then synced.
- Authorize ChatGPT, Claude, Gemini or Cursor via MCP + OAuth or a read-only API key.
- Ask questions. Your AI fetches just the data it needs.
Side-by-side comparison
| XML export | Health to AI | |
|---|---|---|
| File handling | Large ZIP/XML you upload manually | No files — AI queries an authorized connection |
| Freshness | Static snapshot | Synced from your iPhone |
| What’s shared | Everything | Only the types you choose |
| AI-friendliness | Raw samples | Daily / hourly summaries |
| Encryption | Depends on where you put it | AES-256-GCM on device; ciphertext in cloud |
| Revocation & audit | Not possible | Access log + one-tap revoke |
Still need a raw file for a spreadsheet or research tool? The built-in export is fine for that. For everyday conversations with AI, a live connection is simply better.