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

# handle(intent:completion:)

Handles searching for the specified bills.

## Declaration

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

```swift
func handle(intent: INSearchForBillsIntent) async -> INSearchForBillsIntentResponse
```

## 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 Use the specified parameters to perform the search, then return the results in your response object. If you’re unable to perform the search, return a response object whose result code indicates the reason for the failure. The response object you create should indicate the success or failure of the operation. Never create a response object using the INSearchForBillsIntentResponseCode.unspecified or INSearchForBillsIntentResponseCode.ready codes.
