Filter submissions
211 submissions
# Starred Locked Notes Created User IP address Script Title Script Description Script Sort descending Name Email Address Organization Name Organization URL Operations
69 Star/flag Script Upload: Submission #69 Lock Script Upload: Submission #69 Add notes to Script Upload: Submission #69 Tue, 12/10/2019 - 11:05 imedqo 73.109.151.117 Grocery Greeter A simple Grocery store greeter skill Script: "Grocery Greeter"
Variable: {init}: ""
Variable: {name}: ""
Variable: {more}: ""
# Variable: {}: ""
Neon Speak: "Starting the Grocery Greeter. Waiting for activation"
voice_input{init}
Neon Speak: "Welcome to the Neon Gecko Grocery Store."
# Neon Speak: "Welcome to the Neon Gecko Grocery Store Greeter. My name is Neon."
# Neon Speak: "What is your name?"
# voice_input{name}
# Neon Speak: "hi {name}"
Neon Speak: "What can I help you find?"
LOOP Q1
Neon Speak: “For example say produce for fresh vegetables, nuts, and fruit, or more for more options"
voice_input{more}
Neon Speak: {more}
IF "more" IN {more}:
Neon Speak: "more IN {more}"
Goto: say_options
IF "done" == {more}:
Neon Speak: "done == {more}"
Goto: say_goodbye
IF "more" == {more}:
Neon Speak: "more == {more}"
Goto: say_options
IF "Meat" IN {more}:
Neon Speak: "Meat can be found in Aisle 7, towards the back of the store"
IF "Dairy" IN {more}:
Neon Speak: "Dairy can be found in Aisle 1, towards the front of the store"
IF "Produce" IN {more}:
Neon Speak: "Produce can be found in Aisle 3, near the bakery"
IF "Frozen" IN {more}:
Neon Speak: "Frozen Foods can be found in Aisle 5, in the middle of the store"
IF "Bakery" IN {more}:
Neon Speak: "The bakery can be found in Aisle 2, towards the front of the store"
IF "Deli" IN {more}:
Neon Speak: "Deli items can be found in Aisle 8, towards the back of the store, near the Meat Department"
IF "Medicine" IN {more}:
Neon Speak: "Medicine can be found in Aisle 4, towards the middle of the store"
@say_options
Neon Speak: “Still need assistance? Say meat, or dairy, or cleaning"
# Neon Speak: “You can also say specific items, like apples, or steak"
# Neon Speak: “You can say produce, frozen, bakery, deli, or more"
# Neon Speak: “Say done to exit at any time"
LOOP Q1 END
@say_goodbye
Neon Speak: "Goodbye"
Exit
josh josh@neongecko.com
103 Star/flag Script Upload: Submission #103 Lock Script Upload: Submission #103 Add notes to Script Upload: Submission #103 Thu, 08/06/2020 - 11:57 imedqo 24.19.150.34 Guess My Word Guess My Word Script: "Guess My Word"
Language: "en-us female"

# Demonstration word game player from Neon AI
# "Hi {userName}. Let's play the game guess my 7 word popular phrase. It very simple. I will choose a 7 word phrase and tell you one word. Then you guess a word, and if it is in the seven work phrase I will tell you its position or to guess again. Anytime you want you can guess the phrase, just say I guess and I will tell you if you're right. If you want me to tell you what you've already guessed, just say recap or history. Say hint and I will tell you another word."
# Later n word phrases; n letter words; subject specific popular phrase input from Wolfram, google; foreign language

# Set up wait time for participant responses
Variable: timeoutReturnLabel = AnnounceVersion
Timeout: 30 TIMEOUT

@AnnounceVersion

Name Speak : Gamon : "Neon Word Game Demonstration Version 2020 08 06 22:30 </speak> Testing"
# Announce version ("Testing" is displayed as text and is not spoken)

Variable: sevenWordPhraseArray = "A DATE THAT WILL LIVE IN INFAMY",
"A DAY THAT WILL LIVE IN INFAMY",
"A WORD TO THE WISE IS ENOUGH",
"A WORD TO THE WISE IS SUFFICIENT",
"AND A MERRY OLD SOUL WAS HE",
"CAN'T SEE THE FOREST FOR THE TREES",
"CHILL OUT AND PLAY SOME VIDEO GAMES",
"COME OUT COME OUT WHEREVER YOU ARE",
"I SMELL THE BLOOD OF AN ENGLISHMAN",
"I'M LATE FOR A VERY IMPORTANT DATE",
"IF IT AIN'T BROKE DON'T FIX IT",
"IF YOU BUILD IT HE WILL COME",
"IF YOU BUILD IT THEY WILL COME",
"IT WAS A DARK AND STORMY NIGHT",
"IT'S ALL HUMBUG I TELL YOU HUMBUG",
"JACK AND JILL WENT UP THE HILL",
"JACK FELL DOWN AND BROKE HIS CROWN",
"LAUGH AND THE WORLD LAUGHS WITH YOU",
"LEAP TALL BUILDINGS IN A SINGLE BOUND",
"LIFE LIBERTY AND THE PURSUIT OF HAPPINESS",
"LIONS AND TIGERS AND BEARS OH MY",
"LITTLE BO PEEP HAS LOST HER SHEEP",
"LITTLE PIGS LITTLE PIGS LET ME IN",
"LIVE FROM NEW YORK IT'S SATURDAY NIGHT",
"NEITHER A BORROWER NOR A LENDER BE",
"NOT BY THE HAIR ON MY CHINNY-CHIN-CHIN",
"NOT BY THE HAIR OF MY CHINNY-CHIN-CHIN",
"NOW I LAY ME DOWN TO SLEEP",
"OH WHAT A TANGLED WEB WE WEAVE",
"ONE THING I CAN SAY FOR SURE",
"OLD MOTHER HUBBARD WENT TO THE CUPBOARD",
"OVER THE RIVER AND THROUGH THE WOODS",
"THE BEST-LAID SCHEMES OF MICE AND MEN",
"THE BEST-LAID PLANS OF MICE AND MEN",
"DISCRETION IS THE BETTER PART OF VALOR",
"THE BETTER PART OF VALOR IS DISCRETION",
"THE FACE THAT LAUNCHED A THOUSAND SHIPS",
"THE HABITS OF HIGHLY EFFECTIVE PEOPLE",
"THE STUFF THAT DREAMS ARE MADE FROM",
"THE STUFF THAT DREAMS ARE MADE OF",
"THE STUFF OF WHICH DREAMS ARE MADE",
"THE STUFF FROM WHICH DREAMS ARE MADE",
"THINGS THAT GO BUMP IN THE NIGHT",
"THIS IS THE SONG THAT NEVER ENDS
"TO ERR IS HUMAN TO FORGIVE DIVINE",
"TO FETCH HER POOR DOG A BONE",
"WE HOLD THESE TRUTHS TO BE SELF-EVIDENT",
"WE THE PEOPLE OF THE UNITED STATES",
"WHEN IN THE COURSE OF HUMAN EVENTS"

Variable: usedPhrases
Variable: chosenPhrase
Variable: hintCount
Variable: sayNext
Variable: foundWords
Variable: chosenPhraseWords
Variable: chosenPhraseWordsByLen
Variable: iWord
Variable: blankCount
Variable: userInput
Variable: userInputWords
Variable: userInputWordsLen

usedPhrases[*] = ""

Variable: True = 1
Variable: False = 0
Variable: exitList = "exit", "cancel", "never mind"
Variable: noList
Variable: yesList
Variable: alertsPhraseList
Variable: inProgressList
Variable: heyList
Variable: askPrompt
Variable: returnLabel
Variable: heardSilence
Variable: falseAlarmCount
Variable: askReturnValue = ""
Variable: userName
Variable: moreAppInfo
Variable: customizeSettings
Variable: customizeLanguage
Variable: customizeProsody
Variable: photoTime
Variable: enableNeonApps

@StartUp

# Initialize

# exitList = "exit", "cancel", "never mind"
noList = "no", "not now", "never mind", "nope", "n"
yesList = "yes", "yup", "y"

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", "fire"

inProgressList = "what time is it", "Remind me to", "Play", "Record this", "Send an email", "Send a text"

heyList = "hey Gamon", "Gamon are you there", "is anybody listening", "what time is it"

speechGenderList = "female", "male"
speechRateList = "medium", "fast", "slow"
speechAccentList = "American", "British", "Australian"

askPrompt = ""
returnLabel = ""
heardSilence = ""
falseAlarmCount = 0
askReturnValue = ""
userName = ""
moreAppInfo = ""
customizeSettings = ""
customizeLanguage = ""
customProsody = "rate='medium'"
photoTime = ""
enableNeonApps = {True}

# Ask to install assistant

@PromptInstallAssistant

returnLabel = InstallAssistant
timeoutReturnLabel = PromptInstallAssistant
Name Speak : Gamon : "Hi, I'm Gamon. I'm a demonstration word game player from Neon AI. Thank you for helping test my conversational skills."
askPrompt = "Please tell me your name, or you can say cancel to exit."
GOTO : ASK

@InstallAssistant

userName = {askReturnValue}

Name Speak : Gamon : "Hi {userName}. I am glad you chose to play word games with me."

## Offer additional information

@ReAskMoreInfo

Name Speak : Gamon : "Before starting the Neon Word Game, would you like more information on the Neon conversational AI?"
timeoutReturnLabel = ReAskMoreInfo
voice_input{moreAppInfo}
if {moreAppInfo} IN {noList[*]}:
GOTO : PromptCustomize

Name Speak : Gamon : "Hi {userName}. I'm Gamon the word games playing assistant from Neon AI. I am an artificial intelligence personal assistant, I'm augmented with Neon Gecko open source code and CPI Corp patented technology."

# Customize

@PromptCustomize

## Offer customization of settings for administrator, voice and system settings
## Set up PA voice: name, gender, accent, pitch, speed, [Later: language, diction, empathy]
## Set up system settings: timeoutSeconds (wait time for user input)

customLanguage = ""
enableNeonApps = {True}

Name Speak : Gamon : "Would you like to customize the Neon Word Game settings to change my voice?"
# Later: Provide example of new Language/Prosody and offer reset

timeoutReturnLabel = PromptCustomize
voice_input{customizeSettings}
if {customizeSettings} !IN {yesList[*]}:
GOTO : BeginAssistant

Name Speak : Gamon : "Hi {userName}. You can customize my voice for the Neon demonstration conversational game player. You can say female, male, normal, fast, slow, American, British or Australian, or say no change. </speak>"

@ReAskCustomize

# Name Speak : Gamon : "Would you like to change the voice of the Neon conversational Word Game Assistant?"

timeoutReturnLabel = ReAskCustomize
voice_input{customizeSettings}
if {customizeSettings} == "":
GOTO : PromptCustomize
if {customizeSettings} CONTAINS "no change":
GOTO : BeginAssistant
if {customizeSettings} IN {noList[*]}:
GOTO : BeginAssistant

# Variable: britWords = british, gb, uk
if {customizeSettings} CONTAINS british, gb, uk:
customLanguage = "'en-GB'"
else
if {customizeSettings} CONTAINS "Australian, AU, aussie":
customLanguage = "en-AU"
else
customLanguage = "en-us"

if {customizeSettings} CONTAINS "female":
customLanguage = "{customLanguage} female"
else
customLanguage = "{customLanguage} male"

Language: {customLanguage}

if {customizeSettings} CONTAINS "fast":
customProsody = "rate='fast'"
else
if {customizeSettings} CONTAINS "slow":
customProsody = "rate='slow'"
else
customProsody = "rate='medium'"

@ReAskApps

Name Speak : Gamon : "Would you like to enable more Neon applications including playing music, playing other games, taking notes, setting reminders, making calculation, requesting general information or changing my voice?"

timeoutReturnLabel = ReAskApps
voice_input{customizeSettings}
if {customizeSettings} == "":
GOTO : ReAskApps

if {customizeSettings} IN {noList[*]}:
enableNeonApps = {False}
GOTO : BeginAssistant

@BeginAssistant

timeoutReturnLabel = WaitForAlertPhrase
Name Speak : Gamon : "<prosody {customProsody}> Your demonstration word game assistant has signed in. If you want to know if I am listening, you can say, hey Gamon , or, Gamon are you there. </prosody>"

Name Speak : Gamon : "Hi {userName}. Let's play the game guess my 7 word popular phrase. It very simple. I will choose a 7 word phrase and tell you one word. Then you guess a word, and if it is in the seven work phrase I will tell you its position or to guess again. Anytime you want you can guess the phrase, just say I guess and I will tell you if you're right. If you want me to tell you what you've already guessed, just say recap or history. Say hint and I will tell you another word."

### SET UP GAME

# Choose New Phrase
@ChooseNewPhrase
chosenPhrase = random {sevenWordPhraseArray}
# Check if used before
if usedPhrases CONTAINS chosenPhrase
GOTO : ChooseNewPhrase

# Add New Phrase to list of phrased used
usedPhrases = chosenPhrase

hintCount = 0
sayNext = ""
foundWords[*] = ""

# Build word row for the sevenWordPhrase
Python: chosenPhraseWords = chosenPhrase.split()
# Build word row by word length [0]..[6]
Python: chosenPhraseWordsByLen = chosenPhraseWords.sort(key=len)

@NextHint

# Give first or next hint
if foundWords CONTAINS chosenPhraseWordsByLen[hintCount] :
Python: hintCount++
GOTO : NextHint
Name Speak : Gamon : "Hint {hintCount}, the {sayNext} longest word is" {chosenPhraseWordsByLen[hintCount]}
foundWords = {chosenPhraseWordsByLen[hintCount]}
Python: hintCount++
sayNext = "next"

@GuessNextWord

Name Speak : Gamon : "Here's where we're at"
iWord = 0
blankCount = 0
LOOP SayFoundWords
if chosenPhraseWord[iWord] in foundWords :
Name Speak : Gamon : chosenPraseWord[i]
else
Name Speak : Gamon : "blank"
Python: blankCount++
Python: iWord++
LOOP SayFoundWords UNTIL iWord >= 7

if blankCount == 0
Name Speak : Gamon : "Game Over! Thank you {userName} for playing with me"
Name Speak : Gamon : "Let's play again"
GOTO : ChooseNewPhrase


### Wait for Gamon/Emergency/Neon activiation alert phrase

@WaitForAlertPhrase

askPrompt = "Say I guess followed by a word, or I guess followed a phrase, or hint or recap or guessed words or exit"
timeoutReturnLabel = WaitForAlertPhrase
returnLabel = GotUserPhrase
Goto : ASK

@GotUserPhrase

userInput = askReturnValue
if {userInput} == "" :
GOTO : ReAskGuess

if {userInput} STARTSWITH "hint" :
GOTO : NextHint

if {userInput} IN "guessed words", "recap", "history" :
Name Speak : Gamon : "Here are your mis guessed words" {guessedWords}
GOTO : GuessNextWord

if {userInput} STARTSWITH "I guess" :
Python: userInputWords = userInput.split()
Python: userInputWordsLen = len(userInputWords)
Python: userInputWords = userInput.split()

if userInputWordsLen == 3 :
guessedWord = userInputWords[2]
if chosenPhraseWords[*] CONTAINS guessedWord :
if guessedWord !IN foundWords[*] :
foundWords = guessedWord
else
if guessedWord !IN misGuessedWords[*] :
misGuessedWords = guessedWord
GOTO : GuessNextWord

if userInputWordsLen != 9 :
# wrong number of words
Name Speak : Gamon : "I'm sorry {userName} I heard the wrong number of words."
Name Speak : Gamon : "I heard {userInputWords}"
Name Speak : Gamon : "Please try again."
GOTO : GuessNextWord

if userInputWords[2:] != chosenPhrase
Name Speak : Gamon : "I heard {userInputWords}"
Name Speak : Gamon : "I'm sorry {userName} that's not the popular phrase I'm thinking of."
Name Speak : Gamon : "Please try again."
GOTO : GuessNextWord

Name Speak : Gamon : "Yay {userName} userInputWords[2:] is correct.
Name Speak : Gamon : "Game Over! Thank you {userName} for playing with me"
Name Speak : Gamon : "Let's play again"
GOTO : ChooseNewPhrase


### SYSTEM ALERT PHRASES

## Did user ask for "help"
if {askReturnValue} !IN {alertsPhraseList[*]}:
## Not an emergency alert, check for secondary (in progress)
if {enableNeonApps}:
## if {askReturnValue} CONTAINS {inProgressList[*]}:
if {askReturnValue} STARTSWITH {inProgressList[*]}:
Case:
# inProgressList = "what time is it", "Remind me to", "Play", "Record this", "Send an email", "Send a text"

Name Speak : Gamon : "I'm sorry {userName} that is under construction."
## Not a Gamon/Alert/Neon activation phrase, listen again
GOTO : WaitForAlertPhrase

# Possible EMERGENCY

Name Speak : Gamon : "The Emergency Assistant heard an emergency alert. I heard {askReturnValue}"
Reconvey : askReturnValue
Name Speak : Gamon : "</speak>PA 6 did reconvey"

@PromptConfirmHelp

askPrompt = "Please say just kidding if this is not an emergency"
returnLabel = ConfirmHelp
GOTO : ASK
@ConfirmHelp

## Did user REALLY ask for "help"?
if {askReturnValue} == "":
Name Speak : Gamon : "The Emergency Assistant heard nothing. I heard"
Reconvey : askReturnValue
Name Speak : Gamon : "</speak>PA 8 did reconvey of nothing heard"

## PA heard nothing after emergency request .. if second time then this is an emergency
if {heardSilence} == {True} :
GOTO : Emergency
heardSilence = {True}
## Increase volume and speak slowly
Name Speak : Gamon : "<prosody volume='+100%' rate='slow'>{userName}! I need to hear from you! Is this an emergency?</prosody>"
GOTO : PromptConfirmHelp
if {askReturnValue} CONTAINS "just kidding", "never mind", "not an emergency":
Name Speak : Gamon : "The Emergency Assistant heard you say this is not an emergency. I heard"
Reconvey : askReturnValue
### Name Speak : Gamon : "</speak>Did reconvey of jk"

## User said jk so restart listening
Name Speak : Gamon : "Please say help again if this is an emergency."
Python: falseAlarmCount = {falseAlarmCount} + 1
GOTO : WaitForAlertPhrase

# EMERGENCY

@Emergency

Name Speak : Gamon : "<prosody volume='+100%' rate='normal'>{userName}! Needs! Help! This is an EMERGENCY</prosody>"

Name Speak : Gamon : "The Emergency Assistant would now send an emergency alert, sound an alarm, keep engaged with the user, and send updated alerts to the caregiver."

Name Speak : Gamon : "Gamon test completed. Say start again to start again?"
voice_input{askReturnValue}
if {askReturnValue} == "start again":
Name Speak : Gamon : "</speak> Gamon is restarting. Thanks again."
GOTO : StartUp

Name Speak : Gamon : "Gamon exiting. Thanks again for helping test my skills."
exit

# ========== Subroutines

@ASK
# The ASK subroutine speaks the askPrompt and waits for a response. If the response is a command to Gamon to perform an action, then the request is effected and Gamon continues waiting for a response, otherwise, the response is returned to the caller in the askReturnValue.
# Input parameters: askPrompt, returnLabel and timeOutReturnLabel
# Result parameter: askReturnValue

### Name Speak : Gamon : "Ask 1 Starting"
if {askPrompt}:
Name Speak : Gamon : " {askPrompt} "
### Name Speak : Gamon : "Ask 2 Starting ask subroutine"
voice_input {askReturnValue}
### Name Speak : Gamon : "Ask 3 got input"
if {askReturnValue} IN {exitList[*]}:
Name Speak : Gamon : "Say yes to confirm exiting Gamon, the Neon Word Game Assistant"
voice_input{askReturnValue}
if {askReturnValue} IN {yesList[*]}:
Name Speak : Gamon : "Gamon , the Neon Word Game Assistant, signing off"
exit
else
GOTO : ASK
### Name Speak : Gamon : "Ask 4 not cancel command {askReturnValue}"
if {askReturnValue} IN {heyList[*]}:
Name Speak : Gamon : "<prosody {customProsody}> {userName}, Gamon the Word Game Assistant demo here. I'm listening all the time but I don't <phoneme alphabet= "x-sampa” ph= "rikord”>record</phoneme> everything you say. I only make recordings of calls for help or if you say emergency. </prosody>"
# Note - Disambiguation for the pronunciations of "record": <phoneme alphabet= "x-sampa” ph= "rikord”>record</phoneme> Verb as in “I record everything you say” vs. Noun as in "Make a record of the conversation".
Name Speak : Gamon : "The time is"
Execute : "Neon what time is it"
if {falseAlarmCount} != 0:
Name Speak : Gamon : "The false alarm count is {falseAlarmCount}!"
GOTO : ASK
### Name Speak : Gamon : "Ask 5 About to return to {returnLabel}"
GOTO : {returnLabel}


@TIMEOUT
GOTO : {timeoutReturnLabel}
Josh josh@neongecko.com
44 Star/flag Script Upload: Submission #44 Lock Script Upload: Submission #44 Add notes to Script Upload: Submission #44 Tue, 11/19/2019 - 14:00 Anonymous 73.109.151.117 Hello World Input Hello World Input Script: "Hello World Input"
Variable: {input}: ""
Neon speak: "Hello World. Say anything or exit"
voice_input{input}
Neon speak: "you said {input}"
Exit
Daniel daniel@neongecko.com
79 Star/flag Script Upload: Submission #79 Lock Script Upload: Submission #79 Add notes to Script Upload: Submission #79 Wed, 01/22/2020 - 15:30 imedqo 73.109.151.117 Jody A demo of Jody, who is good at telling the weather. Script: "Jody"
Language: "en-au female"
Variable: {name}: ""
Variable: {more}: ""
Name Speak : Jody : "Welcome to the Neongecko Intro, My name is Jody."
Name Speak : Jody : "What is your name?"
voice_input{name}
Name Speak : Jody : "hi {name}"
Name Speak : Jody : " I am knowledgeable about the weather. You can ask me questions like what is the weather in Seattle - or any world location”
Name Speak : Jody : "If your microphone and speakers are enabled you can ask me questions out loud, and hear my answers, otherwise you can type your questions in the box, after this start up exits."
EXIT
josh josh@neongecko.com
77 Star/flag Script Upload: Submission #77 Lock Script Upload: Submission #77 Add notes to Script Upload: Submission #77 Wed, 01/22/2020 - 15:21 imedqo 73.109.151.117 Manuel A script that introduces Manuel, who is good at speaking Spanish. Script: "Manuel"
Language: "es-MX male"
Variable: {name}: ""
Variable: {more}: ""
Name Speak : Manuel : "Welcome to the Neongecko Intro, My name is Manuel."
Name Speak : Manuel : "What is your name?"
voice_input{name}
Name Speak : Manuel : "hi {name}"
Name Speak : Manuel : " I am good at Spanish. You can say things like translate strawberry to Spanish, or speak to me in Spanish”
Name Speak : Manuel : "If your microphone and speakers are enabled you can ask me questions out loud, and hear my answers. Otherwise you can type your questions in the box, after this start up exits."
EXIT
josh josh@neongecko.com
59 Star/flag Script Upload: Submission #59 Lock Script Upload: Submission #59 Add notes to Script Upload: Submission #59 Wed, 11/20/2019 - 18:49 imedqo 73.109.151.117 Mycroft Navigator Navigates the mycroft.ai website Script: "Mycroft Navigator"
# Language: "en-us female"
Variable: {options}: table_scrape(https://mycroft.ai)
Variable: {chosen}: ""
Variable: {termination_bool}: done
Neon speak: "Please tell me what Mycroft web page you'd like to see. You can say things like random{options}"
LOOP WN
voice_input{chosen}
# Neon speak: "navigating to {chosen}"
if closest{chosen,options}:
Execute: "neon browse to closest{chosen,options}"
else:
Neon speak: "Page not found"
Neon speak: "What Mycroft web page would you like to see next?"
LOOP WN END
Exit
Guy Daniels guy@neongecko.com guy daniels
49 Star/flag Script Upload: Submission #49 Lock Script Upload: Submission #49 Add notes to Script Upload: Submission #49 Tue, 11/19/2019 - 14:05 Anonymous 73.109.151.117 Neon AI Android Startup Script: "Neon AI Android Startup"
Language: "English American Female"
Variable: {startup_skill}: ""
Neon speak: "Welcome to Neon AI Scripts. Please choose a script to run when you open the app."
Execute: "tell me my scripts"
Neon speak: "Which one would you like?"
voice_input{startup_skill}
Execute: "set my startup script to {startup_skill}"
Exit
Daniel daniel@neongecko.com
72 Star/flag Script Upload: Submission #72 Lock Script Upload: Submission #72 Add notes to Script Upload: Submission #72 Fri, 01/03/2020 - 18:10 imedqo 73.109.151.117 Neon AI Navigator Navigate the neon.ai website with voice Script: "Neon AI Navigator"
Variable: {options}: table_scrape(https://neon.ai)
Neon speak: "Please tell me what Neon AI web page you'd like to see. You can say things like random{options} or say quit or exit."
LOOP WN
voice_input{chosen}
# Neon speak: "navigating to {chosen}"
if {chosen} == "quit":
Neon speak: "say pause to turn off the mic or say exit to close the window."
voice_input{chosen}
if {chosen} == "pause":
# execute skill to turn off mic
Execute: "neon mute microphone"
else:
if closest{chosen,options}:
Execute: "neon browse to closest{chosen,options}"
else:
Neon speak: "Page not found"
Neon speak: "Tell me another Neon AI web page you'd like to see or say quit."
LOOP WN END
Exit
Daniel McKnight daniel@neongecko.com
74 Star/flag Script Upload: Submission #74 Lock Script Upload: Submission #74 Add notes to Script Upload: Submission #74 Wed, 01/22/2020 - 14:11 imedqo 73.109.151.117 Neongecko Intro A small demonstration of Neon Script: "Neongecko Intro"
Variable: {name}: ""
Variable: {more}: ""
Neon Speak: "Welcome to the Neongecko Intro, My name is Neon."
Neon Speak: "What is your name?"
voice_input{name}
Neon Speak: "hi {name}"
Neon Speak: "Welcome to Neongecko.com."
Neon Speak: "Exiting the Neon Welcome Script. If your microphone and speakers are enabled you can ask me for time, weather, play music, show videos, caffeine contents, etcetera"
EXIT
josh josh@neongecko.com
66 Star/flag Script Upload: Submission #66 Lock Script Upload: Submission #66 Add notes to Script Upload: Submission #66 Tue, 12/03/2019 - 13:38 imedqo 73.109.151.117 Neongecko Website Demo Demo Intro to Neongecko.com Script: "Neongecko Website Demo"
Variable: {name}: ""
Variable: {more}: ""
Variable: {}: ""
Variable: {}: ""
Neon Speak: "Welcome to the Neongecko Intro, My name is Neon."
Neon Speak: "What is your name?"
voice_input{name}
Neon Speak: "hi {name}"
Neon Speak: "Welcome to Neon gecko.com. My name is Neon, I would love to show you more about our company and our products."
LOOP Q1
Neon Speak: "I'll take you to the right webpage. What interests you?"
Neon Speak: “For example say Android for the new Neon AI Android Communicator webpage, or more for more options"
voice_input{more}
Neon Speak: {more}
IF "more" IN {more}:
Neon Speak: "more IN {more}"
Goto: say_options
IF "done" == {more}:
Neon Speak: "done == {more}"
Goto: say_goodbye
IF "more" == {more}:
Neon Speak: "more == {more}"
Goto: say_options
IF "Android" IN {more}:
Neon Speak: "Android in more"
Execute: "browse to https://neongecko.com/NeonAIforAndroidPhones"
IF "Nano" IN {more}:
Execute: "browse to https://neongecko.com/NeonNanoforWebsiteDesigners"
IF "home" IN {more}:
Execute: "browse to https://neongecko.com/NeonAIforHome"
IF "Education" IN {more}:
Execute: "browse to "https://neongecko.com/NeonAIforEducation"
IF "Work" IN {more}:
Execute: "browse to https://neongecko.com/NeonAIforCorporations"
IF "Chat" IN {more}:
Execute: "browse to https://neongecko.com/NeonAIforAdvancedSocialMedia"
IF "Developers" IN {more}:
Execute: "browse to https://neongecko.com/NeonSDKDevelopers"
@say_options
Neon Speak: “Say Nano or Education or Work or Chat or Developers"
# Neon Speak: “Nano for Neon AI Nano or AI Home for Neon AI Pcs designed for Home and Hobbyists, or more"
# Neon Speak: “AI Education for information regarding Neon AI and our commitment to Education, or more"
# Neon Speak: “AI Work for Neon AI Business and Corporate offerings, or more"
# Neon Speak: “AI Chat for Advanced Social Media, our Neon AI enhanced chat, or more"
# Neon Speak: “Developers for Neon AI Programmers, join our developer community and help create the future, or more"
LOOP Q1 END
@say_goodbye
Neon Speak: "Goodbye"
Exit
Josh josh@neongecko.com
98 Star/flag Script Upload: Submission #98 Lock Script Upload: Submission #98 Add notes to Script Upload: Submission #98 Wed, 06/24/2020 - 18:33 imedqo 24.19.150.34 Patient Assistant Patient Assistant Script: "Patient Assistant"
Language: "en-us male"

# Set up wait time for patient responses
Variable: timeoutReturnLabel = AnnounceVersion
Timeout: 30 TIMEOUT

# Announce version ("Testing" is displayed as text and is not spoken)

@AnnounceVersion

Name Speak : Pat : "Neon Patient Assistant Application Demonstration Version 2020 07 07 18:00 </speak> Testing"

Variable: exitList = "exit", "cancel", "never mind"
Variable: noList
Variable: yesList
Variable: alertsPhraseList
Variable: heyPatList
Variable: askPrompt
Variable: returnLabel
Variable: heardSilence
Variable: falseAlarmCount
Variable: askReturnValue = ""
Variable: userName
Variable: moreAppInfo
Variable: customizeSettings
Variable: customizeLanguage
Variable: customizeProsody
Variable: photoTime

@StartUp

# Initialize

# exitList = "exit", "cancel", "never mind"
noList = "no", "not now", "never mind", "nope", "n"
yesList = "yes", "yup", "y"
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", "fire"
heyPatList = "hey pat", "pat are you there", "is anybody listening", "what time is it"
speechGenderList = "female", "male"
speechRateList = "medium", "fast", "slow"
speechAccentList = "American", "British" or "Australian"
askPrompt = ""
returnLabel = ""
heardSilence = ""
falseAlarmCount = 0
askReturnValue = ""
userName = ""
moreAppInfo = ""
customizeSettings = ""
customizeLanguage = ""
customProsody = "rate=’medium’"
photoTime = ""

# Ask to install assistant

@PromptInstallAssistant

returnLabel = InstallAssistant
timeoutReturnLabel = PromptInstallAssistant
Name Speak : Pat : "Hi, I'm Pat. I'm a demonstration patient assistant from Neon AI. Thank you for helping test my conversational skills."
askPrompt = "Please tell me your name, or you can say cancel to exit."
Goto : ASK

@InstallAssistant

userName = {askReturnValue}

Name Speak : Pat : "Hi {userName}. I am glad you chose to install the Neon Patient Assistant Application."

## Offer additional information

@ReAskMoreInfo

Name Speak : Pat : "Before starting the Patient Assistant, would you like more information on the Neon conversational patient assistance application?"
timeoutReturnLabel = ReAskMoreInfo
voice_input{moreAppInfo}
if {moreAppInfo} IN {noList[*]}:
Goto: PromptCustomize

Name Speak : Pat : "Hi {userName}. I'm Pat the demonstration conversational patient assistant from Neon AI. I am an artificial intelligence personal assistant, I'm augmented with Neon Gecko open source code and CPI Corp patented technology. Neon AI makes the Patient Assistant application to enable patients to alert their caregivers to emergencies and other needs, and to get simple information. As your automated patient assistant I listen for calls for help and send alerts to the patient care administrator. For example, you can say help, or I fell. Another thing you can say is what time is it .. </speak> In the future you will be able to play your favorite music, turn the lights on or off, and even ask to send a text message .. And if you don't want to call me Pat, someday you will be able to change my name."

# Customize

@PromptCustomize

## Offer customization of settings for administrator, voice and system settings
## Set up PA voice: name, gender, accent, pitch, speed, [Later: language, diction, empathy]
## Set up system settings: timeoutSeconds (wait time for user input)
## Set up administrator (password, email, name, phone, [Later: staff names, secondary contacts] ..)
## Set up nurse (password, email, name, phone, [Later: staff names, secondary contacts] ..)

Name Speak : Pat : "Would you like to customize the Patient Assistant settings for my voice?"
# Name Speak : Pat : "Would you like to customize the Patient Assistant settings for administrator, voice and PAT system settings?"

timeoutReturnLabel = PromptCustomize
voice_input{customizeSettings}
if {customizeSettings} !IN {yesList[*]}:
Goto: BeginAssistant

Name Speak : Pat : "Hi {userName}. You can customize the voice for the Neon demonstration conversational patient assistant. You can say no change, or say female, male, normal, fast, slow, American, British or Australian. </speak> In the future you will be able to set up information for the administrator, staff members and the patient, and change my name and other PAT system settings."

@ReAskCustomize

# Name Speak : Pat : "Would you like to change the voice of the Neon conversational patient assistance application?"

timeoutReturnLabel = ReAskCustomize
voice_input{customizeSettings}
if {customizeSettings} == "":
Goto: PromptCustomize
if {customizeSettings} CONTAINS "no change":
Goto: BeginAssistant
if {customizeSettings} IN {noList[*]}:
Goto: BeginAssistant

customLanguage = ""

# Variable: britWords = british, gb, uk
#if {customizeSettings} CONTAINS "British":
if {customizeSettings} CONTAINS british, gb, uk:
customLanguage = "'en-GB'"
else
if {customizeSettings} CONTAINS "Australian, AU, aussie":
customLanguage = "en-AU"
else
customLanguage = "en-us"

if {customizeSettings} CONTAINS "female":
customLanguage = “{customLanguage} female"
else
customLanguage = “{customLanguage} male"

Language: {customLanguage}

if {customizeSettings} CONTAINS "fast":
customProsody = "rate='fast'"
else
if {customizeSettings} CONTAINS "slow":
customProsody = "rate='slow'"
else
customProsody = “rate=’medium’”

# Later: Provide example of new Language/Prosody and offer reset

# Later: Make settings into a case statement and error check:
# split_words(wordList, customizeSettings)
# customSettingCount = length({wordList})
# wordListIndex = 0
# LOOP
# Case
# LOOP END

@BeginAssistant
timeoutReturnLabel = WaitForAlertPhrase
Name Speak : Pat : "<prosody {customProsody}> Your demonstration patient assistant has signed in. You can say, hey Pat, or, Pat are you there, if you want to know if I am listening. </prosody>"

# Wait for alert

@WaitForAlertPhrase

askPrompt = ""
returnLabel = GotPatientPhrase
### Name Speak : Pat : "PA 1 pre ask"
Goto : ASK

@GotPatientPhrase
## Did patient ask for "help"
if {askReturnValue} !IN {alertsPhraseList[*]}:
### Name Speak : Pat : "PA 4 not an alert, listen again"
Goto: WaitForAlertPhrase

# Possible EMERGENCY

Name Speak : Pat : "PA 5 got alert, about to reconvey {askReturnValue}"
Reconvey : askReturnValue
Name Speak : Pat : "PA 6 did reconvey"

@PromptConfirmHelp

askPrompt = "Please say just kidding if this is not an emergency"
returnLabel = ConfirmHelp
### Name Speak : Pat : "PA 7 about to ask to cancel help request"
Goto : ASK
@ConfirmHelp

### Name Speak : Pat : "PA 8 check for jk"
## Did patient REALLY ask for "help"?
if {askReturnValue} == "":
Name Speak : Pat : "Pat the Patient Assistant heard nothing."
Name Speak : Pat : "PA 7 got alert, about to reconvey of heard nothing {askReturnValue}"
Reconvey : askReturnValue
Name Speak : Pat : "PA 8 did reconvey of nothing?"
## PA heard nothing after emergency request .. if second time then this is an emergency
if {heardSilence == "TRUE"} :
Goto: Emergency
heardSilence = "TRUE"
## LATER: Increase volume, speak slower
Name Speak : Pat : "{userName}! I need to hear from you! Is this an emergency?"
Goto: PromptConfirmHelp
if {askReturnValue} CONTAINS "just kidding", "never mind","not an emergency":
Name Speak : Pat : "Pat the Patient Assistant heard you say this is not an emergency."
Reconvey : askReturnValue
Name Speak : Pat : "Please say help again if this is an emergency."
### Name Speak : Pat : "PA 9 jk so restart listening"
Python: falseAlarmCount = {falseAlarmCount} + 1
Goto: WaitForAlertPhrase

# EMERGENCY

@Emergency

Name Speak : Pat : "This is an EMERGENCY"

Name Speak : Pat : "Pat the Patient Assistant would now send an emergency alert, keep engaged with the patient, and send updated alerts to the caregiver."

Name Speak : Pat : "Pat test completed. Say start again to start again?"
voice_input{askReturnValue}
### Name Speak : Pat : "PA 10 check for restart request"
if {askReturnValue} == "start again":
### Name Speak : Pat : "PA 10 restarting"
Goto: StartUp

Name Speak : Pat : "Pat exiting"
exit

# ========== Subroutines

@ASK
# The ASK subroutine speaks the askPrompt and waits for a response. If the response is a command to Pat to perform an action, then the request is effected and Pat continues waiting for a response, otherwise, the response is returned to the caller in the askReturnValue.
# Input parameters: askPrompt, returnLabel and timeOutReturnLabel
# Result parameter: askReturnValue

### Name Speak : Pat : "Ask 1 Starting"
if {askPrompt}:
Name Speak : Pat : " {askPrompt} "
### Name Speak : Pat : "Ask 2 Starting ask subroutine"
voice_input {askReturnValue}
### Name Speak : Pat : "Ask 3 got input"
if {askReturnValue} IN {exitList[*]}:
Name Speak : Pat : "Say yes to confirm exiting Pat, the Neon AI Patient Assistant"
voice_input{askReturnValue}
if {askReturnValue} IN {yesList[*]}:
Name Speak : Pat : "Pat, the Neon AI Patient Assistant, signing off"
exit
else
goto: ASK
### Name Speak : Pat : "Ask 4 not cancel command {askReturnValue}"
if {askReturnValue} IN {heyPatList[*]}:
Name Speak : Pat : "<prosody {customProsody}> {userName}, Pat the AI Patient Assistant demo here. I'm listening all the time but I don't <phoneme alphabet=”x-sampa” ph=”rikord”>record</phoneme> everything you say. I only make recordings of calls for help or in an emergency. </prosody>"
# Note - Disambiguation for the pronunciations of "record": <phoneme alphabet=”x-sampa” ph=”rikord”>record</phoneme> Verb as in “I record everything you say” vs. Noun as in "Make a record of the conversation".
Name Speak : Pat : "The time is"
Execute : "Neon what time is it"
if {falseAlarmCount} != 0:
Name Speak : Pat : "The false alarm count is {falseAlarmCount}!"
goto : ASK
### Name Speak : Pat : "Ask 5 About to return to {returnLabel}"
Goto: {returnLabel}


@TIMEOUT
Goto: {timeoutReturnLabel}
jsh r j@j.com
58 Star/flag Script Upload: Submission #58 Lock Script Upload: Submission #58 Add notes to Script Upload: Submission #58 Wed, 11/20/2019 - 11:46 Anonymous 73.109.151.117 Table Scrape Demo short table scrape demo Script: "Table Scrape Demo"
Variable: {options}: table_scrape(https://www.neongecko.com/demos)
Variable: {chosen}: ""
Neon speak:
"Please tell me what kind of help video you would like to see. You can say things like random{options}"
voice_input{chosen}
Neon speak:
"Okay"
Execute: "av play closest{chosen,options}"
Exit
Daniel daniel@neongecko.com
45 Star/flag Script Upload: Submission #45 Lock Script Upload: Submission #45 Add notes to Script Upload: Submission #45 Tue, 11/19/2019 - 14:01 Anonymous 73.109.151.117 Test Neon Demo Test Neon Demo Script: "Test Neon Demo"
Variable: {test_set}: ""
Neon speak:
"Please select your test preference. You can choose from the following demos: 'personal' for profile setup"
"'language' for translation,"
"'standard',"
"'clapper or clap',"
"'av or music',"
"'picture or record',"
"'caffeine',"
"'email',"
"'coupons',"
"'summary',"
"'clear',"
"'alarm or timer',"
"'wakewords or wake words',"
"'dialog', or "
"'control' group tests."
voice_input{test_set}
Case: {test_set}
"personal"
Execute:
"neon my name is Joshua Test"
"neon my name is John Jacob Jingleheimer Smith"
"neon tell me my first name"
"neon tell me my last name"
"neon tell me my full name"
"neon my email address is josh@neongecko.com"
"language"
Execute:
"neon translate cherry to russian"
"neon tell me my language setting
"neon speak to me in english
"neon speak to me in Russian and French
"neon speak to me in english
"standard"
Execute: "neon say hello world
Execute: "what is the time
Execute: "what is today's date
Execute: "what time is it in paris
Execute: "what is the weather in seattle
Execute: "neon spell microphone
Execute: "what is 25 times 71
Execute: "what is the derivative of x squared
Execute: "what is the share price for ibm
Execute: "tell me a joke
Execute: "tell me about linux
Execute: "send me the source for that
Execute: "where are you
Execute: "who are you
Execute: "my location is Seattle, WA
Execute: "what is my ip address
"clapper or clap"
Execute: "Set up clapper process
Execute: "Quit clapper process
Execute: "Deny clapper process by default
Execute: "Enable clapper process by default
"av or music"
Execute: "neon av play Relaxing jazz radio
Execute: "neon av play Sleepy blues piano radio
Execute: "pause
Execute: "resume
Execute: "stop
Execute: "avplay american folk guitar radio
Execute: "increase volume
Execute: "decrease volume
Execute: "mute volume
Execute: "unmute volume
Execute: "what is the volume
Execute: "neon play the latest news
"picture or record"
Execute: "take a picture
Execute: "show me my last picture
Execute: "take a 3-second video
Execute: "show me my last video
Execute: "neon record 3 seconds
Execute: "playback my last recording
"caffeine"
Execute: "how much caffeine is in sprite
Execute: "how about j street coffee
Execute: "how much caffeine is in a cherry coke
"email"
Execute: "email me my transcripts
"coupons"
Execute: "neon update my brands
Execute: "i like google
Execute: "tell me coupons for microsoft
Execute: "i like neon
Execute: "tell me my likes
Execute: "i do not like alpha
Execute: "tell me my dislikes
Execute: "tell me my coupons
Execute: "email me my coupons
"summary"
Execute: "neon talk to me in Russian
Execute: "what time is it in Moscow
Execute: "what is the weather in Moscow
Execute: "tell me about electricity
Execute: "what is 625 divided by 25
Execute: "tell me my likes
Execute: "how many inches are in a mile
Execute: "translate cherry to French
Execute: "how much caffeine is in pepsi
Execute: "talk to me in English
Execute: "change units/measuring system
"clear"
Execute: "I want to clear my user brands
Execute: "I want to clear my user likes
Execute: "clear all of my user data
"alarm or timer"
Execute: "neon set an alarm for 6:30 pm
Execute: "neon remind me to go home at 7 pm
Execute: "neon set a 2 minute timer
Execute: "neon how much time is left
Execute: "neon clear all reminders
Execute: "cancel all alarms
Execute: "cancel all timers
"wakewords or wake words"
Execute: "require wakewords
Execute: "begin skipping wake words
Execute: "i am not alone
Execute: "neon i am alone
"dialog"
Execute: "switch to primary dialogue mode
Execute: "how are you?
Execute: "switch to random dialogue mode
Execute: "how are you?
"control"
Execute: "create a support ticket
Execute: "i want [you] to exit
Execute: " i want [you] to shutdown
Execute: "what is my current software version

Exit
Daniel daniel@neongecko.com
102 Star/flag Script Upload: Submission #102 Lock Script Upload: Submission #102 Add notes to Script Upload: Submission #102 Thu, 07/09/2020 - 18:25 Anonymous 73.42.151.74 Test Pat Richard Test Pat Patient Assistant Script Script: "Test Pat"
Language: "en-us male"

# Set up wait time for patient responses
Variable: timeoutReturnLabel = AnnounceVersion
Timeout: 30 TIMEOUT

# Announce version ("Testing" is displayed as text and is not spoken)

@AnnounceVersion

Name Speak : Pat : "Neon Patient Assistant Application Demonstration Version 2020 07 09 18:22 again </speak> Testing"

Variable: True = 1
Variable: False = 0
Variable: exitList = "exit", "cancel", "never mind"
Variable: noList
Variable: yesList
Variable: alertsPhraseList
Variable: inProgressList
Variable: heyPatList
Variable: askPrompt
Variable: returnLabel
Variable: heardSilence
Variable: falseAlarmCount
Variable: askReturnValue = ""
Variable: userName
Variable: moreAppInfo
Variable: customizeSettings
Variable: customizeLanguage
Variable: customizeProsody
Variable: photoTime
Variable: enableNeonApps

@StartUp

# Initialize

# exitList = "exit", "cancel", "never mind"
noList = "no", "not now", "never mind", "nope", "n"
yesList = "yes", "yup", "y"

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", "fire"

inProgressList = "hey pat", "pat are you there", "is anybody listening", "what time is it", "Remind me to", "Play", "Email", "Record"

heyPatList = "hey pat", "pat are you there", "is anybody listening", "what time is it"

speechGenderList = "female", "male"
speechRateList = "medium", "fast", "slow"
speechAccentList = "American", "British" or "Australian"

askPrompt = ""
returnLabel = ""
heardSilence = ""
falseAlarmCount = 0
askReturnValue = ""
userName = ""
moreAppInfo = ""
customizeSettings = ""
customizeLanguage = ""
customProsody = "rate='medium'"
photoTime = ""
enableNeonApps = {True}

# Ask to install assistant

@PromptInstallAssistant

returnLabel = InstallAssistant
timeoutReturnLabel = PromptInstallAssistant
Name Speak : Pat : "Hi, I'm Pat. I'm a demonstration patient assistant from Neon AI. Thank you for helping test my conversational skills."
askPrompt = "Please tell me your name, or you can say cancel to exit."
Goto : ASK

@InstallAssistant

userName = {askReturnValue}

Name Speak : Pat : "Hi {userName}. I am glad you chose to install the Neon Patient Assistant Application."

## Offer additional information

@ReAskMoreInfo

Name Speak : Pat : "Before starting the Patient Assistant, would you like more information on the Neon conversational patient assistance application?"
timeoutReturnLabel = ReAskMoreInfo
voice_input{moreAppInfo}
if {moreAppInfo} IN {noList[*]}:
Goto: PromptCustomize

Name Speak : Pat : "Hi {userName}. I'm Pat the demonstration conversational patient assistant from Neon AI. I am an artificial intelligence personal assistant, I'm augmented with Neon Gecko open source code and CPI Corp patented technology. Neon AI makes the Patient Assistant application to enable patients to alert their caregivers to emergencies and other needs, and to get simple information. As your automated patient assistant I listen for calls for help and send alerts to the patient care administrator. For example, you can say help, or I fell. Another thing you can say is what time is it .. </speak> In the future you will be able to play your favorite music, turn the lights on or off, and even ask to send a text message .. And if you don't want to call me Pat, someday you will be able to change my name."

# Customize

@PromptCustomize

## Offer customization of settings for administrator, voice and system settings
## Set up PA voice: name, gender, accent, pitch, speed, [Later: language, diction, empathy]
## Set up system settings: timeoutSeconds (wait time for user input)
## Set up administrator (password, email, name, phone, [Later: staff names, secondary contacts] ..)
## Set up nurse (password, email, name, phone, [Later: staff names, secondary contacts] ..)

customLanguage = ""
enableNeonApps = {True}

Name Speak : Pat : "Would you like to customize the Patient Assistant settings to disable non-emergency Neon AI patient applications, or to change my voice?"
# Name Speak : Pat : "Would you like to customize the Patient Assistant settings for administrator, voice and PAT system settings?"

timeoutReturnLabel = PromptCustomize
voice_input{customizeSettings}
if {customizeSettings} !IN {yesList[*]}:
Goto: BeginAssistant

Name Speak : Pat : "Hi {userName}. You can customize the voice for the Neon demonstration conversational patient assistant. You can say no change, or say female, male, normal, fast, slow, American, British or Australian. </speak> In the future you will be able to set up information for the administrator, staff members and the patient, and change my name and other PAT system settings."

@ReAskCustomize

# Name Speak : Pat : "Would you like to change the voice of the Neon conversational patient assistance application?"

timeoutReturnLabel = ReAskCustomize
voice_input{customizeSettings}
if {customizeSettings} == "":
Goto: PromptCustomize
if {customizeSettings} CONTAINS "no change":
Goto: BeginAssistant
if {customizeSettings} IN {noList[*]}:
Goto: BeginAssistant

# Variable: britWords = british, gb, uk
if {customizeSettings} CONTAINS british, gb, uk:
customLanguage = "'en-GB'"
else
if {customizeSettings} CONTAINS "Australian, AU, aussie":
customLanguage = "en-AU"
else
customLanguage = "en-us"

if {customizeSettings} CONTAINS "female":
customLanguage = “{customLanguage} female"
else
customLanguage = “{customLanguage} male"

Language: {customLanguage}

if {customizeSettings} CONTAINS "fast":
customProsody = "rate='fast'"
else
if {customizeSettings} CONTAINS "slow":
customProsody = "rate='slow'"
else
customProsody = "rate='medium'"

# Later: Provide example of new Language/Prosody and offer reset

# Later: Make settings into a case statement and error check:
# split_words(wordList, customizeSettings)
# customSettingCount = length({wordList})
# wordListIndex = 0
# LOOP
# Case
# LOOP END

@ReAskApps

Name Speak : Pat : "Would you like to enable more Neon patient assistance applications including playing music, playing games, reminders for medicine, hydration, meals and sleep, requests to record symptoms or other stats, and to request general information or assistance with math?"

timeoutReturnLabel = ReAskApps
voice_input{customizeSettings}
if {customizeSettings} == "":
Goto: ReAskApps

if {customizeSettings} IN {noList[*]}:
enableNeonApps = {False}
Goto: BeginAssistant

@BeginAssistant

timeoutReturnLabel = WaitForAlertPhrase
Name Speak : Pat : "<prosody {customProsody}> Your demonstration patient assistant has signed in. If you want to know if I am listening, you can say, hey Pat, or, Pat are you there. </prosody>"

# Wait for alert

@WaitForAlertPhrase

askPrompt = ""
returnLabel = GotPatientPhrase
### Name Speak : Pat : "PA 1 pre ask"
Goto : ASK

@GotPatientPhrase

## Did patient ask for "help"
if {askReturnValue} !IN {alertsPhraseList[*]}:
## Not an emergency alert, check for secondary (in progress)
if {enableNeonApps}:
## if {askReturnValue} CONTAINS {inProgressList[*]}:
if {askReturnValue} STARTSWITH {inProgressList[*]}:
Name Speak : Pat : "I'm sorry {userName} that is under construction."
## Not an alert, listen again
Goto: WaitForAlertPhrase

# Possible EMERGENCY

Name Speak : Pat : "Pat the Patient Assistant heard an emergency alert. I heard {askReturnValue}"
Reconvey : askReturnValue
Name Speak : Pat : "</speak>PA 6 did reconvey"

@PromptConfirmHelp

askPrompt = "Please say just kidding if this is not an emergency"
returnLabel = ConfirmHelp
Goto : ASK
@ConfirmHelp

## Did patient REALLY ask for "help"?
if {askReturnValue} == "":
Name Speak : Pat : "Pat the Patient Assistant heard nothing. I heard"
Reconvey : askReturnValue
Name Speak : Pat : "</speak>PA 8 did reconvey of nothing heard"

## PA heard nothing after emergency request .. if second time then this is an emergency
if {heardSilence} == {True} :
Goto: Emergency
heardSilence = {True}
## Increase volume and speak slowly
Name Speak : Pat : "<prosody volume='+100%' rate='slow'>{userName}! I need to hear from you! Is this an emergency?</prosody>"
Goto: PromptConfirmHelp
if {askReturnValue} CONTAINS "just kidding", "never mind","not an emergency":
Name Speak : Pat : "Pat the Patient Assistant heard you say this is not an emergency. I heard"
Reconvey : askReturnValue
### Name Speak : Pat : "</speak>Did reconvey of jk"

## Patient said jk so restart listening
Name Speak : Pat : "Please say help again if this is an emergency."
Python: falseAlarmCount = {falseAlarmCount} + 1
Goto: WaitForAlertPhrase

# EMERGENCY

@Emergency

Name Speak : Pat : "<prosody volume='+100%' rate='normal'>{userName}! Needs! Help! This is an EMERGENCY</prosody>"

Name Speak : Pat : "Pat the Patient Assistant would now send an emergency alert, sound an alarm, keep engaged with the patient, and send updated alerts to the caregiver."

Name Speak : Pat : "Pat test completed. Say start again to start again?"
voice_input{askReturnValue}
if {askReturnValue} == "start again":
Name Speak : Pat : "</speak>Pat is restarting. Thanks again."
Goto: StartUp

Name Speak : Pat : "Pat exiting. Thanks again for helping test my skills."
exit

# ========== Subroutines

@ASK
# The ASK subroutine speaks the askPrompt and waits for a response. If the response is a command to Pat to perform an action, then the request is effected and Pat continues waiting for a response, otherwise, the response is returned to the caller in the askReturnValue.
# Input parameters: askPrompt, returnLabel and timeOutReturnLabel
# Result parameter: askReturnValue

### Name Speak : Pat : "Ask 1 Starting"
if {askPrompt}:
Name Speak : Pat : " {askPrompt} "
### Name Speak : Pat : "Ask 2 Starting ask subroutine"
voice_input {askReturnValue}
### Name Speak : Pat : "Ask 3 got input"
if {askReturnValue} IN {exitList[*]}:
Name Speak : Pat : "Say yes to confirm exiting Pat, the Neon AI Patient Assistant"
voice_input{askReturnValue}
if {askReturnValue} IN {yesList[*]}:
Name Speak : Pat : "Pat, the Neon AI Patient Assistant, signing off"
exit
else
goto: ASK
### Name Speak : Pat : "Ask 4 not cancel command {askReturnValue}"
if {askReturnValue} IN {heyPatList[*]}:
Name Speak : Pat : "<prosody {customProsody}> {userName}, Pat the AI Patient Assistant demo here. I'm listening all the time but I don't <phoneme alphabet=”x-sampa” ph=”rikord”>record</phoneme> everything you say. I only make recordings of calls for help or in an emergency. </prosody>"
# Note - Disambiguation for the pronunciations of "record": <phoneme alphabet=”x-sampa” ph=”rikord”>record</phoneme> Verb as in “I record everything you say” vs. Noun as in "Make a record of the conversation".
Name Speak : Pat : "The time is"
Execute : "Neon what time is it"
if {falseAlarmCount} != 0:
Name Speak : Pat : "The false alarm count is {falseAlarmCount}!"
goto : ASK
### Name Speak : Pat : "Ask 5 About to return to {returnLabel}"
Goto: {returnLabel}


@TIMEOUT
Goto: {timeoutReturnLabel}
Richard richard@neon.ai
81 Star/flag Script Upload: Submission #81 Lock Script Upload: Submission #81 Add notes to Script Upload: Submission #81 Fri, 02/07/2020 - 17:29 imedqo 73.109.151.117 Test SSML Demo of different ssml speech options available Script: "Test SSML"

Variable: input = ""
Neon Speak: "Hi. I can put a <break time="300ms"/>break in my speech, or I can <emphasis level="strong">emphasize</emphasis> a word."
Neon Speak: I know that W3C is <sub alias="the World Wide Web Consortium">W3C</sub>
Neon Speak: "<prosody volume="+6dB">I can be loud, </prosody><prosody volume="-6dB">or I can be quiet.</prosody>"
Neon Speak: "<prosody rate="x-fast">I can talk very quickly, </prosody><prosody rate="fast">or a little faster, </prosody><prosody rate="slow">or talk slowly, </prosody><prosody rate="x-slow">or talk much slower</prosody>"
Neon Speak: "<prosody pitch="x-high">I can make my voice much higher, </prosody><prosody pitch="high">or just a little higher, </prosody><prosody pitch="low">or lower, </prosody>"<prosody pitch="x-low">or much lower</prosody>"
Neon Speak: "I can speak 2/7 as <say-as interpret-as="date" format="md">2/7</say-as>, or <say-as interpret-as="characters">2/7</say-as>"
Neon Speak: "I can spell out words and a 3 digit number <say-as interpret-as="characters">words and 321</say-as>."
Name Speak: Nobody: "Or I can speak as someone else."
Name Speak: Fast Famale: "<prosody volume="+6dB" rate="x-fast" pitch="x-high">I can be loud, fast, and high</prosody>"
Name Speak: Slow Male, en-us, male: "<prosody volume="-2dB" rate="x-slow" pitch="x-low">I can be quiet, slow, and deep</prosody>"

Exit
Daniel McKnight daniel@neongecko.com
106 Star/flag Script Upload: Submission #106 Lock Script Upload: Submission #106 Add notes to Script Upload: Submission #106 Tue, 12/14/2021 - 18:17 Anonymous 76.121.181.179 Testy Test Script: "Testy"
Variable: example
Variable: discard
Variable: whatisay
Variable: try
Neon Speak: "Teach me with an example."
Neon Speak: "Tell me something like this: when I say,,, jump,,, you say,,, how high."
voice_input(discard)
voice_input(whatisay)
voice_input(discard)
voice_input(whatyousay)
Neon Speak: "I think I got it."
Neon Speak: "Go ahead, try me."
voice_input(discard)
Neon Speak: "{whatyousay}"
LOOP Q1
Neon Speak: "Try me again, or say exit."
voice_input(try)
if {try} == "exit":
Exit
Neon Speak: "{whatyousay}"
#Execute: "{question}"
LOOP Q1 END
Exit
Elon Testing elon@neon.ai
57 Star/flag Script Upload: Submission #57 Lock Script Upload: Submission #57 Add notes to Script Upload: Submission #57 Tue, 11/19/2019 - 19:03 Anonymous 73.109.151.117 User Register Demo user register demo Script: "User Register Demo"
Variable: {full_name}: ""
Variable: {first_name}: ""
Variable: {last_name}: ""
Variable: {selection}: ""
Neon speak:
"Hello human. My full name is Neon Gecko Inc. Please call me Neon. Lets get started."
LOOP get_name
Neon speak: "Please tell me your full name or say exit"
voice_input{full_name}
Execute: "neon my name is {full_name}"
Neon speak: "Thank you."
Python: time.sleep(5)
Execute: "neon tell me my first name"
Execute: "neon tell me my last name"
LOOP change_name
Neon speak: "Is that correct? Say yes, no, change first name, change last name or exit"
voice_input{selection}
Case: {selection}
"yes"
Neon speak: "Okay"
Execute: "exit"
"no"
Neon speak: "Sorry. Please say name to try again"
LOOP get_name END
"change first name"
Neon speak: "Tell me your first name or say exit"
voice_input{first_name}
Execute: "neon my first name is {first_name}"
Execute: "neon tell me my first name"
LOOP change_name END
"change last name"
Neon speak: "Tell me your last name or say exit"
voice_input{last_name}
Execute: "neon my last name is {last_name}"
Execute: "neon tell me my last name"
LOOP change_name END
Exit
Daniel dainel@neongecko.com
54 Star/flag Script Upload: Submission #54 Lock Script Upload: Submission #54 Add notes to Script Upload: Submission #54 Tue, 11/19/2019 - 16:04 Anonymous 73.109.151.117 Variable Demo Demo script that can tell you about weather, time, or pupulation of a city. Script: "Variable Demo"
Language: "en-au female"
Variable: {location}: ""
Variable: {info_type}: time, weather, population
Neon speak:
"Say select_one{info_type} for world info"
voice_input{info_type}
Neon speak:
"What location would you like?"
voice_input{location}
Execute: "What is the {info_type} in {location}"
Exit
Daniel daniel@neongecko.com
67 Star/flag Script Upload: Submission #67 Lock Script Upload: Submission #67 Add notes to Script Upload: Submission #67 Wed, 12/04/2019 - 15:28 Anonymous 73.109.151.117 Weather Time Population Goto WTP script with added Goto examples to go to line and go to label Script: "Weather Time Population Goto"
Language: "en-au female"
Synonym: "Demo WTP Goto"
Variable: {response}: ""
Neon speak:
"Say 1 or World Times for world times"
"Say 2 or World Weather for world weather"
"Say 3 or World Populations for world populations"
voice_input{response}
Case {response}:
"1 or World Times"
Neon speak:
"Say A or Athens for Athens's time"
"Say B or Bombay for Bombay's time"
"Say S or Seattle for Seattle's time"
voice_input{response}
Case {response}:
"A or Athens"
Execute: "What time is it in Athens"
Goto: athens_weather
"B or Bombay"
Execute: "What time is it in Bombay"
"S or Seattle"
Execute: "What time is it in Seattle"
"2 or World Weather"
Neon speak:
"Say A or Athens for the weather in Athens"
"Say B or Bombay for the weather in Bombay"
"Say S or Seattle for the weather in Seattle"
voice_input{response}
Case {response}:
"A or Athens"
@athens_weather
Execute: "What is the weather in Athens"
Goto: 50
"B or Bombay"
Execute: "What is the weather in Bombay"
"S or Seattle"
Execute: "What is the weather in Seattle"
"3 or World Populations"
Neon speak:
"Say A or Athens for Athens's population"
"Say B or Bombay for Bombay's population"
"Say S or Seattle for Seattle's population"
voice_input{response}
Case {response}:
"A or Athens"
Execute: "What is the population of Athens"
"B or Bombay"
Execute: "What is the population of Bombay"
"S or Seattle"
Execute: "What is the population of Seattle"
Exit
Daniel daniel@neongecko.com
85 Star/flag Script Upload: Submission #85 Lock Script Upload: Submission #85 Add notes to Script Upload: Submission #85 Fri, 05/08/2020 - 13:59 Anonymous 50.35.82.111 Website Navigator Timeout Website navigator with an added reminder prompt if no response is heard after 10 seconds Script: "Website Navigator Timeout"
Variable: {options}: table_scrape(https://neongecko.com)
Variable: {chosen}: ""
Timeout: 10 instructions
#Timeout: 10 7
@instructions
Neon speak: "Please tell me what Neon AI web page you'd like to see. You can say things like random{options} or say quit or exit."
LOOP WN
voice_input{chosen}
# Neon speak: "navigating to {chosen}"
if {chosen} == "quit":
Neon speak: "say pause to turn off the mic or say exit to close the window."
voice_input{chosen}
if {chosen} == "pause":
# execute skill to turn off mic
Execute: "neon mute microphone"
else:
if closest{chosen,options}:
Execute: "neon browse to closest{chosen,options}"
else:
Neon speak: "Page not found"
Neon speak: "Tell me another Neon AI web page you'd like to see or say quit."
LOOP WN END
Exit
Daniel McKnight daniel@neongecko.com