---
title: "handle(intent:completion:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/increatetasklistintenthandling/handle(intent:completion:)"
---

# handle(intent:completion:)

Handles the creation of a task list.

## Declaration

```swift
func handle(intent: INCreateTaskListIntent, completion: @escaping @Sendable (INCreateTaskListIntentResponse) -> Void)
```

```swift
func handle(intent: INCreateTaskListIntent) async -> INCreateTaskListIntentResponse
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Your handler object has already resolved and confirmed the information in this object.
- `completion`: The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion In your implementation of this method, create the task list described by the intent parameter, create a response object with any relevant details, and call the provided completion handler.
