For the complete documentation index, see llms.txt. This page is also available as Markdown.

Siri Shortcuts API - 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.

You'll need to import the javascript file in your website before starting from this link.

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/"
});
import { Siri } from "webtonative";

Siri.addToSiri({
  title: "Track Order",
  suggestedPhrase: "Track my order",
  actionUrl: "https://yourdomain.com/orders"
});

//Example
Siri.addToSiri({
  title: "Track Order",
  suggestedPhrase: "Track my order",
  actionUrl: "https://yourdomain.com/orders"
});

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