# Import an Apple Maps guide on iOS

Use this when the bookmarklet is awkward on iPhone. You can also keep using the in-app **Import guide** modal bookmarklet.

## Option A — Shortcuts (Share sheet)

Create a Shortcut with these actions:

1. **Receive** input from Share Sheet (accept URLs and text).
2. **If** input contains `maps.apple` **Then**
   - **Open URLs** (opens the guide in Safari).
   - **Wait** 2 seconds.
   - **Show** a reminder: run your bookmarklet bookmark on the guide page.
3. **Otherwise**
   - **Set clipboard** to input text.
   - **Open** `https://tamu-ai-chat.pages.dev` (or your deployment URL).
   - **Show** alert: paste into Import guide.

Add the Shortcut to the Share sheet for Apple Maps links.

> Shortcuts cannot run the extractor JavaScript inside Apple Maps. After the guide opens in Safari, tap your **Extract Apple Maps Guide** bookmark, then paste in TAMU AI Chat.

## Option B — Bookmarklet only (recommended)

1. On a Mac, copy the bookmarklet from **Import guide** in the chat app.
2. AirDrop or message the bookmark URL to your iPhone.
3. Create a Safari bookmark, edit it, and paste the bookmarklet URL.
4. Open the guide in Safari → tap the bookmark → paste JSON in **Import guide**.

## Option C — Manual paste

If you already have guide JSON (from another device):

1. Open TAMU AI Chat.
2. Tap **Import guide** in the composer.
3. Paste JSON → **Insert into message**.

## Tips

- Guides with many places may only expose the first page in fetched HTML; the bookmarklet scrolls to collect more.
- For restaurant sorting prompts, paste the guide JSON so the model gets structured place names and hours.
