Siri no longer opens your app; it uses it

If your app has no App Intents, Siri AI can only open it, or worse, search inside it and leave the user to tap. Users now say "Order Paneer Tikka from FoodNow" and expect food to arrive, without ever seeing a screen.

This guide shows how to integrate Siri AI into an app. We will build AI voice ordering for FoodNow, a demo food-delivery app in SwiftUI, tested on an iPhone 15 Pro running iOS 27.2. By the end, Siri can:

  • Order a dish: "Order Paneer Tikka from FoodNow"
  • Reorder by food: "Reorder my last paneer from FoodNow"
  • Repeat the last order: "Same as last time on FoodNow"
  • Track it: "Where's my FoodNow order?"

All of it runs in the background, confirms the dish and price with the user, and never orders something the user didn't ask for. That last part took the most work, and the bugs we hit on a real device are the most useful part of this post. For anyone planning custom iOS app development with voice ordering, these findings reveal what to check before launch.

What "Siri-Ready" Means: Four Building Blocks

With Apple's App Intents framework, a Siri-ready app describes its actions in Swift types that Xcode compiles into a manifest. Siri reads that manifest; it never runs your app to find out what it can do.

Building blockSwift protocolIn FoodNowWhat Siri gets from it
ActionAppIntentOrderDishIntent, ReorderLastOrderIntent, TrackOrderIntent, RepeatLastOrderIntentSomething it can do, with a title, description and parameters
ThingAppEntityDishEntity, OrderEntityObjects an action takes or returns ("a dish", "an order")
Fixed listAppEnumFoodKind (biryani, paneer, dosa…)Words it can match without asking the app
PhrasesAppShortcutsProviderFoodNowShortcutsSentences that run an action with no setup by the user

At build time, Xcode writes all of this to FoodNow.app/Metadata.appintents/extract.actionsdata. That has one big consequence: titles, parameters, and phrases must be compile-time constants. Anything that lives in your database, such as menu dish names, has to be sent to the system at runtime (Step 3).

Step 1: Define The Ordering Action

The action is a struct that conforms to AppIntent. Two lines make it work without opening the app: supportedModes = .background, and a perform() that returns a spoken dialog and a small card instead of navigating to a screen.

struct OrderDishIntent: AppIntent {
    static let title: LocalizedStringResource = "Order Food"
    static let description = IntentDescription(
        "Places a real new FoodNow order for one dish from the menu, for example \"order Paneer Tikka from FoodNow\". Always pass the dish or food the user said. If a food word matches several dishes, asks which one.",
        categoryName: "Ordering"
    )
    static let supportedModes: IntentModes = .background   // runs without showing the app

    @Parameter(title: "Dish", requestValueDialog: "What would you like to order from FoodNow?")
    var dish: DishEntity?          // a full menu dish: "Paneer Tikka"

    @Parameter(title: "Food")
    var food: FoodKind?            // a generic word: "paneer"

    @Parameter(title: "Quantity", default: 1, inclusiveRange: (1, 10))
    var quantity: Int

    @MainActor
    func perform() async throws -> some IntentResult & ReturnsValue<OrderEntity>
                                    & ProvidesDialog & ShowsSnippetView {
        // Step 4 fills this in
    }
}

Write the description for Siri, not for humans. Apple Intelligence Siri reads it to decide which action fits a request, so say plainly what the action does, when to use it, and what to pass ("Always pass the dish or food the user said").

Keep the business logic out of the intent. FoodNow's intents and its SwiftUI buttons both call one OrderService, so an order placed by voice is identical to one placed by tapping, and the Status screen shows it right away.

AI-powered customer support automation handling incoming customer calls

Step 2: Teach Siri The Phrases And The Words

App Shortcut phrases are what let a user speak to your app with zero setup. Each phrase must contain the app name, and \(\.$parameter) marks a slot Siri fills in.

struct FoodNowShortcuts: AppShortcutsProvider {
    static var appShortcuts: [AppShortcut] {
        AppShortcut(
            intent: OrderDishIntent(),
            phrases: [
                "Order \(\.$dish) from \(.applicationName)",   // "Order Paneer Tikka from FoodNow"
                "Order \(\.$food) from \(.applicationName)",   // "Order paneer from FoodNow"
                "Get me \(\.$food) from \(.applicationName)",
                "Order something from \(.applicationName)",    // no slot: the intent asks
            ],
            shortTitle: "Order Food",
            systemImageName: "takeoutbag.and.cup.and.straw"
        )
        // Reorder, Repeat Last Order, Track Order, Past Orders, Search Menu…
    }
}

We use two kinds of parameters, and the difference matters:

Parameter typeExampleWhen Siri knows the valuesMatches
AppEnum (FoodKind)paneer, biryani, dosaAt build time, from the manifestShort generic words, reliably
AppEntity (DishEntity)Paneer Tikka, Palak PaneerAt runtime, after the app sends themFull dish titles only

Our first build had only the dish entity. "Order biryani again on FoodNow" failed, because Siri matches entity slots against full titles such as "Chicken Biryani". Adding a small enum of food words fixed it:

enum FoodKind: String, AppEnum {
    case biryani, paneer, dosa, idli, chole, naan, raita, chicken
    case gulabJamun = "gulab jamun"

    static let typeDisplayRepresentation: TypeDisplayRepresentation = "Food"
    static let caseDisplayRepresentations: [FoodKind: DisplayRepresentation] = [
        .biryani: DisplayRepresentation(title: "Biryani", synonyms: ["biriyani", "briyani"]),
        .paneer: DisplayRepresentation(title: "Paneer"),
        // …
    ]
}

Step 3: Give Siri Your Live Data

The manifest can't contain your menu, so the app sends it at runtime. FoodNow does this every time it launches and every time an order changes:

enum SiriIndex {
    static func refresh() async {
        let dishes = DishEntity.make(OrderService.shared.allDishes())
        let orders = OrderService.shared.orders().map { OrderEntity($0) }
        try? await CSSearchableIndex.default().indexAppEntities(dishes)   // ① Spotlight
        try? await CSSearchableIndex.default().indexAppEntities(orders)
        FoodNowShortcuts.updateAppShortcutParameters()                    // ② phrase slots
    }
}

// On launch
RootView().task { await SiriIndex.refresh() }
// After every save in OrderService
service.onChange = { Task { await SiriIndex.refresh() } }

① Spotlight indexing. Making DishEntity and OrderEntity conform to IndexedEntity puts them in the on-device semantic index, which Siri uses for personal context such as "my last biryani order".

② updateAppShortcutParameters(). This makes the system call your entity query's suggestedEntities() and expand every \(\.$dish) slot with the results. After it runs, "Order Palak Paneer from FoodNow" is a phrase Siri knows.

The entity query is also how Siri turns a stored ID or loose text back into a dish:

struct DishQuery: EntityStringQuery {
    func entities(for identifiers: [String]) async throws -> [DishEntity] { … }   // "paneer-tikka" → dish
    func entities(matching string: String) async throws -> [DishEntity] { … }     // "paneer" → dishes, recent first
    func suggestedEntities() async throws -> [DishEntity] { … }                    // the whole menu
}

The practical rule: after installing, open the app once. Until it runs refresh(), Siri doesn't know a single dish name.

Step 4: Never Guess, Always Confirm

An action that spends the user's money must order exactly what they said, or ask. perform() is async, so it can pause, let Siri ask a question, and continue with the answer.

Siri AI confirming order details before completing a mobile app purchase

OrderDishIntent request flow · 2 decisions, 1 confirmation

A request that matches no phrase lands in Search, which never buys; a matched one always ends in a yes/no confirmation.

@MainActor
func perform() async throws -> some IntentResult & ReturnsValue<OrderEntity>
                                & ProvidesDialog & ShowsSnippetView {
    let service = OrderService.shared
    let chosen: DishEntity

    if let dish {                                              // "Order Paneer Tikka…"
        chosen = dish
    } else if let food {                                       // "Order paneer…"
        let matches = DishEntity.make(service.searchDishes(food.rawValue))
        switch matches.count {
        case 0:  throw OrderServiceError.dishNotFound
        case 1:  chosen = matches[0]                           // dosa → Masala Dosa
        default: chosen = try await $dish.requestDisambiguation(   // pause: "Which paneer dish?"
                     among: matches, dialog: "Which \(food.rawValue) dish would you like?")
        }
    } else {
        throw $dish.needsValueError("What would you like to order from FoodNow?")
    }

    let total = chosen.price * quantity
    try await requestConfirmation(                             // pause: yes / no card
        actionName: .order,
        dialog: "Order \(chosen.name) for ₹\(total)?"
    ) { OrderSnippetView(kind: .confirm, dishNames: [chosen.name], total: total) }

    let placed = OrderEntity(try service.placeOrder(dishID: chosen.id, quantity: quantity))
    return .result(
        value: placed,                                         // usable in Shortcuts
        dialog: "Ordered \(placed.summary), ₹\(placed.total), arriving in \(placed.etaMinutes) min.",
        view: placed.snippet(.placed)                          // the card Siri shows
    )
}

Three system calls do the talking:

CallWhat the user seesWhat happens in your code
$dish.requestDisambiguation(among:)A list: "Which paneer dish?"await returns the dish they picked
$dish.needsValueError(_:)An open questionThis run ends; Siri runs perform() again with dish filled
requestConfirmation(actionName:dialog:)"Order Paneer Tikka for ₹320?"Yes: await returns. No: it throws, nothing is ordered

The .result(value:dialog:view:) at the end is the whole user experience: Siri speaks the dialog, shows the snippet card, and the app's UI never appears.

Lessons From A Real iPhone

Everything passed in the simulator. On the iPhone, by voice, four things went wrong. Each one taught us something the documentation doesn't spell out. When evaluating voice AI development services, ask how the team tests spoken commands on physical devices.

What we saidWhat happenedCauseFix
"Reorder my last paneer from FoodNow"Ordered Chicken BiryaniThe action quietly fell back to "your most recent order" when no food reached itNever fall back: throw $dish.needsValueError(…). Move "same as last time" into its own RepeatLastOrderIntent
"Reorder my last paneer from FoodNow"Opened the menu and searched for "Paneer"Siri transcribed the word as "re-order", so no "Reorder …" phrase matchedAdd "Re-order my last (food)…" and "Order my last (food) again…" phrases
"Order paneer tikka from FoodNow"Opened the menu; the order came from a one-tap buttonThere was no "order a dish" action at all, only ReorderAdd OrderDishIntent with disambiguation and confirmation
Anything unmatchedAlways landed in the in-app search actionThe .system.searchInApp schema makes search Siri's catch-allMake search spot reorder words and show past orders; search can't confirm, so it never orders

1. A silent fallback is a wrong order waiting to happen

Our reorder action handled three cases: a past order, a dish, or nothing ("reorder my last order"). When Siri matched the near-identical phrase "Reorder my last order from FoodNow", "paneer" was dropped and the app reordered the newest order. Defaults are fine for reading data; for an action that charges money, ask.

2. Siri matches the text it heard, not your spelling

Our in-app log showed term: "re-order last order" when we said "Reorder my last order". Phrases are compared against the transcript, so write phrases for every spelling users produce, and prefer verbs that transcribe one way ("Order … again" worked the first time).

3. Every request you can't handle goes somewhere

With Apple Intelligence Siri on an iPhone 15 Pro, requests that matched no phrase went to our action tagged with the .system.searchInApp schema:

@AppIntent(schema: .system.searchInApp)
struct SearchDishesIntent: ShowInAppSearchResultsIntent { … }

That is useful (search still works) and dangerous (it hides missing actions). Make the catch-all safe: it should navigate, never buy.

4. Log every intent run

The single most useful debugging tool was a 30-line IntentLog that records each run with its parameters, shown in a hidden "Siri log" screen. It turned "Siri ordered the wrong thing" into "Siri called Search with the term 'paneer'", which pointed straight at the fix.

IntentLog.record("Order", "dish: \(dish?.name ?? "none"), food: \(food?.rawValue ?? "none")")

Testing Without Talking To Your Phone

The AppIntentsTesting framework, new for iOS 27 App Intents, runs your intents against the installed app the way the system does, so the ordering logic is covered by tests before anyone speaks:

final class IntentTests: XCTestCase {
    private let definitions = IntentDefinitions(bundleIdentifier: "com.mobisoft.foodnow")

    /// "Reorder my last paneer": paneer, not the newer Chicken Biryani order.
    func testReorderWithPaneerOrdersPaneer() async throws {
        let paneer = definitions.enums["FoodKind"].makeCase("paneer")
        let result = try await definitions.intents["ReorderLastOrderIntent"]
            .makeIntent(food: paneer).run()

        let names: [String] = try result.value.dishNames
        XCTAssertEqual(names, ["Paneer Tikka", "Garlic Naan"])
    }

    /// "Order something from FoodNow" must ask, not order.
    func testOrderWithoutDishDoesNotGuess() async throws {
        do {
            try await definitions.intents["OrderDishIntent"].makeIntent().run()
            XCTFail("Expected Order to ask what to order")
        } catch { }
    }
}

Tests prove the logic; only your voice proves the phrases. Our routine for each device test:

  1. Delete the app, then run it from Xcode. If phrases or actions changed and Siri still behaves the old way, also raise the build number.
  2. Open the app once, so it sends dish names to Siri.
  3. Check that the Shortcuts app lists every action.
  4. Say each phrase with the app closed, then read the Siri log to see which action ran and with what parameters.
  5. Record the phrase, the result and the fix in a phrase log in the README.

Watch Siri Order Without Opening the App

Is Your App Ready? A Checklist

Use these checks whether you are updating an existing app or starting AI-native product engineering from scratch.

  • Every task users would ask Siri to do has its own AppIntent, including the obvious one (we forgot "order a dish").
  • Actions that spend money run in the background (supportedModes = .background) and return a dialog and a snippet.
  • Descriptions are written for Siri: what the action does, when to use it, what to pass.
  • Generic words users say are an AppEnum; database items are an AppEntity with a string query.
  • The app indexes its entities and calls updateAppShortcutParameters() on launch and after every change.
  • Phrases cover how speech is transcribed ("re-order" as well as "reorder") and don't differ from another action's phrase by one word.
  • No silent fallbacks: missing input means needsValueError, several matches mean requestDisambiguation.
  • Every purchase goes through requestConfirmation with the item and the price.
  • The catch-all search action navigates but never buys.
  • Each intent run is logged with its parameters, and there are AppIntentsTesting tests for the risky paths.

Conclusion

Making Siri place orders takes less code than you'd think: one intent, a few phrases, an enum of food words and a refresh call. The real work in voice commerce is placing the right order, and problems only show up when you test by voice on a real device.

Start with your app's most common task, give it an intent that never guesses and always confirms, log every run, and test it out loud. If Siri sends a request somewhere unexpected, the log will tell you where, and usually why.

You can also download the complete source code for the FoodNow demo app here.

Technology team collaborating to build innovative AI-powered mobile applications

Frequently Asked Questions

How will our customers pay without opening the app?

A saved default payment method lets customers pay through your existing server. Show the card's last four digits on the confirmation screen, along with the dish and price. If the bank requires extra verification, open the app to complete the payment. Plan for this step during your Siri integration.

Should our app require Face ID before Siri places an order?

For purchases, require local device authentication within your Siri AI custom actions. Customers with a locked phone must then use Face ID or their passcode before ordering. Because an unlocked phone skips this step, consider adding another check for high-value orders.

What happens if the network drops right after our customer confirms?

Your app should check the order status before it tries again. Assigning a unique ID to each purchase also helps the server reject duplicates. Meanwhile, Siri can tell the customer that confirmation is pending. Build these safeguards into the service behind your iOS App Intents.

How do we know our voice ordering is worth expanding?

Compare voice orders with tap orders over the same period. Useful measures include completed purchases, declined confirmations, and cancellations. In voice-enabled mobile apps, these results reveal which steps need improvement. Once those figures improve, you have a stronger case for adding more actions.

Can Mobisoft Infotech connect Siri to our existing ordering backend?

Yes, your current APIs can usually stay in place. We recommend a shared order service for Siri intents and app buttons, similar to the FoodNow example. This service handles stock and payment checks, so both ordering methods follow the same rules.

This content is for informational purposes only and may include AI-assisted research or content generation. While we strive for accuracy, information may evolve over time. Readers are advised to independently verify critical information before making decisions.

Prashant Telangi

Prashant Telangi

Head of Technology, Mobile

Read more expand

Prashant Telangi brings over 15 years of experience in Mobile Technology, He is currently serving as Head of Technology, Mobile at Mobisoft Infotech. With a proven history in IT and services, he is a skilled, passionate developer specializing in Mobile Applications. His strong engineering background underscores his commitment to crafting innovative solutions in the ever-evolving tech landscape.