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

# INAddTasksIntentResponse

Your response to a request to add tasks to a task list.

```
class INAddTasksIntentResponse
```

## Overview

Use an [`INAddTasksIntentResponse`](/documentation/Intents/INAddTasksIntentResponse) object to return information about the task list that you created. Siri communicates the information from your response to the user at appropriate times.

You create an [`INAddTasksIntentResponse`](/documentation/Intents/INAddTasksIntentResponse) object in the [`confirm(intent:completion:)`](/documentation/Intents/INAddTasksIntentHandling/confirm(intent:completion:)) and [`handle(intent:completion:)`](/documentation/Intents/INAddTasksIntentHandling/handle(intent:completion:)) methods of your handler object. For more information about implementing your handler object, see [`INAddTasksIntentHandling`](/documentation/Intents/INAddTasksIntentHandling).

## Topics

### Initializing the Response Object

[`init(code: INAddTasksIntentResponseCode, userActivity: NSUserActivity?)`](/documentation/Intents/INAddTasksIntentResponse/init(code:userActivity:))

Initializes the response object with the specified code and user activity object.

### Getting the Response Code

[`var code: INAddTasksIntentResponseCode`](/documentation/Intents/INAddTasksIntentResponse/code)

The code indicating whether you successfully handled the intent.

[`enum INAddTasksIntentResponseCode`](/documentation/Intents/INAddTasksIntentResponseCode)

Constants indicating the state of the response.

### Providing the Task Information

[`var addedTasks: [INTask]?`](/documentation/Intents/INAddTasksIntentResponse/addedTasks)

The tasks that you added to the task list.

[`var modifiedTaskList: INTaskList?`](/documentation/Intents/INAddTasksIntentResponse/modifiedTaskList)

The task list that you modified.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

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

---

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)