# Targeting Surveys

Survey targeting is configured in the **Luciq dashboard**. Rules can be based on user attributes, app version, and other criteria. The SDK then determines which surveys are available for the current user.

### Get available surveys

To get the list of surveys that can be shown to the current user:

{% code title="Kotlin" %}

```kotlin
scope.launch {
    SurveysKmp.getAvailableSurveys().collect { surveys ->
        surveys.forEach { survey ->
            // survey has token and other metadata
        }
    }
}
```

{% endcode %}

Use this to decide when to call `SurveysKmp.showSurvey(token)` or to show a custom “Take survey” entry that opens a specific survey.

### Show survey if available

`SurveysKmp.showSurveyIfAvailable()` shows one survey from the set of available (targeted) surveys. The SDK/dashboard decides which one to show when multiple are available.
