old_contents: from flask_ask import Ask, statement, question, convert_errors, request, session
  
  def _general_intent(general_level, next_question, error_question, reprompt_question):
  	try:
  		general_level = int(general_level)
  		if general_level < 1 or general_level > 5:
  			raise ValueError("Attribute out of range")
  	except ValueError as e:
  		return lambda fn: question(error_question).reprompt(reprompt_question)
  	return lambda fn: question(next_question).reprompt(next_question)
  
  def mood_intent(mood_level):
  	pass
  
  def productivity_intent(productivity_level):
      pass
  
  def sleep_intent(sleep_level):
      pass
  
  def excercise_intent(answer):
      pass
  
  def entertainment_intent(answer):
      pass
  
  def schoolwork_intent(answer):
      pass
  
  def work_intent(answer):
      pass
  
  def socialize_intent(answer):
      pass
  
  def conflict_intent(answer):
      pass
new_contents: from flask_ask import Ask, statement, question, convert_errors, request, session
  
  MOOD_QUESTION = 'On a scale from 1 to 5, how positive was your mood today?'
  PRODUCTIVITY_QUESTION = 'On a scale from 1 to 5, how good was your productivity today?'
  SLEEP_QUESTION = 'On a scale from 1 to 5, how well did you sleep?'
  EXERCISE_QUESTION = 'Did you exercise today?'
  ENTERTAINMENT_QUESTION = 'Did you consume any entertainment during the day?'
  SCHOOLWORK_QUESTION = 'Was there any homework completed today?'
  SOCIALIZE_QUESTION = 'Did you socialize with anyone today?'
  CONFLICT_QUESTION = 'Did you get into a conflict with someone today?'
  
  def _general_intent(general_level, next_question, error_question, reprompt_question, lower, upper, stat):
  	try:
  		general_level = int(general_level)
  		if general_level < lower or general_level > upper:
  			raise ValueError("Attribute out of range")
  	except ValueError as e:
  		return lambda fn: question(error_question).reprompt(reprompt_question)
  	session.attributes['state'] += 1
  	session.attributes['data'][stat] = general_level
  	return lambda fn: question(next_question).reprompt(next_question)
  
  def _bool_intent(boolean_level, next_question, error_question, reprompt_question, stat):
  	try:
  		boolean_level = bool(boolean_level)
  	except ValueError as e:
  		return lambda fn: question(error_question).reprompt(reprompt_question)
  	session.attributes['state'] += 1
  	session.attributes['data'][stat] = boolean_level
  	return lambda fn: question(next_question).reprompt(next_question)
  
  def mood_intent(mood_level):
  	return _general_intent(
  		mood_level,
  		PRODUCTIVITY_QUESTION,
  		"Please give a number between 1 and 5 for your mood",
  		MOOD_QUESTION,
  		1,
  		5,
  		'mood'
  	)
  
  def productivity_intent(productivity_level):
  	return _general_intent(
  		productivity_level,
  		SLEEP_QUESTION,
  		"Please give a number between 1 and 5 for your productivity",
  		PRODUCTIVITY_QUESTION,
  		1,
  		5,
  		'productivity'
  	)
  
  def sleep_intent(sleep_level):
      return _general_intent(
  		sleep_level,
  		EXERCISE_QUESTION,
  		"Please give a number between 1 and 24 for your sleep",
  		SLEEP_QUESTION,
  		1,
  		24,
  		'sleepHrs'
  	)
  
  def exercise_indent(exercise_level):
      return _bool_intent(
  		exercise_level,
  		ENTERTAINMENT_QUESTION,
  		"Answer yes or no for exercise",
  		EXERCISE_QUESTION,
  		'exercise'
  	)
  
  def entertainment_intent(entertainment):
      return _bool_intent(
  		entertainment,
  		SCHOOLWORK_QUESTION,
  		"Did you consume any entertainment today, yes or no?",
  		ENTERTAINMENT_QUESTION,
  		'entertainment'
  	)
  
  def schoolwork_intent(school):
      return _bool_intent(
  		school,
  		SOCIALIZE_QUESTION,
  		"Please answer yes or no if you did any school work today",
  		SCHOOLWORK_QUESTION,
  		'schoolwork'
  
  	)
  
  def socialize_intent(socialize):
      return _bool_intent(
  		socialize,
  		CONFLICT_QUESTION,
  		"Have you soicalized with anyone today?",
  		SOCIALIZE_QUESTION,
  		'socialized'
  	)
  
  def conflict_intent(conflict):
      return _bool_intent(
  		conflict,
  		'DONE',
  		"Did you get into a conflict with anyone today?",
  		CONFLICT_QUESTION,
  		'conflict'
  	)
subject: Add int and bool response intents for alexa responses