This is a customer support application with a form to submit feedback. Front end is developed using ReactJS. The submitted feedback is sent to python-based backend which uses Azure Text Analytics to analyze the feedback. Sentiment of the feedback and confidence scores are displayed after analysing the feedback. Recent feedbacks are also displayed in the UI.
Using Azure Text Analytics to analyze customer feedback submitted via text to categorize sentiment as positive, negative, or neutral.
- Sign in to Azure Portal.
- Set up a new Resource Group: Go to "Resource Groups" → "Create" → Provide a name and region.
- Create Azure Text Analytics (Cognitive Services) resource under this group: In the Azure portal, Search for Text Analytics → Create.
- Select the region, pricing tier, and Resource Group.
- Copy the Endpoint and API Key from the Text Analytics resource after provisioning.
- Create React project
npx create-react-app frontend
- Navigate to frontend directory
cd frontent
- Install dependencies
npm install axios
- Run the development server (http://localhost:3000)
npm start
-
Navigate to backend directory
-
Install the dependencies present in requirements.txt
pip install -r requirements.txt
-
Replace
<Your-Azure-AI-Endpoint>and<Your-Azure-API-Key>in app.py -
Run the server (http://localhost:5000)
python app.py