# Deep-Link-Assisted App Onboarding

Do not execute this prompt unilaterally. First explain its purpose and proposed scope to the user. Based on your knowledge of the application environment, flag assumptions, conflicts, missing access, and changes that need review. Keep initial inspection read-only and within authorized access. Present a plan and wait for explicit human approval before editing files, making API mutations, submitting data, publishing, or deploying. Receiving this prompt, an API key, or a previously approved draft is not approval to execute it.

Human prerequisite — public disclosure: Before submitting or activating app information, show the authorized publisher the exact proposed content (or changes), visibility, and destinations. Ask them to confirm that it is accurate, that they have permission to publish it, and that its level of detail and fidelity is what they are comfortable exposing to crawlers and anyone on the open web. Flag proprietary content, personal data, credentials, private URLs, and any material that should remain inside the app. Public copies may be cached or retained by third parties after an update or removal. Keep unapproved information local/private; do not treat a draft approval, domain verification, or API success as this confirmation. Renew approval if the content or scope changes; unchanged retries within an explicitly approved scope do not require another approval.

- Version: Blue Jetty Publisher API 0.1
- Purpose: create a fast, reviewable first map of an app from routing infrastructure the publisher already controls

## What this method can and cannot prove

Apple Universal Links, Android App Links, website sitemaps, and navigation route definitions are valuable bootstrap inputs. They can reveal controlled domains, URL scopes, route patterns, and candidate destinations.

They are not a complete content catalog—and a complete catalog is not the default goal. Map what exists and how to reach it. Association files describe the website's declared relationship to an app; inspecting a website-hosted file alone does not independently prove authority over that app. Treat every generated entity as a draft publisher claim that requires review and enrichment before submission.

## Inputs to ask the publisher for

Use only inputs the publisher is authorized to inspect and publish:

1. official app domain and store URLs;
2. iOS bundle ID and `Associated Domains` entitlement;
3. the domain's `/.well-known/apple-app-site-association` file;
4. Android package name and relevant `AndroidManifest.xml` intent filters;
5. the domain's `/.well-known/assetlinks.json` file;
6. public XML sitemaps and visible JSON-LD;
7. route declarations, navigation graphs, CMS content types, or public catalog exports;
8. a human explanation of what each important route represents.

Never request signing keys, private user data, session cookies, private API credentials, or production database access for this workflow.

## Bootstrap algorithm for a coding agent

1. **Lock app identity.** Record the publisher domain, iOS bundle ID, Android package name, store IDs, and regional variants.
2. **Compare domain associations.** Compare the Apple application identifiers and Android package/certificate declarations with publisher-supplied app identity. Flag conflicts; do not silently merge them or turn matching self-declarations into a verified-ownership claim.
3. **Extract URL scope.** Convert Apple `components` or legacy `paths`, Android manifest intent filters, and any Android dynamic rules into candidate host/path patterns. Preserve exclusions.
4. **Select useful public URLs.** Start with major experiences and representative routes from same-origin sitemaps, visible navigation, or another publisher-authorized list. Exhaustively exporting an inventory is not required. Do not invent a URL from a pattern unless the publisher confirms it resolves.
5. **Create draft entities.** For each useful URL, derive a stable publisher-native ID, type, name, concise selection summary, source update time, canonical URL, and destination.
6. **Enrich semantics.** Use route definitions, JSON-LD, CMS fields, and publisher explanations to add typed attributes, availability, language, region, and vertical-specific namespaced extensions.
7. **Review gaps.** Report routes with no name, meaning, stable identity, public source, or usable destination. These remain excluded until fixed.
8. **Validate and submit.** Follow the Blue Jetty coding-agent runbook and published JSON Schemas. Human authorization remains required.

## Use Blue Jetty's bounded discovery preview

If the publisher has a public sitemap with matching visible JSON-LD, an authorized agent can preview candidate entities without publishing them:

```bash
curl https://bluejetty.ai/v1/apps/$APP_ID/discover \
  --request POST \
  --header "Authorization: Bearer $BLUEJETTY_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"sitemapUrl":"https://publisher.example/sitemap.xml","maxPages":25}'
```

The preview is bounded, same-host, SSRF-protected, and does not mutate the app corpus. Review and transform accepted candidates into a profile 0.1 snapshot before submission.

## Minimum review checklist

- Every entity describes something a user could reasonably select inside the app.
- The stable ID will survive title and URL changes.
- The name and summary are supported by a publisher-authorized source.
- The destination matches declared Apple/Android routing scope or has an explicit web/store fallback.
- Publisher claims are not presented as Blue Jetty verification.
- No app end-user personal data, credentials, private content, or material without publishing rights is present.
- Richer metadata and named entities are included when useful, not stripped merely to keep the map abstract.
- A machine can explain why the app or entity fits and where to open it without receiving the app's complete content or core workflow.
- Coverage gaps and inferred fields are reported to the human.

## Expected outcome

This method should reduce blank-page onboarding work, especially for apps with mature verified-link and web-catalog infrastructure. It will not eliminate publisher review. The valuable final step is enrichment: explaining what each route contains, which intent it satisfies, how current it is, and where the user should land.

## Optional assistant-assembled links

A supported fixed link can optionally carry a [configuration 0.5 recipe](https://bluejetty.ai/developers/link-recipes.md). Inspect app route handlers for finite choices and propose exact examples for publisher review. Universal/App Link association evidence alone does not establish input semantics. Keep unsupported, signed or opaque provider links unchanged. Recipes are optional and use the existing configuration revision workflow.
