Add to Siri Shortcut (iOS Only)
Allow your iOS users to trigger app actions using Siri voice commands by adding custom Siri Shortcuts to their device. This function registers a shortcut phrase and links it to a specific URL in app.
const { Siri } = window.WTN
Siri.addToSiri({
title: "Your Title for Siri Function",
suggestedPhrase: "Prase for Siri to recognise and take action",
actionUrl: "Url to redirect"
});
//Example
Siri.addToSiri({
title: "Siri Shortcut",
suggestedPhrase: "Open Webtonative",
actionUrl: "https://www.webtonative.com/"
});
This allows you to define a custom Siri shortcut (e.g., “Open Webtonative”) that opens a specific URL inside your app using voice commands like:
“Hey Siri, open webtonative”


Key
Type
Required
Description
title
string
✅
The title of the shortcut shown in iOS UI
suggestedPhrase
string
✅
The voice command you suggest users add to Siri
actionUrl
string
✅
The URL that should open when the shortcut is triggered
Feature added in iOS on 04/08/25
Last updated
Was this helpful?