fix: prompt voice agent to introduce itself after connection
Some checks failed
Build & Push / build-and-push (push) Failing after 1m31s
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:
@@ -337,6 +337,13 @@ export default function VoiceAgentProvider({ locale, children }: VoiceAgentProvi
|
||||
clearTimeout(setupTimeout);
|
||||
setStatus('active');
|
||||
trackAmplitude();
|
||||
// Prompt the agent to introduce itself
|
||||
ws.send(JSON.stringify({
|
||||
clientContent: {
|
||||
turns: [{ role: 'user', parts: [{ text: 'Hello, please introduce yourself.' }] }],
|
||||
turnComplete: true,
|
||||
},
|
||||
}));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user