---
title: INSendMessageIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/insendmessageintentresponse
---

# INSendMessageIntentResponse

Your app’s response to a send message intent.

## Declaration

```swift
class INSendMessageIntentResponse
```

## Mentioned in

Improving interactions between Siri and your messaging app

## Overview

Overview Use an INSendMessageIntentResponse object to specify the results of sending a message to another user. You create instances of this class when confirming or handling a send message intent. Use this object to communicate whether the message was successfully sent or whether an error occurred. You create an INSendMessageIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your send message handler object. For more information about implementing your handler object, see INSendMessageIntentHandling.

## Topics

### Initializing the Response Object

- [init(code:userActivity:)](intents/insendmessageintentresponse/init(code:useractivity:).md)

### Getting the Response Code

- [code](intents/insendmessageintentresponse/code.md)
- [INSendMessageIntentResponseCode](intents/insendmessageintentresponsecode.md)

### Providing the Message

- [sentMessage](intents/insendmessageintentresponse/sentmessage.md)

### Instance Properties

- [sentMessages](intents/insendmessageintentresponse/sentmessages.md)

## Relationships

### Inherits From

- [INIntentResponse](intents/inintentresponse.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Sending a Message

- [INSendMessageIntentHandling](intents/insendmessageintenthandling.md)
- [INSendMessageIntent](intents/insendmessageintent.md)
- [INOutgoingMessageType](intents/inoutgoingmessagetype.md)
- [INSendMessageAttachment](intents/insendmessageattachment.md)
- [INSendMessageIntentDonationMetadata](intents/insendmessageintentdonationmetadata.md)
