Questions tagged [appintents]

AppIntents is a Swift-native framework that was introduced in iOS/iPadOS 16, macOS 13, watchOS 9 and tvOS 16. As Apple describes in the documentation:

The App Intents framework offers a programmatic way to make your app’s content and functionality available to system services like Siri, [Spotlight] and the Shortcuts app. The programmatic approach lets you expose any of your app’s capabilities, and not just ones that fall into specific categories. You also use this programmatic approach to supply metadata, UI information, activation phrases, and other information the system needs to initiate your app’s actions.

The AppIntents framework is the modern way to build Shortcuts for Siri, Spotlight and the Shortcuts app. It complements the SiriKit Intents framework (introduced in iOS/iPadOS 10, macOS 12, watchOS 3.2 and tvOS 14).


Related Tags

56 questions
0
votes
0 answers

AppIntent information to show custom “Requires” label & description

Is there a way to show a custom “Requires” label in the AppIntent/Shortcut action information view (when pressing the i-button)? I’ve seen this label in actions like the “Add New Reminder” of the Reminders app or “Log Workout” of the Health app. I…
alexkaessner
  • 1,966
  • 1
  • 14
  • 39
0
votes
0 answers

App Intents @Parameter with one-sided inclusive range (no upper bound)

I want to define an AppIntent/Shortcut with a number @Parameter (of type double) that has a defined range. The range should be one-sided to only include positive numbers. Basically like the Swift range: 0... The @Parameter uses the inclusiveRange…
alexkaessner
  • 1,966
  • 1
  • 14
  • 39
0
votes
1 answer

Display AppEntity results depending on the selection of a Parameter in AppIntent

I'm transitioning from SiriKit Intents to AppIntents for the upcoming iOS 17 and would like to restore the same logic as in the current IntentHandler. Based on the selection of the first parameter on the AppIntent, the app creates a list of options…
optz
  • 391
  • 1
  • 10
0
votes
0 answers

iOS AppIntent with Siri - pass parameters in initial request

I wanted to create a shortcut so my users can ask Siri to perform a certain task without having to open the app. I checked out AppIntents but it seems like they can only perform static tasks like "Add a book" and then Siri will ask questions until…
iVentis
  • 993
  • 6
  • 19
0
votes
0 answers

App Intents with dynamic parameters. SwiftUI

I am almost new to coding and I need to make an app that uses AppIntents. I would like that the intent used an array of elements to change a Text. Lets say that the array is an array of strings: ["Mountain", "Car", "Ball"] If I tell Siri: "Hey Siri,…
0
votes
0 answers

Crash when using shared instance of a data controller in App Entity definition

I'm getting an unusual unrecognized selector sent to instance crash when trying to access a shared data controller object from inside an app shortcuts AppEntity definition. It seems to relate to [NSCFString bytes]. The data controller is declared in…
Chris
  • 4,009
  • 3
  • 21
  • 52
0
votes
0 answers

Trying to add my app to the Shortcuts app for Siri

I am developing an Ionic/Vue app with Siri shortcuts. I want the app's Siri shortcuts to automatically appear in the Shortcuts app, similar to the way the native ChatGPT app does it. I am using the capacitor-plugin-siri-shortcuts plugin…
Tyler C
  • 531
  • 1
  • 5
  • 12
0
votes
1 answer

How to use compiler conditionals in an app intent (iOS 16)

I am trying to build an AppIntent (iOS 16) with a parameter where the user can enter data in the shortcuts app. The code looks like that: import Foundation import AppIntents struct MyIntent: AppIntent { static var title =…
WalterBeiter
  • 2,021
  • 3
  • 23
  • 48
0
votes
0 answers

Free form String for Parameter in AppIntent? requestValueDialog works, but filters responses and does not permit words like "last" or "recent"

We have a simple AppIntent to let users ask a question in our app. The intent has a single parameter: Prompt which is retrieved by a requestValueDialog and needs to be a free form String. Users have reported that when using Siri, the dialog for…
0
votes
1 answer

In Swift, how do I run the "Open App" Action that can be seen in the Shortcuts app?

In the Shortcuts app, there is an action called "Open App" (under the Scripting category). How can I run that in Swift? I looked at AppIntents and SiriKit but just got way too confused, having a hard time figuring out the code.
0
votes
1 answer

How do I pass auth tokens to an IOS shortcut?

I'm using the App Intents framework to create a shortcut that captures data from a user and posts it to a web service. Is there any documentation or advice about the best way to handle the authentications tokens that the web service requires? I'm…
Kittovski
  • 177
  • 3
  • 16
0
votes
1 answer

How to make an intent ask for a parameter, a number, for example?

I was wondering how to make an intent that asks the number of pages of the book that the user wants to read. You can't make an intent for every one of the pages so there has to be a better way of doing it. Here is the code for a basic intent: struct…
0
votes
0 answers

How to add APP intents or intents using Siri Kit?

I want to open the app on saying "Hey siri, Send Money"? I have a money transfer app. I want to add Siri support. Such as upon saying "Hey siri, Send Money", it should open the app (if not running) and go to a specific screen. I have tried adding…
0
votes
0 answers

How to provide genre variations of Siri AppShortcuts?

With iOS AppIntents, I can launch tasks with Siri inside my app. I defined an AppShortcuts.strings file to define phrases that triggers my app lie this: "${applicationName} my ${task}" = "${applicationName} my ${task}"; In French, my can be…
lorenzo
  • 1,487
  • 1
  • 17
  • 25
0
votes
0 answers

AppIntent to get Details for AppEntity like eg. Weather

I have an Intent, that returns an AppEntity with data from my App. Now I would like to build an Intent to get the data from all properties of the AppEntity from the first Intent. This should work like the Weather or Calendar App as shown in the…
Urkman
  • 1,298
  • 1
  • 16
  • 32