App Intents
Build intents that expose your app's functionality to Siri, Shortcuts, Spotlight, and Apple Intelligence. Covers the full App Intents framework from basic actions through advanced features like interactive snippets, intent modes, visual intelligence integration, and Spotlight entity indexing.
When This Skill Activates
- User wants to add Siri or Shortcuts integration
- User asks about App Intents, AppIntent, or AppEntity
- User needs Spotlight indexing for app content
- User wants to create App Shortcuts with voice phrases
- User is implementing interactive snippets for Siri results
- User asks about intent modes (foreground, background)
- User needs visual intelligence integration via App Intents
- User wants onscreen entity support for Siri/ChatGPT
- User asks about Swift package support for App Intents
Decision Tree
What do you need?
|
+-- Expose an action to Siri/Shortcuts
| +-- Simple action, no UI needed
| | --> Basic AppIntent (intents-basics.md)
| +-- Needs to show UI or ask user questions
| | --> Intent Modes + Interactive Snippets (advanced-features.md)
| +-- Needs a predictable voice phrase
| --> App Shortcuts (intents-basics.md)
|
+-- Make content searchable
| +-- In Spotlight
| | --> IndexedEntity + @Property (entities-spotlight.md)
| +-- Runnable from Spotlight on Mac
| | --> parameterSummary visibility gates (entities-spotlight.md)
| +-- In Visual Intelligence
| | --> IntentValueQuery + SemanticContentDescriptor (advanced-features.md)
| +-- As onscreen entities for Siri/ChatGPT
| --> annotation APIs + EntityIdentifier (advanced-features.md)
|
+-- Let Siri execute intents from natural language
| --> App Schemas: @AppIntent(schema:) / @AssistantIntent (advanced-features.md)
|
+-- Feed entities to Apple Intelligence (Use Model action)
| --> AttributedString params + entity JSON + Find actions (entities-spotlight.md)
|
+-- Hand entities to other apps as content/files
| --> Transferable / FileEntity (entities-spotlight.md)
|
+-- Show rich results in Siri
| +-- Static display only
| | --> .result(view:) snippet (advanced-features.md)
| +-- Interactive buttons/controls
| | --> SnippetIntent protocol (advanced-features.md)
| +-- Custom spoken dialog
| --> IntentDialog(full:supporting:) (advanced-features.md)
|
+-- Present choices to the user
| --> requestChoice(between:) (advanced-features.md)
|
+-- Teach Siri from in-app UI actions
| --> IntentDonationManager (advanced-features.md)
|
+-- Share intents via Swift Package
--> AppIntentsPackage protocol (advanced-features.md)
API Availability
| Feature |
Minimum OS |
Framework |
AppIntent protocol |
iOS 16 / macOS 13 |
AppIntents |
AppEntity protocol |
iOS 16 / macOS 13 |
AppIntents |
AppShortcutsProvider |
iOS 16 / macOS 13 |
AppIntents |
@Parameter macro |
iOS 16 / macOS 13 |
AppIntents |
IndexedEntity protocol |
iOS 18 / macOS 15 |
AppIntents |
@Property with indexingKey |
iOS 18 / macOS 15 |
AppIntents |
Intent Modes (supportedModes) |
iOS 26 / macOS 26 |
AppIntents |
requestChoice(between:) |
iOS 26 / macOS 26 |
AppIntents |
@ComputedProperty |
iOS 26 / macOS 26 |
AppIntents |
@DeferredProperty |
iOS 26 / macOS 26 |
AppIntents |
SnippetIntent protocol |
iOS 26 / macOS 26 |
AppIntents |
AppIntentsPackage protocol |
iOS 26 / macOS 26 |
AppIntents |
Onscreen entities (.userActivity()) |
iOS 26 / macOS 26 |
AppIntents |
@UnionValue |
iOS 18 / macOS 15 |
AppIntents |
Assistant Schemas (@AssistantIntent) |
iOS 18 |
AppIntents |
Transferable entities, FileEntity |
iOS 18 / macOS 15 |
AppIntents |
UndoableIntent |
iOS 26 / macOS 26 |
AppIntents |
App Schemas on @AppIntent(schema:) |
iOS 27 / macOS 27 |
AppIntents |
IntentDonationManager, OwnershipProvidingEntity |
iOS 27 / macOS 27 |
AppIntents |
| AppIntentsTesting framework |
Xcode 26 cycle (WWDC26) |
AppIntentsTesting |
Quick Reference
| Task |
Type/API |
Reference File |
| Define an action |
AppIntent protocol |
intents-basics.md |
| Accept parameters |
@Parameter macro |
intents-basics.md |
| Create voice phrases |
AppShortcutsProvider |
intents-basics.md |
| Define a data entity |
AppEntity protocol |
entities-spotlight.md |
| Index in Spotlight |
IndexedEntity protocol |
entities-spotlight.md |
| Mark indexable fields |
@Property(indexingKey:) |
entities-spotlight.md |
| Run in background/foreground |
supportedModes |
advanced-features.md |
| Continue in foreground |
continueInForeground() |
advanced-features.md |
| Show result UI |
.result(view:) |
advanced-features.md |
| Interactive result UI |
SnippetIntent protocol |
advanced-features.md |
| Present choices |
requestChoice(between:) |
advanced-features.md |
| Visual intelligence search |
IntentValueQuery |
advanced-features.md |
| Onscreen entity association |
.userActivity() modifier |
advanced-features.md |
| Computed/deferred properties |
@ComputedProperty, @DeferredProperty |
advanced-features.md |
| Share via packages |
AppIntentsPackage |
advanced-features.md |
| Make intents Siri-executable |
@AppIntent(schema:), @AssistantIntent |
advanced-features.md |
| Update-intent "clear vs leave unchanged" |
valueState (.set/.set(nil)/.unset) |
advanced-features.md |
| Custom Siri dialog |
IntentDialog(full:supporting:) |
advanced-features.md |
| Donate in-app UI actions |
IntentDonationManager |
advanced-features.md |
| Shared-content confirmations |
OwnershipProvidingEntity |
advanced-features.md |
| Undo intent actions |
UndoableIntent |
advanced-features.md |
| Export entities as content/files |
Transferable, FileEntity |
entities-spotlight.md |
| Run from Spotlight on Mac |
parameterSummary gates |
entities-spotlight.md |
| Accept model-generated rich text |
AttributedString parameters |
entities-spotlight.md |
Process
1. Identify Integration Needs
Read the user's code or requirements to determine:
- What actions should be exposed to Siri/Shortcuts
- What content should be searchable in Spotlight
- Whether interactive snippets are needed for Siri results
- Whether the intent needs foreground UI or can run in background
- Target platform and minimum OS version
2. Load Relevant Reference Files
Based on the need, read from this directory:
- intents-basics.md -- AppIntent protocol, @Parameter, perform(), App Shortcuts
- entities-spotlight.md -- AppEntity, IndexedEntity, Spotlight indexing, @Property
- advanced-features.md -- Intent modes, interactive snippets, visual intelligence, onscreen entities, choices, packages
3. Review or Implement
Apply patterns from the reference files. Check for common mistakes (see Top Mistakes below).
4. Cross-Reference
- For Visual Intelligence camera search, see
apple-intelligence/visual-intelligence/
- For Foundation Models on-device LLM, see
apple-intelligence/foundation-models/
- For deep linking from intents, see
generators/deep-linking/ skill
Top Mistakes
These are the most frequent errors when implementing App Intents.
1. Missing static metadata
// ❌ Wrong -- no title or description
struct MyIntent: AppIntent {
func perform() async throws -> some IntentResult {
return .result()
}
}
// ✅ Correct -- static title is required
struct MyIntent: AppIntent {
static var title: LocalizedStringResource = "Do Something"
static var description: IntentDescription = "Performs the action"
func perform() async throws -> some IntentResult {
return .result()
}
}
2. Forgetting to index entities after changes
// ❌ Wrong -- entities updated but Spotlight not notified
func saveRecipe(_ recipe: Recipe) {
database.save(recipe)
}
// ✅ Correct -- reindex after mutations
func saveRecipe(_ recipe: Recipe) async throws {
database.save(recipe)
try await CSSearchableIndex.default().indexAppEntities()
}
3. Using foreground intent for background-safe work
// ❌ Wrong -- forces app to foreground for a simple toggle
struct ToggleFavoriteIntent: AppIntent {
static var title: LocalizedStringResource = "Toggle Favorite"
static var openAppWhenRun = true // Unnecessary
func perform() async throws -> some IntentResult {
toggleFavorite()
return .result()
}
}
// ✅ Correct -- runs silently in background
struct ToggleFavoriteIntent: AppIntent {
static var title: LocalizedStringResource = "Toggle Favorite"
static let supportedModes: IntentModes = .background
func perform() async throws -> some IntentResult {
toggleFavorite()
return .result()
}
}
4. Not providing EntityStringQuery for entities
// ❌ Wrong -- entity has no way to be queried
struct NoteEntity: AppEntity {
var id: String
var title: String
// Missing: static var defaultQuery
}
// ✅ Correct -- provides a query so Siri can resolve entities
struct NoteEntity: AppEntity {
var id: String
var title: String
static var defaultQuery = NoteEntityQuery()
// ... typeDisplayRepresentation, displayRepresentation
}
5. Returning too many Spotlight results
// ❌ Wrong -- indexing thousands of items at once blocks the main thread
func indexAll() async throws {
let allItems = database.fetchAll() // 50,000 items
try await CSSearchableIndex.default().indexAppEntities()
}
// ✅ Correct -- batch index and run off main thread
func indexAll() async throws {
try await CSSearchableIndex.default().indexAppEntities(
of: RecipeEntity.self
)
}
Design Guidelines
How to decide what to expose and how it should behave — from Apple's design sessions.
App Shortcuts (WWDC22)
- Pick self-contained, straightforward features completable without the app in focus.
- Hard cap is 10 App Shortcuts; aim for 2–5 high-quality ones.
- Invocation phrase: brief, memorable, and must include the app name — provide natural synonym variants per language ("Start a run" / "Begin a run").
- At most one dynamic parameter per phrase; values must come from a finite, front-of-mind list, ordered by recency/frequency — the first value becomes the top Spotlight suggestion.
- Three dialog flows: Parameter Confirmation (assume the likely value, confirm it), Disambiguation (short list that teaches the available values), Intent Confirmation only for consequential actions (financial, destructive, high-risk).
- Snippet visuals: semitranslucent material + vibrant label colors — never opaque backgrounds.
- Suppress spoken dialog when the snippet fully communicates the result, but keep the dialog complete for voice-only contexts (AirPods, CarPlay).
- Surface in-app education right before or after the user performs the action they'd repeat — that's when the phrase sticks.
What deserves to be an intent (WWDC24)
- "Anything your app does should be an app intent." Scope by task, not by a feature checklist.
- Start from fundamental verbs — Create, Open, Search — then specialize.
- Consolidate near-duplicates into one flexible intent with parameters ("Start Workout" with a workout-type parameter, not five separate intents).
- Intents represent tasks, never UI gestures — "save the draft", not "tap the save button".
- Live Activity and audio apps should expose background read-intents (current state, now playing), not just actions.
- Parameter summaries must read as complete sentences for every possible value.
- Make parameters optional by default so the intent runs immediately with no follow-up questions; binary states default to a toggle rather than explicit on/off.
- Intents that end in the UI get an "Open When Run" toggle, default on — users composing shortcuts may want to suppress it.
Interactive snippet design (WWDC25)
- Max content height 340pt — beyond that is clipped, not scrolled.
- Use larger-than-default type; snippets are glanced at from a distance.
- Show only essential info — link into the app for anything more.
- Use ContainerRelativeShape for margins that adapt to the snippet's corner radius.
- Vibrant brand backgrounds are fine, but check contrast for distance viewing.
- Two types: Result (outcome + Done button) vs Confirmation (action-verb button like "Order"); Confirmation → Result is the canonical flow.
- The snippet must be self-sufficient even if Siri dialog is never shown or heard.
Review Checklist
Before shipping App Intents integration:
WWDC Session References
Rules throughout the reference files carry inline attributions to these sessions:
| Session |
Covers |
| WWDC24 10133 — Bring your app to Siri |
Assistant Schemas, 12 iOS 18 domains, semantic search |
| WWDC24 10210 — Bring your app's core features to users |
Core doctrine: intents, entities, queries, reuse across surfaces |
| WWDC24 10134 — App Intents framework additions |
IndexedEntity, Transferable, FileEntity, @UnionValue |
| WWDC24 10176 — Design App Intents for system experiences |
Scope + parameter design rules, Open When Run |
| WWDC25 244 — Get to know App Intents |
Protocol shapes, metadata extraction, ID contract, packaging |
| WWDC25 275 — Advances in App Intents |
SnippetIntent, intent modes, undo, onscreen entities |
| WWDC25 260 — Develop for Shortcuts and Spotlight |
Use Model action, Find actions, Mac Spotlight gates |
| WWDC26 240 — Build intelligent Siri experiences with App Schemas |
Unified schema macros, testing ladder |
| WWDC26 343 — Advanced App Intents features for Siri |
Dialogs, donations, ownership, annotation APIs |
| WWDC26 344 — Code-along: Make your app available to Siri |
Canonical integration sequence, valueState |
References
1---
2name: app-intents
3description: App Intents for Siri, Shortcuts, Spotlight, and Apple Intelligence integration including intent modes, interactive snippets, visual intelligence, and entity indexing. Use when implementing Siri integration, App Shortcuts, or Spotlight indexing.
4allowed-tools: [Read, Glob, Grep]
5last_verified: 2026-07-16
6review_by: 2027-06-22
7os_version: iOS 27 / macOS 27
8---
9
10# App Intents
11
12Build intents that expose your app's functionality to Siri, Shortcuts, Spotlight, and Apple Intelligence. Covers the full App Intents framework from basic actions through advanced features like interactive snippets, intent modes, visual intelligence integration, and Spotlight entity indexing.
13
14## When This Skill Activates
15
16- User wants to add Siri or Shortcuts integration
17- User asks about App Intents, AppIntent, or AppEntity
18- User needs Spotlight indexing for app content
19- User wants to create App Shortcuts with voice phrases
20- User is implementing interactive snippets for Siri results
21- User asks about intent modes (foreground, background)
22- User needs visual intelligence integration via App Intents
23- User wants onscreen entity support for Siri/ChatGPT
24- User asks about Swift package support for App Intents
25
26## Decision Tree
27
28```
29What do you need?
30|
31+-- Expose an action to Siri/Shortcuts
32| +-- Simple action, no UI needed
33| | --> Basic AppIntent (intents-basics.md)
34| +-- Needs to show UI or ask user questions
35| | --> Intent Modes + Interactive Snippets (advanced-features.md)
36| +-- Needs a predictable voice phrase
37| --> App Shortcuts (intents-basics.md)
38|
39+-- Make content searchable
40| +-- In Spotlight
41| | --> IndexedEntity + @Property (entities-spotlight.md)
42| +-- Runnable from Spotlight on Mac
43| | --> parameterSummary visibility gates (entities-spotlight.md)
44| +-- In Visual Intelligence
45| | --> IntentValueQuery + SemanticContentDescriptor (advanced-features.md)
46| +-- As onscreen entities for Siri/ChatGPT
47| --> annotation APIs + EntityIdentifier (advanced-features.md)
48|
49+-- Let Siri execute intents from natural language
50| --> App Schemas: @AppIntent(schema:) / @AssistantIntent (advanced-features.md)
51|
52+-- Feed entities to Apple Intelligence (Use Model action)
53| --> AttributedString params + entity JSON + Find actions (entities-spotlight.md)
54|
55+-- Hand entities to other apps as content/files
56| --> Transferable / FileEntity (entities-spotlight.md)
57|
58+-- Show rich results in Siri
59| +-- Static display only
60| | --> .result(view:) snippet (advanced-features.md)
61| +-- Interactive buttons/controls
62| | --> SnippetIntent protocol (advanced-features.md)
63| +-- Custom spoken dialog
64| --> IntentDialog(full:supporting:) (advanced-features.md)
65|
66+-- Present choices to the user
67| --> requestChoice(between:) (advanced-features.md)
68|
69+-- Teach Siri from in-app UI actions
70| --> IntentDonationManager (advanced-features.md)
71|
72+-- Share intents via Swift Package
73 --> AppIntentsPackage protocol (advanced-features.md)
74```
75
76## API Availability
77
78| Feature | Minimum OS | Framework |
79|---------|-----------|-----------|
80| `AppIntent` protocol | iOS 16 / macOS 13 | AppIntents |
81| `AppEntity` protocol | iOS 16 / macOS 13 | AppIntents |
82| `AppShortcutsProvider` | iOS 16 / macOS 13 | AppIntents |
83| `@Parameter` macro | iOS 16 / macOS 13 | AppIntents |
84| `IndexedEntity` protocol | iOS 18 / macOS 15 | AppIntents |
85| `@Property` with `indexingKey` | iOS 18 / macOS 15 | AppIntents |
86| Intent Modes (`supportedModes`) | iOS 26 / macOS 26 | AppIntents |
87| `requestChoice(between:)` | iOS 26 / macOS 26 | AppIntents |
88| `@ComputedProperty` | iOS 26 / macOS 26 | AppIntents |
89| `@DeferredProperty` | iOS 26 / macOS 26 | AppIntents |
90| `SnippetIntent` protocol | iOS 26 / macOS 26 | AppIntents |
91| `AppIntentsPackage` protocol | iOS 26 / macOS 26 | AppIntents |
92| Onscreen entities (`.userActivity()`) | iOS 26 / macOS 26 | AppIntents |
93| `@UnionValue` | iOS 18 / macOS 15 | AppIntents |
94| Assistant Schemas (`@AssistantIntent`) | iOS 18 | AppIntents |
95| `Transferable` entities, `FileEntity` | iOS 18 / macOS 15 | AppIntents |
96| `UndoableIntent` | iOS 26 / macOS 26 | AppIntents |
97| App Schemas on `@AppIntent(schema:)` | iOS 27 / macOS 27 | AppIntents |
98| `IntentDonationManager`, `OwnershipProvidingEntity` | iOS 27 / macOS 27 | AppIntents |
99| AppIntentsTesting framework | Xcode 26 cycle (WWDC26) | AppIntentsTesting |
100
101## Quick Reference
102
103| Task | Type/API | Reference File |
104|------|----------|----------------|
105| Define an action | `AppIntent` protocol | `intents-basics.md` |
106| Accept parameters | `@Parameter` macro | `intents-basics.md` |
107| Create voice phrases | `AppShortcutsProvider` | `intents-basics.md` |
108| Define a data entity | `AppEntity` protocol | `entities-spotlight.md` |
109| Index in Spotlight | `IndexedEntity` protocol | `entities-spotlight.md` |
110| Mark indexable fields | `@Property(indexingKey:)` | `entities-spotlight.md` |
111| Run in background/foreground | `supportedModes` | `advanced-features.md` |
112| Continue in foreground | `continueInForeground()` | `advanced-features.md` |
113| Show result UI | `.result(view:)` | `advanced-features.md` |
114| Interactive result UI | `SnippetIntent` protocol | `advanced-features.md` |
115| Present choices | `requestChoice(between:)` | `advanced-features.md` |
116| Visual intelligence search | `IntentValueQuery` | `advanced-features.md` |
117| Onscreen entity association | `.userActivity()` modifier | `advanced-features.md` |
118| Computed/deferred properties | `@ComputedProperty`, `@DeferredProperty` | `advanced-features.md` |
119| Share via packages | `AppIntentsPackage` | `advanced-features.md` |
120| Make intents Siri-executable | `@AppIntent(schema:)`, `@AssistantIntent` | `advanced-features.md` |
121| Update-intent "clear vs leave unchanged" | `valueState` (`.set`/`.set(nil)`/`.unset`) | `advanced-features.md` |
122| Custom Siri dialog | `IntentDialog(full:supporting:)` | `advanced-features.md` |
123| Donate in-app UI actions | `IntentDonationManager` | `advanced-features.md` |
124| Shared-content confirmations | `OwnershipProvidingEntity` | `advanced-features.md` |
125| Undo intent actions | `UndoableIntent` | `advanced-features.md` |
126| Export entities as content/files | `Transferable`, `FileEntity` | `entities-spotlight.md` |
127| Run from Spotlight on Mac | `parameterSummary` gates | `entities-spotlight.md` |
128| Accept model-generated rich text | `AttributedString` parameters | `entities-spotlight.md` |
129
130## Process
131
132### 1. Identify Integration Needs
133
134Read the user's code or requirements to determine:
135- What actions should be exposed to Siri/Shortcuts
136- What content should be searchable in Spotlight
137- Whether interactive snippets are needed for Siri results
138- Whether the intent needs foreground UI or can run in background
139- Target platform and minimum OS version
140
141### 2. Load Relevant Reference Files
142
143Based on the need, read from this directory:
144- **intents-basics.md** -- AppIntent protocol, @Parameter, perform(), App Shortcuts
145- **entities-spotlight.md** -- AppEntity, IndexedEntity, Spotlight indexing, @Property
146- **advanced-features.md** -- Intent modes, interactive snippets, visual intelligence, onscreen entities, choices, packages
147
148### 3. Review or Implement
149
150Apply patterns from the reference files. Check for common mistakes (see Top Mistakes below).
151
152### 4. Cross-Reference
153
154- For **Visual Intelligence camera search**, see `apple-intelligence/visual-intelligence/`
155- For **Foundation Models on-device LLM**, see `apple-intelligence/foundation-models/`
156- For **deep linking from intents**, see `generators/deep-linking/` skill
157
158## Top Mistakes
159
160These are the most frequent errors when implementing App Intents.
161
162### 1. Missing static metadata
163
164```swift
165// ❌ Wrong -- no title or description
166struct MyIntent: AppIntent {
167 func perform() async throws -> some IntentResult {
168 return .result()
169 }
170}
171
172// ✅ Correct -- static title is required
173struct MyIntent: AppIntent {
174 static var title: LocalizedStringResource = "Do Something"
175 static var description: IntentDescription = "Performs the action"
176
177 func perform() async throws -> some IntentResult {
178 return .result()
179 }
180}
181```
182
183### 2. Forgetting to index entities after changes
184
185```swift
186// ❌ Wrong -- entities updated but Spotlight not notified
187func saveRecipe(_ recipe: Recipe) {
188 database.save(recipe)
189}
190
191// ✅ Correct -- reindex after mutations
192func saveRecipe(_ recipe: Recipe) async throws {
193 database.save(recipe)
194 try await CSSearchableIndex.default().indexAppEntities()
195}
196```
197
198### 3. Using foreground intent for background-safe work
199
200```swift
201// ❌ Wrong -- forces app to foreground for a simple toggle
202struct ToggleFavoriteIntent: AppIntent {
203 static var title: LocalizedStringResource = "Toggle Favorite"
204 static var openAppWhenRun = true // Unnecessary
205
206 func perform() async throws -> some IntentResult {
207 toggleFavorite()
208 return .result()
209 }
210}
211
212// ✅ Correct -- runs silently in background
213struct ToggleFavoriteIntent: AppIntent {
214 static var title: LocalizedStringResource = "Toggle Favorite"
215
216 static let supportedModes: IntentModes = .background
217
218 func perform() async throws -> some IntentResult {
219 toggleFavorite()
220 return .result()
221 }
222}
223```
224
225### 4. Not providing EntityStringQuery for entities
226
227```swift
228// ❌ Wrong -- entity has no way to be queried
229struct NoteEntity: AppEntity {
230 var id: String
231 var title: String
232 // Missing: static var defaultQuery
233}
234
235// ✅ Correct -- provides a query so Siri can resolve entities
236struct NoteEntity: AppEntity {
237 var id: String
238 var title: String
239
240 static var defaultQuery = NoteEntityQuery()
241 // ... typeDisplayRepresentation, displayRepresentation
242}
243```
244
245### 5. Returning too many Spotlight results
246
247```swift
248// ❌ Wrong -- indexing thousands of items at once blocks the main thread
249func indexAll() async throws {
250 let allItems = database.fetchAll() // 50,000 items
251 try await CSSearchableIndex.default().indexAppEntities()
252}
253
254// ✅ Correct -- batch index and run off main thread
255func indexAll() async throws {
256 try await CSSearchableIndex.default().indexAppEntities(
257 of: RecipeEntity.self
258 )
259}
260```
261
262## Design Guidelines
263
264How to decide *what* to expose and how it should behave — from Apple's design sessions.
265
266### App Shortcuts (WWDC22)
267
268- Pick **self-contained, straightforward features** completable without the app in focus.
269- Hard cap is **10 App Shortcuts**; aim for **2–5 high-quality** ones.
270- Invocation phrase: brief, memorable, and **must include the app name** — provide natural synonym variants per language ("Start a run" / "Begin a run").
271- At most **one dynamic parameter per phrase**; values must come from a **finite, front-of-mind list**, ordered by recency/frequency — the first value becomes the top Spotlight suggestion.
272- Three dialog flows: **Parameter Confirmation** (assume the likely value, confirm it), **Disambiguation** (short list that teaches the available values), **Intent Confirmation** only for consequential actions (financial, destructive, high-risk).
273- Snippet visuals: **semitranslucent material + vibrant label colors** — never opaque backgrounds.
274- **Suppress spoken dialog when the snippet fully communicates the result**, but keep the dialog complete for voice-only contexts (AirPods, CarPlay).
275- Surface in-app education **right before or after the user performs the action they'd repeat** — that's when the phrase sticks.
276
277### What deserves to be an intent (WWDC24)
278
279- **"Anything your app does should be an app intent."** Scope by task, not by a feature checklist.
280- Start from **fundamental verbs** — Create, Open, Search — then specialize.
281- **Consolidate near-duplicates** into one flexible intent with parameters ("Start Workout" with a workout-type parameter, not five separate intents).
282- Intents represent **tasks, never UI gestures** — "save the draft", not "tap the save button".
283- Live Activity and audio apps should expose **background read-intents** (current state, now playing), not just actions.
284- **Parameter summaries must read as complete sentences** for *every* possible value.
285- Make parameters **optional by default** so the intent runs immediately with no follow-up questions; **binary states default to a toggle** rather than explicit on/off.
286- Intents that end in the UI get an **"Open When Run" toggle, default on** — users composing shortcuts may want to suppress it.
287
288### Interactive snippet design (WWDC25)
289
290- **Max content height 340pt** — beyond that is clipped, not scrolled.
291- Use **larger-than-default type**; snippets are glanced at from a distance.
292- Show **only essential info** — link into the app for anything more.
293- Use **ContainerRelativeShape** for margins that adapt to the snippet's corner radius.
294- Vibrant brand backgrounds are fine, but **check contrast for distance viewing**.
295- Two types: **Result** (outcome + Done button) vs **Confirmation** (action-verb button like "Order"); **Confirmation → Result is the canonical flow**.
296- The snippet must be **self-sufficient even if Siri dialog is never shown or heard**.
297
298## Review Checklist
299
300Before shipping App Intents integration:
301
302- [ ] Every `AppIntent` has a `static var title` and `static var description`
303- [ ] Every `AppEntity` has `typeDisplayRepresentation`, `displayRepresentation`, and `defaultQuery`
304- [ ] `@Parameter` properties have descriptive titles
305- [ ] Entities used in Shortcuts have `EntityStringQuery` or `EntityPropertyQuery`
306- [ ] `IndexedEntity` types call `CSSearchableIndex.default().indexAppEntities()` after data changes
307- [ ] `@Property` fields used in indexing have `indexingKey` set
308- [ ] App Shortcuts have clear, natural-language phrases with `\(.applicationName)`
309- [ ] Intent modes match the actual work: background for data ops, foreground for UI
310- [ ] Interactive snippets use `SnippetIntent` (not plain `AppIntent`)
311- [ ] SnippetIntent `perform()` never mutates state — mutations live in the button intents (WWDC25 275)
312- [ ] `parameterSummary` includes every required parameter without a default — the Spotlight-on-Mac visibility gate (WWDC25 260)
313- [ ] Text-accepting parameters use `AttributedString`, not `String` (Use Model rich text, WWDC25 260)
314- [ ] `perform()` handles errors gracefully and returns meaningful dialog
315- [ ] Intents are tested in the order: AppIntentsTesting → Shortcuts → Spotlight → Siri (WWDC26 240)
316- [ ] Deep links from entity results navigate to the correct screen
317
318## WWDC Session References
319
320Rules throughout the reference files carry inline attributions to these sessions:
321
322| Session | Covers |
323|---------|--------|
324| WWDC24 10133 — Bring your app to Siri | Assistant Schemas, 12 iOS 18 domains, semantic search |
325| WWDC24 10210 — Bring your app's core features to users | Core doctrine: intents, entities, queries, reuse across surfaces |
326| WWDC24 10134 — App Intents framework additions | IndexedEntity, Transferable, FileEntity, `@UnionValue` |
327| WWDC24 10176 — Design App Intents for system experiences | Scope + parameter design rules, Open When Run |
328| WWDC25 244 — Get to know App Intents | Protocol shapes, metadata extraction, ID contract, packaging |
329| WWDC25 275 — Advances in App Intents | SnippetIntent, intent modes, undo, onscreen entities |
330| WWDC25 260 — Develop for Shortcuts and Spotlight | Use Model action, Find actions, Mac Spotlight gates |
331| WWDC26 240 — Build intelligent Siri experiences with App Schemas | Unified schema macros, testing ladder |
332| WWDC26 343 — Advanced App Intents features for Siri | Dialogs, donations, ownership, annotation APIs |
333| WWDC26 344 — Code-along: Make your app available to Siri | Canonical integration sequence, `valueState` |
334
335## References
336
337- [App Intents framework](https://developer.apple.com/documentation/AppIntents)
338- [Making your app's functionality available to Siri](https://developer.apple.com/documentation/AppIntents/making-your-apps-functionality-available-to-siri)
339- [App Shortcuts](https://developer.apple.com/documentation/AppIntents/app-shortcuts)
340- [IndexedEntity](https://developer.apple.com/documentation/AppIntents/IndexedEntity)
341- [Spotlight integration](https://developer.apple.com/documentation/CoreSpotlight)
342- Local captured doc (optional): `~/Downloads/docs/AppIntents-Updates.md` — read if present; skip silently if absent.