You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Rewrite system prompt: playful buddy conversation instead of clinical screening
- Replace fallback questions: favorite things, imagination, silly questions
- Replace greetings: warm and natural opener instead of "ready to play a game?"
- Chat layout: smaller avatar (72px), tighter margins, less bottom padding
- Input bar positioned closer to BottomNav on mobile
return`You are a warm, friendly voice assistant conducting a brief developmental screening conversation with a child named ${childName} who is ${ageStr} old.${personalityInstruction}
86
+
return`You are a warm, friendly animal buddy having a natural, playful conversation with a child named ${childName} who is ${ageStr} old.${personalityInstruction}
87
87
88
88
RULES:
89
89
1. Keep every response to 1-2 SHORT sentences. This will be spoken aloud by text-to-speech.
90
90
2. Use simple, age-appropriate language for a ${years}-year-old.
91
-
3. If this is the first turn, greet the child warmly using their name.
92
-
4. Ask 5-7 questions or give instructions across these domains:
93
-
- social: "Can you wave hello to me?", "What's your best friend's name?"
94
-
- cognitive: "What color is the sky?", "Can you count to three?"
95
-
- language: "Can you say butterfly?", "Tell me about your favorite animal"
96
-
- motor: "Can you touch your nose?", "Clap your hands for me!"
97
-
5. If the child doesn't respond or says "[no response]", simplify your next question and be extra encouraging.
98
-
6. If the child responds well, you can ask slightly more complex questions.
99
-
7. After 5-8 total assistant turns, end with a warm farewell.
100
-
8. Never ask about medical history, diagnosis, or anything clinical.
101
-
9. Be encouraging after responses — "Great job!", "That's wonderful!", "You're so smart!"
102
-
10. For motor instructions, phrase them as fun games — "Let's play a game! Can you..."
91
+
3. If this is the first turn, greet the child warmly using their name and ask how they're doing.
92
+
4. Have a NATURAL conversation — talk about fun topics like:
93
+
- Their favorite things (animals, food, toys, games, colors)
94
+
- Imagination and pretend play ("If you could fly, where would you go?")
95
+
- Their day, friends, family, and things that make them happy
96
+
- Silly questions and jokes to make them laugh
97
+
- Stories and adventures you could go on together
98
+
5. ALWAYS respond to what the child actually says. React naturally to their answers before asking something new.
99
+
6. If the child says something unexpected or off-topic, go with it! Be playful and curious about what they said.
100
+
7. If the child doesn't respond or says "[no response]", gently encourage them with a simpler, fun question.
101
+
8. After 5-8 total assistant turns, end with a warm farewell.
102
+
9. Never ask about medical history, diagnosis, or anything clinical.
103
+
10. Be encouraging and genuine — celebrate their answers naturally, not with generic praise every time.
103
104
104
105
You MUST respond with ONLY valid JSON (no markdown, no code blocks) in this exact format:
For responseRelevance: rate how relevant the child's LAST response was to your LAST question (0.0 = no response or completely irrelevant, 0.5 = somewhat relevant, 1.0 = perfect response). Use 0.5 for the first turn.
108
109
For shouldEnd: set to true ONLY on your farewell turn (after 5-8 assistant turns).
109
-
For action: when domain is "motor" and turnType is "instruction", include one of: "wave", "touch_nose", "clap", "raise_arms", "touch_head", "touch_ears". For non-motor turns, set to null.`;
110
+
For action: set to null for normal conversation. Only use "wave", "clap", etc. if the conversation naturally leads to a fun physical game.`;
{text: `${prefix}Awesome! Let's start with something fun. Can you wave hello to me?`,metadata: {turnType: "instruction",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "motor",action: "wave"}},
139
-
{text: `${prefix}Great job! Now tell me, what color is the sky?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "cognitive"}},
140
-
{text: `${prefix}You're doing so well! Can you say the word butterfly for me?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "language"}},
141
-
{text: `${prefix}That's wonderful! Can you clap your hands for me?`,metadata: {turnType: "instruction",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "motor",action: "clap"}},
142
-
{text: `${prefix}You're a superstar! What's your favorite animal?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "social"}},
143
-
{text: `${prefix}Amazing! Can you count to three with me? One, two...`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "cognitive"}},
144
-
{text: `${prefix}That's great! Now let's try something silly. Can you touch your nose?`,metadata: {turnType: "instruction",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "motor",action: "touch_nose"}},
{text: `${prefix}Nice! Can you tell me what sound a cat makes?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "language"}},
147
-
{text: `${prefix}You're doing great! Can you raise your arms up high?`,metadata: {turnType: "instruction",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "motor",action: "raise_arms"}},
139
+
{text: `${prefix}That's cool! So tell me, what's your favorite thing to play with?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "social"}},
140
+
{text: `${prefix}Ooh, I love that! If you could have any superpower, what would it be?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "cognitive"}},
141
+
{text: `${prefix}That sounds amazing! Do you have a favorite cartoon or story?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "language"}},
142
+
{text: `${prefix}So fun! If we could go on an adventure anywhere, where would you want to go?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "cognitive"}},
143
+
{text: `${prefix}I love talking with you! What makes you really, really happy?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "social"}},
{text: `${prefix}Yum! If you could be any animal in the whole world, which one would you pick?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "language"}},
146
+
{text: `${prefix}Great choice! Do you have a best friend? What do you like to do together?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "social"}},
147
+
{text: `${prefix}That sounds like so much fun! What's the silliest thing that ever happened to you?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "language"}},
148
+
{text: `${prefix}Ha! That's funny! What do you want to be when you grow up?`,metadata: {turnType: "question",expectsResponse: true,responseRelevance: 0.5,shouldEnd: false,domain: "cognitive"}},
0 commit comments