HealthyHabits Coach Bot is a traditional rule-based chatbot developed using Python and Microsoft Bot Framework. The chatbot is connected to Azure AI Language Service to analyze the sentiment of user feedback related to daily health habits.
The chatbot combines predefined conversation rules with cloud-based Artificial Intelligence. General commands are handled using rule-based logic, while Azure AI analyzes the user's health-related feedback and identifies whether the sentiment is positive, negative, neutral, or mixed.
The main objective of this project is to demonstrate how a traditional chatbot can be integrated with a cloud AI service.
The chatbot allows users to:
- Learn healthy habit tips.
- Analyze their daily health feedback.
- Understand the emotional tone of their feedback.
- Receive simple motivational responses.
- Experience the integration of Microsoft Bot Framework with Azure AI Language Service.
- Python 3.8
- Microsoft Bot Framework
- Azure AI Language Service
- Azure AI Text Analytics SDK
- Bot Framework Emulator
- Visual Studio Code
- Git
- GitHub
HealthyHabitsCoachBot/
│
├── app.py
├── config.py
├── bots/
│ └── echo_bot.py
├── requirements.txt
├── README.md
└── deploymentTemplates/
The chatbot supports the following commands:
- hello
- help
- analyze mood
- water tip
- sleep tip
- exercise tip
- healthy food tip
- about
- privacy
- bye
Azure AI analyzes user feedback and returns:
- Positive sentiment
- Negative sentiment
- Neutral sentiment
- Mixed sentiment
User: hello
Bot:
Hello! I am HealthyHabits Coach Bot.
--------------------------------
User: help
Bot:
I can help with healthy habits and analyze your daily feedback.
--------------------------------
User: analyze
Bot:
Please describe how your day went.
--------------------------------
User:
I completed my workout and I feel energetic today.
Bot:
Overall Sentiment: Positive
Positive Score: 0.97
Neutral Score: 0.02
Negative Score: 0.01
Great job! Keep following your healthy habits.
conda activate campusfindpip install -r requirements.txtexport LANGUAGE_KEY="YOUR_AZURE_KEY"
export LANGUAGE_ENDPOINT="YOUR_AZURE_ENDPOINT"python app.pyhttp://localhost:3978/api/messages
Azure AI Language Service is used to analyze the sentiment of user feedback.
The chatbot sends the user's message to Azure AI through the Text Analytics SDK.
Azure returns:
- Overall sentiment
- Positive confidence score
- Neutral confidence score
- Negative confidence score
The chatbot then displays the sentiment together with a simple motivational message.
Azure credentials are stored using environment variables.
The API key is never stored inside the source code.
Sensitive information should never be uploaded to GitHub.
Future versions may include:
- User login
- Daily habit tracking
- Progress dashboard
- Email reminders
- Voice interaction
- Multiple language support
- Azure OpenAI integration
- Personalized health recommendations
Artificial Intelligence was used to assist with understanding Azure AI integration, organizing the project documentation, reviewing code, and improving grammar.
The chatbot implementation, Azure configuration, testing, screenshots, GitHub repository, and final project submission were completed and reviewed by the student.
Replace with your repository URL.
https://github.com/saisreen/HealthyHabitsCoachBot
Sai Sree Narla
MSAI-631
University of the Cumberlands
Summer 2026
This project was developed for educational purposes as part of the MSAI-631 course at the University of the Cumberlands.