Add person-aware favorites and multitenant state scaffolding
This commit is contained in:
@@ -219,6 +219,18 @@ internal static class ChitchatStateMachine
|
||||
"especially yours",
|
||||
"steady flow of electricity",
|
||||
"you bet i do"));
|
||||
case "robot_favorite_color":
|
||||
return BuildScriptedResponseDecision(
|
||||
"robot_favorite_color",
|
||||
"Blue.");
|
||||
case "robot_favorite_food":
|
||||
return BuildScriptedResponseDecision(
|
||||
"robot_favorite_food",
|
||||
"Pizza. It is hard to argue with pizza.");
|
||||
case "robot_favorite_music":
|
||||
return BuildScriptedResponseDecision(
|
||||
"robot_favorite_music",
|
||||
"Something upbeat with a good rhythm.");
|
||||
case "robot_nickname":
|
||||
return BuildScriptedResponseDecision(
|
||||
"robot_nickname",
|
||||
|
||||
@@ -2177,6 +2177,48 @@ public sealed class JiboInteractionService(
|
||||
return "robot_likes_being_jibo";
|
||||
}
|
||||
|
||||
if (MatchesAny(
|
||||
loweredTranscript,
|
||||
"what is your favorite color",
|
||||
"what's your favorite color",
|
||||
"what s your favorite color",
|
||||
"what is your favourite color",
|
||||
"what's your favourite color",
|
||||
"what s your favourite color",
|
||||
"what color do you like",
|
||||
"what colour do you like"))
|
||||
{
|
||||
return "robot_favorite_color";
|
||||
}
|
||||
|
||||
if (MatchesAny(
|
||||
loweredTranscript,
|
||||
"what is your favorite food",
|
||||
"what's your favorite food",
|
||||
"what s your favorite food",
|
||||
"what is your favourite food",
|
||||
"what's your favourite food",
|
||||
"what s your favourite food",
|
||||
"what food do you like",
|
||||
"what kind of food do you like"))
|
||||
{
|
||||
return "robot_favorite_food";
|
||||
}
|
||||
|
||||
if (MatchesAny(
|
||||
loweredTranscript,
|
||||
"what is your favorite music",
|
||||
"what's your favorite music",
|
||||
"what s your favorite music",
|
||||
"what is your favourite music",
|
||||
"what's your favourite music",
|
||||
"what s your favourite music",
|
||||
"what music do you like",
|
||||
"what kind of music do you like"))
|
||||
{
|
||||
return "robot_favorite_music";
|
||||
}
|
||||
|
||||
if (MatchesAny(
|
||||
loweredTranscript,
|
||||
"are there others like you",
|
||||
|
||||
Reference in New Issue
Block a user