how to create intent for Apple Intelligence?
Generated on 7/31/2024
1 search
To create intents for Apple Intelligence, you will need to use the App Intents framework. This framework allows you to define a set of actions that Siri, Shortcuts, and other system experiences can perform. Here are the steps to get started:
-
Define Your App Intents: Use the App Intents framework to define the actions your app can perform. This involves specifying the inputs and outputs for each intent. For example, if your app manages photos, you might define an intent for adding a photo to an album.
-
Conform to Schemas: Apple Intelligence uses schemas to understand and process user requests. By conforming your intents to these schemas, you enable Apple Intelligence to reason over them and predict the appropriate actions based on user requests. This involves using assistant intent macros and assistant entity macros in your code.
-
Expose Capabilities: Make sure to expose your app's capabilities using the App Intents framework. This allows Siri and other system experiences to access and perform actions using your app's data and functionalities.
-
Integrate with Siri: If your app does not overlap with an existing SiriKit domain, App Intents is the right framework for you. This integration allows Siri to call the app intents that fall into supported domains, providing deeper and more natural access to your app's data and capabilities.
For a detailed walkthrough, you can refer to the session Bring your app to Siri (20:10).
Relevant Sessions
- Platforms State of the Union
- Bring your app to Siri
- Design App Intents for system experiences
- Bring your app’s core features to users with App Intents
These sessions provide comprehensive information on how to create and integrate app intents with Apple Intelligence.
Bring your app to Siri
Learn how to use App Intents to expose your app’s functionality to Siri. Understand which intents are already available for your use, and how to create custom intents to integrate actions from your app into the system. We’ll also cover what metadata to provide, making your entities searchable via Spotlight, annotating onscreen references, and much more.
Platforms State of the Union
Discover the newest advancements on Apple platforms.
Design App Intents for system experiences
App Intents power system experiences in controls, Spotlight, Siri, and more. Find out how to identify the functionality that’s best for App Intents, and how to use parameters to make these intents flexible. Learn how to use App Intents to allow people to take action outside your app, and see examples of when to navigate into your app to show contextual information.
Bring your app’s core features to users with App Intents
Learn the principles of the App Intents framework, like intents, entities, and queries, and how you can harness them to expose your app’s most important functionality right where people need it most. Find out how to build deep integration between your app and the many system features built on top of App Intents, including Siri, controls and widgets, Apple Pencil, Shortcuts, the Action button, and more. Get tips on how to build your App Intents integrations efficiently to create the best experiences in every surface while still sharing code and core functionality.