Connecting Siri Shortcuts to your voice-enabled app

By leveraging Siri Shortcuts, users are able to have a seamless voice experience between Siri and your voice-enabled app. This will allow users to start with Siri and continue to your app for multi-step conversations.  

How it works:

The SDK has Shortcut events that map to event triggers in Dialogflow. The SDK comes with events 1 through 4. In Xcode, you will re-name the title of these events to something that makes sense to your users and use cases. In Dialogflow, you will add these events to what you want Dialogflow to say. 

Best practice:  

We recommend having your main shortcut be “Talk to App Name”. Siri Shortcuts can be hard for users to remember so having one that is easy is a great way to onboard users.


Step 1: Re-name your Siri Shortcuts
Step 2: Add event labels in Dialogflow
Step 3: Try it out

Step 1:

  • In Xcode on line 26 and after of SiriShortCutVC.swift, change the “let title” to whatever you want the shortcut to read for the user. You can see below, I have changed it to “Talk to My App”.

  • Quit and restart the simulator and you will see in the Shortcuts gallery the renamed Shortcut

  • Click continue

Step 2: Add event labels in Dialogflow

  • Now go to your voice agent in Dialogflow to match your shortcut to the right intent. You can see from above that I changed the Event 3 title to “Talk to My App”. In Dialogflow, you create the same intent and add “event3” in the event field. Add a response in Dialogflow and save.

Step 3: Try it out

  • In the simulator, try your shortcut and see it map to the correct Dialogflow intent.

Avoid this:

  • Avoid using an event more than once in Dialogflow or the Shortcut will not work.
Speebly Voice   Terms of Service   Privacy