Collect feedback from a Flask app
The following example shows how you can integrate Trubrics feedback directly into your Flask application. We will be using Flask templates to render a UI (with HTML & CSS) that displays some different feedback types that you can collect and save to Trubrics.
Install Trubrics & Flask to your virtual environment with
Run the example app
Set your Trubrics email & password to the following environment variables:
To directly run the application, clone the trubrics-sdk and run the following command from the root directory:
Now open http://127.0.0.1:5000 to render the UI:
You can now navigate to Trubrics to manage the feedback that you have collected.
In this example we have built all three feedback types, but only one should be used per feedback component.
Created: November 15, 2023