# Setup App Ratings & Reviews

#### Custom App Rating Prompt

If you’re using a custom app rating prompt, you have to make sure to call the below API once the user clicks on the CTA that redirects to the store.

{% tabs %}
{% tab title="Swift" %}

```swift
Luciq.willRedirectToAppStore()
```

{% endtab %}

{% tab title="Objective-C" %}

```objective-c
[Luciq willRedirectToAppStore];
```

{% endtab %}
{% endtabs %}

When the above API is used, we will be able to detect the suspected sessions for the reviews submitted through the custom prompt. This will give you valuable insights into what happened during the session.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.luciq.ai/ios/setup-luciq-for-ios/setup-app-ratings-and-reviews.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
