# Add to Siri Shortcut (iOS Only)

{% hint style="info" %}
You'll need to import the javascript file in your website before starting from this [link](https://docs.webtonative.com/javascript-apis/getting-started).
{% endhint %}

{% tabs %}
{% tab title="Plain Javascript" %}

```
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/"
});
```

{% endtab %}

{% tab title="ES5+" %}

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

{% endtab %}
{% endtabs %}

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”*

<div><figure><img src="/files/bnICoybojWfKUVJVx9gO" alt=""><figcaption></figcaption></figure> <figure><img src="/files/NpeA0IY6tcI22c8TP9GY" alt=""><figcaption></figcaption></figure></div>

| 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webtonative.com/javascript-apis/add-to-siri-shortcut-ios-only.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
