Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#This needs to be at the end when the user is finished with the chat bot
#survey to ask user about their experience and what they think we should do to improve if needed
#code needs to be added before this so it can flow in
print("Before leaving, it would be very helpful for the team if you could take part in a short survey.")
print("This would help us improve our services if needed and will not take more than 5 minutes of your time")
def survey():
print("Would you like to take part in our survey?")
answer1=input()
answer1.upper()
ans0 = "yes"
if answer1 in ans0:
print("Please know that your answers will be kept personal and at the end of the survey you will be questioned if you want your answers to be used for company purposes to improve our services") #
if answer1 not in ans0:
print("We hope we have been helpful in the support provided, goodbye")
exit()
print("Would you recommend this therapy chat bot to friends or family that may be in need to help or advice? " "Yes or no")
answer2 = input() #first question asked
answer2.lower()
ans2 = ["yes","yeah"]
if answer2 in ans2:
print("Thank you")
elif answer2 == "of course":
print("We are happy to help to all!")
else:
print("We are sorry for any problems caused on our behalf, please let us know if we could do anything different for future users.")
print("How would you rate your overall experience with the chat bot today? " "Choose a number between 1-5 with 1 being very unsatisfied and 5 being very satisfied") #second question asked
answer1 = input()
if answer1 >= "4":
print("We are glad you think this way about our facility, thank you")
else:
print("Sorry if we have made any mistakes during the chat, please contact us via email and please provide infomation on how we are able to enhance our assistance.")
print("As stated at the start of the survey you will be now asked a question on whether you would like your answers to be used for company purposes. " "If yes type :)")
answer3 = input()
ans3 = ":)"
if answer3 in ans3:
print("Thank you for taking part in the survey and for agreeing for your answers to be used for future purposes.")
else:
print("No worries! " "We respect your decision and privacy, it was good having you here, goodbye!")
def endwhile(): #while loop added
n=4
while n > 0:
n = n-1
if n == 0:
break
print(n)
print("This session has now ended")
survey()
endwhile()
#end of survey