<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INInteraction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INInteraction"
  },
  "title" : "INInteraction"
}
-->

# INInteraction

An interaction between the user and your app involving an intent object.

```
class INInteraction
```

## Overview

An [`INInteraction`](/documentation/Intents/INInteraction) object encapsulates information about a SiriKit request and your app’s response. SiriKit creates interaction objects automatically when it needs your app to respond to a specific intent, either by handling the intent or providing an error explaining why your app couldn’t handle the intent. SiriKit places the interaction in an <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> object that the system passes to your app at launch time. You can also create instances of this class in your app and donate relevant interactions to the system.

Donating interactions provides contextual information that might be helpful to other apps. Some system apps use donated interactions to improve search results or to anticipate user actions. For example, a ride-booking app could donate an interaction containing the user’s planned ride information. If the user subsequently uses the Maps app to search for restaurants, Maps can show relevant results near the user’s destination.

You choose which of your app’s interactions you want to donate to the system. To donate an interaction, create an instance of this class, filling it with your intent object and response, and call the [`donate(completion:)`](/documentation/Intents/INInteraction/donate(completion:)) method. You can also use the methods of this class to delete interactions when they are no longer relevant.

> Note:
> Donate interactions only when the user initiates an interaction in your app. SiriKit already knows about interactions that it sends your app for intent handling.

## Topics

### Creating an Interaction Object

[`init(intent:response:)`](/documentation/Intents/INInteraction/init(intent:response:))

Initializes and returns an interaction object with an intent object and your app’s response.

### Getting the Intent and Response

[`intent`](/documentation/Intents/INInteraction/intent)

The intent object that describes the user’s request.

[`intentResponse`](/documentation/Intents/INInteraction/intentResponse)

The response object that your app created in response to the request.

### Donating Interactions to the System

[`donate(completion:)`](/documentation/Intents/INInteraction/donate(completion:))

Donates this interaction object to the system.

### Deleting Interactions from the System

[`deleteAll(completion:)`](/documentation/Intents/INInteraction/deleteAll(completion:))

Deletes all interactions that you donated previously.

[`delete(with:completion:)`](/documentation/Intents/INInteraction/delete(with:completion:)-2d1gs)

Deletes the specified interactions that were donated by the calling app.

[`delete(with:completion:)`](/documentation/Intents/INInteraction/delete(with:completion:)-tcq9)

Deletes the interactions with the specified group identifier.

### Accessing Interaction Attributes

[`intentHandlingStatus`](/documentation/Intents/INInteraction/intentHandlingStatus)

The current state of the interaction.

[`direction`](/documentation/Intents/INInteraction/direction)

The direction in which information flowed to or from the device.

[`dateInterval`](/documentation/Intents/INInteraction/dateInterval)

The time at which the interaction started and its duration.

[`identifier`](/documentation/Intents/INInteraction/identifier)

The unique identifier of the interaction.

[`groupIdentifier`](/documentation/Intents/INInteraction/groupIdentifier)

The unique identifier of the interaction’s group.

### Getting the Value of a Parameter

[`parameterValue(for:)`](/documentation/Intents/INInteraction/parameterValue(for:))

Returns the value of the specified parameter of this interaction object.

### Constants

[`INIntentHandlingStatus`](/documentation/Intents/INIntentHandlingStatus)

Constants indicating the current state of the interaction.

[`INInteractionDirection`](/documentation/Intents/INInteractionDirection)

Constants indicating whether the app is providing or receiving information.



---

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)