Building for Voice with Siri Shortcuts

WWDC 2018

Posted by Den on September 14, 2018 · 9 mins read
Building for Voice with Siri Shortcuts

Building for Voice with Siri Shortcuts

WWDC 2018

Building for Voice with Siri Shortcuts

WWDC 2018

Adding Shortcuts to Siri

Types of custom responses

  • Confirmation
  • Success
  • Information
  • Error

Adopting Custom Responses

1. Define a custom intent

2. Select a category for your intent

3. Declare response properties

4. Provide a response template string

Xcode will automatically generate the subclass

5. Provide custom responses in your intent handler

Adopting Custom Responses

Custom UI Extension

Demo

Siri Shortcuts Best Practices

Way to donate

Customizing Donations

Choosing a Good Title and Subtitle

  • The title should represent what happens when you run the shortcut
  • The subtitle should provide supplementary information if needed

Basic Guidelines for Title and Subtitle

  • Use sentence case
  • Keep the title concise
  • Include critical information
  • Include a verb for Intents
  • Localize

Things to Avoid in Title and Subtitle

  • The name of your app
  • Duplicate information in the title and subtitle
  • “Quotation marks” excepts when referring to strings that will be used verbatim in the shortcut

Thumbnail Image

Suggesting an invocation phrase

NSUserActivity
INIntent

Choosing a Good Suggested Invocation Phrase

  • Short and memorable
  • Don’t include “Hey Siri”

Localization

How to suggest a shortcut for something a user hasn’t done yet

Bringing Shortcuts Into Your App

NSUserActivity
INIntent