<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSendMessageIntentHandling/resolveOutgoingMessageType(for:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INSendMessageIntentHandling(im)resolveOutgoingMessageTypeForSendMessage:withCompletion:"
  },
  "title" : "resolveOutgoingMessageType(for:with:)"
}
-->

# resolveOutgoingMessageType(for:with:)

Determines what type of message to send.

```
optional func resolveOutgoingMessageType(for intent: INSendMessageIntent, with completion: @escaping @Sendable (INOutgoingMessageTypeResolutionResult) -> Void)
```

```
optional func resolveOutgoingMessageType(for intent: INSendMessageIntent) async -> INOutgoingMessageTypeResolutionResult
```

## Parameters

`intent`

The intent object that contains details about the user’s request. Use this object to get the initial information, if any, provided by the user.

`completion`

The block to execute with the resolution. You must execute this block while implementing this method. This block has no return value and takes the following parameter:

- resolutionResult: The object that contains the details of your proposed resolution. For a successful resolution, create a resolution object with the [`INOutgoingMessageType`](/documentation/Intents/INOutgoingMessageType) for the message.

## Discussion

If you can’t handle messages of the type specified in the intent’s [`outgoingMessageType`](/documentation/Intents/INSendMessageIntent/outgoingMessageType), create a result with [`unsupported()`](/documentation/Intents/INIntentResolutionResult/unsupported()) and provide that when you call the completion handler.

---

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)