---
title: INSetMessageAttributeIntent
framework: intents
role: symbol
role_heading: Class
path: intents/insetmessageattributeintent
---

# INSetMessageAttributeIntent

A request to modify the attributes of a message.

## Declaration

```swift
class INSetMessageAttributeIntent
```

## Overview

Overview Siri creates an INSetMessageAttributeIntent object when the user asks to modify the attributes of one or more messages. Attributes represent information about the message such as whether the user read or flagged the message. This intent object includes the messages to modify and which attributes to change. To handle this intent, the handler object in your Intents extension must adopt the INSetMessageAttributeIntentHandling protocol. Your handler should confirm the request and create an INSetMessageAttributeIntentResponse object with the results of modifying the messages. Additional Intent Attributes The following table lists additional attributes of this intent object:  |   |   |  Apps can optionally ask the user to unlock the device before handling this intent. To require unlocking of the device, include the name of this class in the IntentsRestrictedWhileLocked key of your Intents extension’s Info.plist file. Example Phrases Users can ask Siri to set the attributes of a message in a variety of ways. The table below provides a few sample phrases in different languages. You can use these phrases during testing to trigger your intents. This list is not exhaustive and Siri may recognize many other phrases.  |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |  In the preceding examples, <appName> represents the name of the app whose Intents extension modifies the message attributes.

## Topics

### Initializing the Intent Object

- [init(identifiers:attribute:)](intents/insetmessageattributeintent/init(identifiers:attribute:).md)

### Getting the Attribute Details

- [attribute](intents/insetmessageattributeintent/attribute.md)
- [identifiers](intents/insetmessageattributeintent/identifiers.md)

## Relationships

### Inherits From

- [INIntent](intents/inintent.md)

### Conforms To

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

## See Also

### Setting Message Attributes

- [INSetMessageAttributeIntentHandling](intents/insetmessageattributeintenthandling.md)
- [INSetMessageAttributeIntentResponse](intents/insetmessageattributeintentresponse.md)
