Glossary

What are App Intents?

App Intents is Apple's framework for describing what an app can do, so that the rest of iOS can do it too. An app intent is one action, such as logging a glass of water or starting a timer, written so that Siri, the Shortcuts app, Spotlight, widgets and the Action button can run it. App Shortcuts go a step further: they give an action spoken phrases, ready the moment the app is installed.

More about App Intents

Apple's compiler reads the intents when the app is built and generates what Siri and the system need to find them, so nothing has to be registered by hand. An intent can take inputs, such as which habit to tick, and answer with a short reply that Siri speaks or shows. The same intent can sit behind a button in a widget, a result in Spotlight or a step in a shortcut someone puts together, which is why one action written well turns up in so many places.

An example

A water log shows the idea. The app defines one action, add a glass, and one App Shortcut with the phrase 'Log a glass in Water Log'. Say that to Siri with the phone in your pocket, and a glass is added and Siri answers that it's the fifth today, without the app opening. The same action appears in the Shortcuts app, where someone can fit it into their own routine, and on the Action button of an iPhone that has one.

A common misunderstanding

App Intents aren't the older SiriKit, and they don't make Siri understand anything you might say about an app. Siri listens for the phrases the app declared, so 'Log a glass in Water Log' works where 'I drank some water' may not. They aren't only for Siri, either: the same actions run Shortcuts, Spotlight and widget buttons, and plenty of people use them by tapping rather than talking.

In a Borel app

Siri can't be tried in the preview: the iPhone in your browser runs on a Mac without it, so a Borel app's action is built and checked there through the app's own buttons, and the phrase is spoken on a real iPhone. Ask for a phrase while you build, then say it to your own phone after Borel Companion installs the app. Once the app is on the App Store, everyone who downloads it has the same phrases, ready with nothing to set up.

App Intents with Borel

Ask for a Siri phrase or a Shortcuts action, such as 'Log a glass in Water Log', and Borel writes it in Swift with App Intents inside the app itself: no extra part, and no permission to ask for. Each phrase includes the app's name, and an action that changes the app's data uses the same data its screens show.

Sources: Apple Developer: App Intents; Apple Developer: App Shortcuts. Checked .

Related terms

All glossary terms

Make your iPhone app in Borel

Describe it in your own words. Borel writes it in Swift, builds it on its own Mac and puts it on your iPhone.