User ID for request validation and usage tracking
Query against an existing AI context using its responseId.
Push mood/sentiment data to an AI context.
const { askWithResponseId, updateMoodWithResponseId } = useLiveContext(roomName, userId);
const { responseId } = useRecording();
// Query the AI context
const result = await askWithResponseId(responseId, 'Summarize the discussion');
// Push mood data
await updateMoodWithResponseId(responseId, [
{ participant: 'user@example.com', sentiment: 'positive', confidence: 0.85 }
]);
Hook for AI context operations using the bot-created OpenAI Responses API context.