transitions = {
'state': 'start',
'`What can I do for you?`': {
'[{time, clock}]': {
'`It\'s 3PM.`': 'end'
},
'[{weather, forecast}]': {
'`It\'s sunny outside`': 'end'
},
'[play, raining tacos]': {
'`It\'s raining tacos. From out of the sky ...`': 'end'
},
'error': {
'`Sorry, I didn\'t understand you.`': 'start'
}
}
}#13: names the state as play_raining_tacos.S: What can I do for you?
U: What time is it now?
S: It's 3PM.S: What can I do for you?
U: What's the weather like?
S: It's sunny outsideS: What can I do for you?
U: Play rainy taco
S: Sorry, I didn't understand you. What can I do for you?
U: Play raining tacos
S: It's raining tacos. From out of the sky ...transitions = {
'state': 'start',
'`What can I do for you?`': {
'[{time, clock}]': {
'state': 'time',
'`It\'s 3PM.`': 'end'
},
'[{weather, forecast}]': {
'state': 'weather',
'`It\'s sunny outside`': 'end'
},
'[play, raining tacos]': {
'state': 'play_raining_tacos',
'`It\'s raining tacos. From out of the sky ...`': 'end'
},
'error': {
'`Sorry, I didn\'t understand you.`': 'play_raining_tacos'
}
}
}S: What can I do for you?
U: Play rainy taco
S: Sorry, I didn't understand you. It's raining tacos. From out of the sky ...transitions = {
'state': 'start',
'`What can I do for you?`': {
'[{time, clock}]': {
'state': 'time',
'`It\'s 3PM.`': 'start'
},
'[{weather, forecast}]': {
'state': 'weather',
'`It\'s sunny outside`': 'start'
},
'[play, raining tacos]': {
'state': 'play_raining_tacos',
'`It\'s raining tacos. From out of the sky ...`': 'start'
},
'error': {
'`Sorry, I didn\'t understand you.`': 'start'
},
'[exit]': {
'state': 'exit',
'`Goodbye!`': 'end'
}
}
}S: What can I do for you?
U: time
S: It's 3PM. What can I do for you?
U: weather
S: It's sunny outside What can I do for you?
U: play raining tacos
S: It's raining tacos. From out of the sky ... What can I do for you?
U: exit
S: Goodbye!