Implemented comments analysis using openAi api.
Created an "Analyze sentimen" button. When clicked the request is sent to stats-api where we check if it exists in cache, if so return cached sentiment, otherwise we send an request to OpenAi to analyze users' sentiment based on comments and return + save in cache the result.
Analyze button appears only if there are 10 or more comments! This way we reduce unnecessary calls to API.
Implemented comments analysis using openAi api. Created an "Analyze sentimen" button. When clicked the request is sent to stats-api where we check if it exists in cache, if so return cached sentiment, otherwise we send an request to OpenAi to analyze users' sentiment based on comments and return + save in cache the result.
Analyze button appears only if there are 10 or more comments! This way we reduce unnecessary calls to API.
https://vimeo.com/961331486?share=copy