---
title: "init(accountNickname:accountType:organizationName:requestedBalanceType:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/insearchforaccountsintent/init(accountnickname:accounttype:organizationname:requestedbalancetype:)"
---

# init(accountNickname:accountType:organizationName:requestedBalanceType:)

Initializes the intent object with the specified search parameters.

## Declaration

```swift
init(accountNickname: INSpeakableString?, accountType: INAccountType, organizationName: INSpeakableString?, requestedBalanceType: INBalanceType)
```

## Parameters

- `accountNickname`: The nickname that the user assigned to the account in your app. Account nicknames make it easier for the user to refer to those accounts in Siri. For example, a user’s main checking account might be called “checking”.
- `accountType`: The type of the account. For a list of possible values, see doc://com.apple.sirikit/documentation/Intents/INAccountType.
- `organizationName`: The name of an organization attached to an account.
- `requestedBalanceType`: The type of balance requested by the user. Use this information to help identify the account to return. For a list of possible values, see doc://com.apple.sirikit/documentation/Intents/INBalanceType.

## Return Value

Return Value An initialized intent object or nil if the object could not be created.

## Discussion

Discussion Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when the user asks for account information. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.
