<!--
{
  "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/init(intent:response:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INInteraction(im)initWithIntent:response:"
  },
  "title" : "init(intent:response:)"
}
-->

# init(intent:response:)

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

```
init(intent: INIntent, response: INIntentResponse?)
```

## Parameters

`intent`

The intent object containing the user’s request.

`response`

The response object that your app provided in response to the intent.

## Return Value

An initialized interaction object or `nil` if the object could not be created.

## Discussion

Use this method to initialize interaction objects that you intend to donate. You do not need to create interaction objects for any custom <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> objects that you create during the handling of an intent. SiriKit automatically creates an instance of this class before delivering an <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> object to your app.

---

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)