Skip to content

Aksky16/Diet_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diet_Bot

A chatbot which gives you diet plans, calculates BMI and calculates your Ideal Weight.

Details

  • Made using Bot Framework composer.(Download Bot Framework composer here)
  • 3 Custom Actions were to calculate BMI and Ideal Weight .(Learn how to create custom actions here)
  • Tested in web chat and Bot Framework emulator.(Download Bot Framework emulator here)
  • Try it out here

What is BMI?(BMI custom action here)

  • Body mass index (BMI) is a value derived from the weight and height of a person.
  • The BMI is defined as the body mass divided by the square of the body height, and is expressed in units of kg/m2, resulting from mass in kilograms and height in metres.
  • In this Bot the height is taken in centimetres.
  • Major adult BMI classifications are underweight (under 18.5 kg/m2), normal weight (18.5 to 24.9), overweight (25 to 29.9), and obese (30 or more).
  • Physical characteristics are not thoroughly taken into account.
  • BMI calculations cannot distinguish muscle and fat weight.
  • BMI is used differently for children.

Ideal Weight Calculation(Ideal weight custom action male here, Ideal weight custom action female here )

B. J. Devine Formula (1974)

  • Male: 50.0 kg + 2.3 kg per inch over 5 feet
  • Female: 45.5 kg + 2.3 kg per inch over 5 feet

To use the Project

  • Download the source code
  • You need to have an Azure subscription to work with this code
  • Open Bot Framework Composer
  • Open the bot by navigating through files
  • You can test it in web chat or Bot framework emulator

Useful links