<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AppIntent/requestConfirmation(conditions:actionName:dialog:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents0A6IntentPAAE19requestConfirmation10conditions10actionName6dialogyAA0E10ConditionsV_AA0e6ActionH0VAA0C6DialogVtYaKF"
  },
  "title" : "requestConfirmation(conditions:actionName:dialog:)"
}
-->

# requestConfirmation(conditions:actionName:dialog:)

Displays a confirmation prompt that includes the specified text and action details.

```
func requestConfirmation(conditions: ConfirmationConditions = [], actionName: ConfirmationActionName = .`continue`, dialog: IntentDialog) async throws
```

## Parameters

`conditions`

The conditions to check before asking for confirmation.

`actionName`

The action associated with the request. The system puts the action name
in the button that confirms the action.

`dialog`

The localized text you want the confirmation request to display or speak.

## Discussion

Call this method when you want someone to confirm a particular choice. For example, call this
method before someone performs an action that might be destructive or unsafe. The
method displays a prompt that includes the provided information and asks the person to confirm or
cancel the operation. The method returns normally if they confirm the operation, but
throws an error if they cancel it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)