---
title: "resolveWorkoutName(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/instartworkoutintenthandling/resolveworkoutname(for:with:)"
---

# resolveWorkoutName(for:with:)

Resolves the workout name selected by the user.

## Declaration

```swift
optional func resolveWorkoutName(for intent: INStartWorkoutIntent, with completion: @escaping @Sendable (INSpeakableStringResolutionResult) -> Void)
```

```swift
optional func resolveWorkoutName(for intent: INStartWorkoutIntent) async -> INSpeakableStringResolutionResult
```

## Parameters

- `intent`: The intent object that contains details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The block to execute with the resolution. You must execute this block while implementing this method. This block has no return value and takes the following parameter:

## Discussion

Discussion This method resolves the workout name. Use it to validate the user-supplied workout name. If you don’t implement this method, SiriKit assumes that you’re able to start the requested workout with the specified name.

## See Also

### Resolving the Intent Parameters

- [resolveGoalValue(for:with:)](intents/instartworkoutintenthandling/resolvegoalvalue(for:with:).md)
- [resolveWorkoutGoalUnitType(for:with:)](intents/instartworkoutintenthandling/resolveworkoutgoalunittype(for:with:).md)
- [resolveWorkoutLocationType(for:with:)](intents/instartworkoutintenthandling/resolveworkoutlocationtype(for:with:).md)
- [resolveIsOpenEnded(for:with:)](intents/instartworkoutintenthandling/resolveisopenended(for:with:).md)
