fix: prompt voice agent to introduce itself after connection
Some checks failed
Build & Push / build-and-push (push) Failing after 1m31s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-28 14:27:35 +01:00
parent 0a20d1e243
commit edb765e0e1

View File

@@ -337,6 +337,13 @@ export default function VoiceAgentProvider({ locale, children }: VoiceAgentProvi
clearTimeout(setupTimeout); clearTimeout(setupTimeout);
setStatus('active'); setStatus('active');
trackAmplitude(); trackAmplitude();
// Prompt the agent to introduce itself
ws.send(JSON.stringify({
clientContent: {
turns: [{ role: 'user', parts: [{ text: 'Hello, please introduce yourself.' }] }],
turnComplete: true,
},
}));
return; return;
} }