The View page displays a submission's general information and data. Watch video
Submission information
Submission Number: 99
Submission ID: 93
Submission UUID: 32af1aef-a943-4c36-a2d2-9a76ab1a5a69
Submission URI: /Script
Created: Wed, 06/24/2020 - 19:21
Completed: Wed, 06/24/2020 - 19:21
Changed: Tue, 10/06/2020 - 16:44
Remote IP address: 50.35.82.111
Submitted by: Anonymous
Language: English
Is draft: No
Webform: Script
Submitted to: Script Upload
Script
Subroutine Test
Testing subroutines
# Subroutine Test
Script: "Subroutine Test"
Name Speak : Patty : "</speak>Version 20200624 18:33 Subroutine Test"
## Initialize
Variable: {exitList} = “Patty exit”, “Patty cancel”, “never mind”
Variable: {noList} = “no”, “not now”, "never mind", "nope", "n"
Variable: {yesList} = "yes", "yup", "y"
Variable: {alertsPhraseList} = "help", "I need help", "help me", "emergency", "this is an emergency", "I need a doctor", "I need a doctor", "I need a doctor", "I need a doctor", "I need a doctor", "I need a nurse", "I need aid", "I need a caregiver", "I need assistance", "I fell", "I can't get up"
Variable: {heyPattyList} = "hey Patty", "Patty are you there"
Variable: {askPrompt} = ""
Variable: {returnLabel} = ""
Variable: {askInput} = ""
returnLabel = InstallAssistant
askPrompt = "Hi, I'm Patty. Say your name, or cancel."
Goto : ASK
@InstallAssistant
userName = askInput
Name Speak : Patty : "Hi {userName}. I am glad you chose to test subroutines."
Name Speak : Patty : "Patty Exiting"
exit
##
@ASK
if {askPrompt} != ""
Name Speak : Patty : "{askPrompt}"
voice_input {askInput}
if {askInput} IN {exitList[*]}:
Name Speak : Patty : "Say yes to confirm exiting Patty"
voice_input{askInput}
if {askInput} IN {yesList[*]}:
Name Speak : Patty : "Patty, signing off"
exit
else
goto : ASK
if {askInput} IN {heyPattyList[*]}:
Name Speak : Patty : "Patty, the Neon AI Patient Assistant, is listening"
goto : ASK
Name Speak : Patty : "About to return to {returnLabel}"
Goto: {returnLabel}
Script: "Subroutine Test"
Name Speak : Patty : "</speak>Version 20200624 18:33 Subroutine Test"
## Initialize
Variable: {exitList} = “Patty exit”, “Patty cancel”, “never mind”
Variable: {noList} = “no”, “not now”, "never mind", "nope", "n"
Variable: {yesList} = "yes", "yup", "y"
Variable: {alertsPhraseList} = "help", "I need help", "help me", "emergency", "this is an emergency", "I need a doctor", "I need a doctor", "I need a doctor", "I need a doctor", "I need a doctor", "I need a nurse", "I need aid", "I need a caregiver", "I need assistance", "I fell", "I can't get up"
Variable: {heyPattyList} = "hey Patty", "Patty are you there"
Variable: {askPrompt} = ""
Variable: {returnLabel} = ""
Variable: {askInput} = ""
returnLabel = InstallAssistant
askPrompt = "Hi, I'm Patty. Say your name, or cancel."
Goto : ASK
@InstallAssistant
userName = askInput
Name Speak : Patty : "Hi {userName}. I am glad you chose to test subroutines."
Name Speak : Patty : "Patty Exiting"
exit
##
@ASK
if {askPrompt} != ""
Name Speak : Patty : "{askPrompt}"
voice_input {askInput}
if {askInput} IN {exitList[*]}:
Name Speak : Patty : "Say yes to confirm exiting Patty"
voice_input{askInput}
if {askInput} IN {yesList[*]}:
Name Speak : Patty : "Patty, signing off"
exit
else
goto : ASK
if {askInput} IN {heyPattyList[*]}:
Name Speak : Patty : "Patty, the Neon AI Patient Assistant, is listening"
goto : ASK
Name Speak : Patty : "About to return to {returnLabel}"
Goto: {returnLabel}
Author
Daniel McKnight
{Empty}
{Empty}