Feedback
Use Feedback to prompt users with a high rating to leave an external Trustpilot review.
This screen includes:
| # | Element | Description |
|---|---|---|
| 1 | Rating follow-up screen | Prompts the user to leave an external review. |
| 2 | Branding | Displays the Air Doctor logo. |
| 3 | Confirmation message | Displays Thanks for the great rating! |
| 4 | Review instruction | Asks the user to write a review on Trustpilot. |
| 5 | Trustpilot branding | Displays the Trustpilot logo. |
| 6 | Trustpilot action | Opens the Trustpilot review flow. |
Workflow
- Submit a high rating.
- Display the feedback follow-up screen.
- Select Rate us on Trustpilot.
- Close the feedback screen.
- Open the Trustpilot review page.
Validations
| Scenario | App behavior | SDK output |
|---|---|---|
| High rating submitted | Display Trustpilot follow-up screen | feedback = trustpilot |
| Trustpilot link available | Enable Trustpilot action | trustpilot = available |
| Trustpilot link missing | Disable Trustpilot action or display fallback | trustpilot = unavailable |
| Request rejected | Display error state | status = 405 |
Actions
| Scenario | App behavior | SDK output |
|---|---|---|
| Feedback screen opens | Load feedback follow-up screen | PUT /api/v3/rating/feedback |
| Trustpilot action selected | Open Trustpilot review page | PATCH /api/v3/rating/open-trustpilot |
| Request rejected | Preserve current state | state = unchanged |
Endpoint Resources
Feedback
PUT
v3/rating/feedback
Returns the Trustpilot feedback follow-up screen.
Open Trustpilot Page
PATCH
v3/rating/open-trustpilot
Opens the Trustpilot review page.
