Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

HealthyHabits Coach Bot

Project Overview

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.


Project Objective

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.

Technologies Used

  • Python 3.8
  • Microsoft Bot Framework
  • Azure AI Language Service
  • Azure AI Text Analytics SDK
  • Bot Framework Emulator
  • Visual Studio Code
  • Git
  • GitHub

Project Structure

HealthyHabitsCoachBot/
│
├── app.py
├── config.py
├── bots/
│   └── echo_bot.py
├── requirements.txt
├── README.md
└── deploymentTemplates/

Features

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

Example Conversation

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.

How to Run the Project

Activate the Python environment

conda activate campusfind

Install dependencies

pip install -r requirements.txt

Configure Azure environment variables

export LANGUAGE_KEY="YOUR_AZURE_KEY"

export LANGUAGE_ENDPOINT="YOUR_AZURE_ENDPOINT"

Start the chatbot

python app.py

Connect Bot Framework Emulator

http://localhost:3978/api/messages

Azure AI Integration

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.


Security

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 Improvements

Future versions may include:

  • User login
  • Daily habit tracking
  • Progress dashboard
  • Email reminders
  • Voice interaction
  • Multiple language support
  • Azure OpenAI integration
  • Personalized health recommendations

AI Use Disclosure

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.


GitHub Repository

Replace with your repository URL.

https://github.com/saisreen/HealthyHabitsCoachBot

Author

Sai Sree Narla

MSAI-631

University of the Cumberlands

Summer 2026


License

This project was developed for educational purposes as part of the MSAI-631 course at the University of the Cumberlands.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages