---
title: "requestValue(_:)"
framework: appintents
role: symbol
role_heading: Instance Method
path: "appintents/intentparameter/requestvalue(_:)-592nd"
---

# requestValue(_:)

Request a value from the user for this parameter.

## Declaration

```swift
final func requestValue(_ dialog: IntentDialog? = nil) async throws -> Value.ValueType
```

## Parameters

- `dialog`: A custom dialog that may be used when prompting the user for the value

## Mentioned in

Adding parameters to an app intent

## Return Value

Return Value The value supplied by the user

## See Also

### Requesting a value

- [needsValueError(_:)](appintents/intentparameter/needsvalueerror(_:).md)
