Enhanced User engagement in Queries API Labelling
In the Queries flow, the API Labelling section is right now showing the data from API as it is, but there could be situations where we have to conditionally show more information based on the values coming from API. In such cases, adding markup’s and rules so that we can add colors or emojis to make it more user engaging could help us better.
We have an option to add text response in Path’s flow where we can add markup in the text. Similarly if we have markup and rules to operate on API field values, it would make it more user friendly.
For example:
Current field: Battery Health(%): battery_health_percentage
Expected field: Battery Health(%): (valueOf(battery_health_percentage)<20? <b>valueOf(battery_health_percentage) + “❌” </b>: valueOf(battery_health_percentage))
Current Answer: Battery Health(%): 20
Expected Answer: Battery Health(%): 20❌