Architecture
Use the same pipeline as any LemonSlice voice agent: speech-to-text, your LLM (with the interview guide), text-to-speech, then LemonSlice for video. Start from the quickstart, or add the avatar to an existing agent with LiveKit, Pipecat, Agora or a WebSocket. LemonSlice works with any LLM and any text-to-speech voice. To run a study in another language, pick a speech-to-text model, LLM and TTS voice that all support it.Choose a model
See pricing for plan details.
Design the interview flow
- Interview guide. Give your LLM the questions, the rules for follow-ups and when to end. For hiring, use the same structured questions for every candidate.
- Listening cues. With CWM-1, set
action_engine="natural"and, on LiveKit, publish the participant’s speaking state so the interviewer reacts while it listens. See CWM-1. - Tool calling. Use tool calling in your agent to move to the next section, show a stimulus (a concept, a design, a task) on screen, or end the interview. See the tool calling example.
Save and analyze transcripts
Your agent already sees the full transcript. Store it in your own system, then score or summarize it with your LLM against your rubric or research questions. For widget sessions, use the call metadata API to list and look up calls.Keep turn-taking natural
Long pauses make participants uneasy, and an interviewer that cuts in too early stops them from finishing their thought. Budget latency across the whole pipeline, not just the avatar: see Budget your latency. Tune your voice agent’s end-of-turn detection so participants have time to think.Plan for session length and cost
- Check the idle and GPU timeouts before launch. Participants may pause to think; raise the idle timeout if needed. Contact support@lemonslice.com for interviews longer than the 30-minute default GPU timeout.
- When the participant leaves, end the LemonSlice session yourself instead of waiting for the idle timeout: disconnect the room or terminate the session on LiveKit, call the leave API on Agora, send
terminateon a WebSocket, or send aforce-endcontrol event for hosted Daily sessions.
Fairness, consent and disclosure
- Tell participants they are talking to an AI, and how their recording and transcript will be used.
- For hiring, score against clear criteria, have people review the results, and follow the rules that apply to automated hiring tools where you operate.
- For research, prompt the interviewer to ask open, neutral follow-ups rather than leading questions.

