Sub topic 15
Triggering Shortcuts with Siri
This chapter assumes you can open System Settings, that Siri is already turned on, and that you know how to make a request by voice or by typing. You don't need earlier experience with Shortcuts. The goal is to run a Shortcut from Siri and understand why it sometimes doesn't run.
How Siri and Shortcuts connect
A Shortcut is a named sequence of actions that you build in the Shortcuts app. Each Shortcut has a name. Siri uses that name as a spoken command. If you have a Shortcut called "Daily Summary", saying "Daily Summary" to Siri runs it. The shortcuts command-line tool covered in a later chapter does the same thing, but from Terminal.
Siri adds no extra setup step. The Shortcut only has to exist in your library and have a name that Siri can recognize.
Running your first Shortcut by voice
- Open the Shortcuts app and create a Shortcut. A simple one is "Get Current Date" followed by "Show Result".
- Name it with a short, distinct phrase, such as "What day is it".
- Invoke Siri by voice, keyboard shortcut or menu bar.
- Say the name of the Shortcut, or type it if you use Type to Siri.
Siri runs the actions in order. If an action needs input, such as a text prompt, Siri asks for it. If an action needs permission to reach a file, a folder or another app, macOS asks you to approve it. After you approve, the Shortcut runs without asking again.
Choosing good names
Siri matches what it hears against your Shortcut names, so the name matters.
- Use two to four words that are easy to say.
- Avoid names that sound like built-in requests, such as "Set a timer". Siri may pick its own feature instead.
- Avoid two Shortcuts with similar names. Siri may pick the wrong one.
- Rename a Shortcut if Siri keeps mishearing it. The new name takes effect for the next request.
Common errors
| Symptom | Likely cause | What to try |
|---|---|---|
| Siri searches the web instead | The name does not match any Shortcut | Say the exact name, or rename the Shortcut |
| Siri runs the wrong Shortcut | Two names sound alike | Give each a clearly different name |
| The Shortcut stops partway | An action needs a permission you have not granted | Run it once in the Shortcuts app and approve the prompts |
| Nothing happens | Siri is off or cannot hear you | Check that Siri is enabled, then try typing the name |
Checking from the command line
If Siri does not find a Shortcut, confirm the name with Terminal. The name that shortcuts list prints is the name Siri expects.
shortcuts listExercise
You created a Shortcut named "Set a timer for tea", but Siri starts its built-in timer instead of running your Shortcut. What is the likely cause, and what is the fix?
Show answer
The name is too close to Siri's built-in timer request, so Siri handles it as its own feature. Rename the Shortcut to a distinct phrase, such as "Tea brew", and try the request again.
Exercise
A Shortcut works when you click play in the Shortcuts app, but it stops partway when you run it with Siri. Name one thing to check.
Show answer
Check whether an action needs a permission, such as access to a file, folder or app. Run the Shortcut in the Shortcuts app, approve every prompt, and then ask Siri again.