Hi, I use agents with openai realtime models for v...
# ask-ai
b
Hi, I use agents with openai realtime models for video handling also, but the trigger seems to be only the audio. Is there a way to handle video trigger? Like if I raise an hand I trigger a response?
t
Thanks for reaching out, Antonio. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — you're asking whether a visual cue (e.g., raising a hand) can trigger an agent response instead of audio. Short answer: not automatically — but you can make it work with custom logic. What’s available • Video input is accepted as context by the realtime models, but video does not by itself trigger replies. Turn detection is audio-based (VAD/semantic VAD), so frames are used only when a user turn is detected. • There is no built-in event that fires a model response from a visual-only cue. How you can implement a video-triggered response 1. Switch the agent session to manual turn control by setting
turn_detection="manual"
on the
AgentSession
. 2. Run a realtime vision/pose detector on the user’s video track (client-side or server-side) to detect the gesture (e.g., hand raise). 3. When your detector sees the gesture, programmatically start/commit a user turn (for example, call
session.commit_user_turn()
or inject a synthetic user message) so the agent processes the event and responds. 4. Optionally include the detected frame or a short description in the message/context so the agent knows what happened. Example pattern (conceptual)
Copy code
# pseudo-code
if detect_hand_raise(frame):
    # add a message or commit the user turn so the agent responds
    session.commit_user_turn()
Limitations to keep in mind • The realtime API will not natively convert visual events into turns; you must detect the gesture and trigger the turn yourself. • Latency depends on your vision model and where you run it (client vs server). If you want, tell me: • Where you plan to run the gesture detection (browser, server, or edge) • Which SDK/language you’re using I can then suggest specific libraries (pose estimators) and show a small code example for your environment. Sources: Video | LiveKit Documentation | Turns overview | LiveKit Documentation, with interactive elements
b
what about google realtime models proactivity?
t
You're asking whether Google realtime (Gemini Live) models can proactively trigger responses from visual cues (e.g., hand raise). Short answer: no native video‑based proactivity — but there are options. What’s supported • Gemini Live supports proactive behavior for audio in some native audio models. • Gemini Live accepts live video as context, but video does not itself trigger model responses. What that means for visual triggers • There is no built‑in mechanism to have the model react solely to a visual event (like a hand raise). • To get a video-triggered response you must detect the gesture with your own vision logic (client or server) and then programmatically start/commit a user turn (for example, use
turn_detection="manual"
on the
AgentSession
and call
session.commit_user_turn()
or inject a synthetic user message). The model will then respond using the provided context (you can include the detected event or a frame). Limitations to note • Gemini 3.1 realtime preview models do not support proactive audio/affective dialog features. • Latency and reliability depend on where and how you run the vision detector. If you want, tell me: • Which SDK/language and environment (browser, server, edge) you’re using, and whether you prefer a client- or server-side detector — I can suggest vision libraries and a small code example to trigger the agent. Sources: Gemini Live API plugin | LiveKit Documentation | Video | LiveKit Documentation, with interactive elements