Email Process Flow
Get the Email Receiver Details
PrintText(aifriend, "Sure, Whom do you want to send email?")
SpeakText(aifriend, "Sure, Whom do you want to send email?")
receiver_name = TextTransformation(RawSpeechRecognization(aifriend)).lower().lstrip().rstrip()PrintText(aifriend, "Okay will send email to " + receiver_name + " For the email id " + receiver_email )
SpeakText(aifriend, "Okay will send email to " + receiver_name + " For the email id " + receiver_email)Get and Confirm the Email Subject
MessageSubjectConfirmation = "no"
while MessageSubjectConfirmation == "no" :
PrintText(aifriend, "Subject will be?")
SpeakText(aifriend, "Subject will be?")
MessageSubject = RawSpeechRecognization(aifriend)
PrintText(aifriend,"Email Subject will be: " + MessageSubject + ", Confirm Yes to Proceed and No to Say Subject Again" )
SpeakText(aifriend, "Email Subject will be: " + MessageSubject + ", Confirm Yes to Proceed and No to Say Subject Again" )
MessageSubjectConfirmation = TextTransformation(RawSpeechRecognization(aifriend)).lower().lstrip().rstrip()
if subStrCheck(MessageSubjectConfirmation,"yes") or subStrCheck(MessageSubjectConfirmation,"okay"):
breakGet and Confirm the Email Body
Send Email
Last updated