Skip to main content
Lauren - Virtual Interviewer

Overview

The Virtual Interviewer use case leverages Lauren to conduct engaging and scalable candidate screening. This digital human can ask relevant interview questions, assess candidate responses, and provide a consistent interview experience for all applicants.

Use Case Benefits

  • Scalable Screening: Interview multiple candidates simultaneously without scheduling constraints
  • Consistent Experience: Every candidate receives the same professional interview format
  • Time Efficiency: Automate initial screening rounds, allowing HR teams to focus on top candidates
  • 24/7 Availability: Candidates can interview at their convenience

Implementation

const NavTalkMessageType = Object.freeze({
    CONNECTED_SUCCESS: "conversation.connected.success",
    REALTIME_SESSION_CREATED: "realtime.session.created",
    REALTIME_SESSION_UPDATED: "realtime.session.updated",
    // ... other event types
});

const websocketUrl = 'wss://transfer.navtalk.ai/wss/v2/realtime-chat';
const license = 'your-license-key';
const characterName = 'navtalk.Lauren';

const websocketUrlWithParams = `${websocketUrl}?license=${encodeURIComponent(license)}&name=${encodeURIComponent(characterName)}`;
const socket = new WebSocket(websocketUrlWithParams);

// Configure Lauren as a professional interviewer
socket.onmessage = (event) => {
  if (typeof event.data === 'string') {
    const data = JSON.parse(event.data);
    const nav_data = data.data;
    
    if (data.type === NavTalkMessageType.REALTIME_SESSION_CREATED) {
      // Send conversation history if needed
      // Session configuration (instructions, voice, model) is passed through URL parameters
    }
    
    if (data.type === NavTalkMessageType.REALTIME_SESSION_UPDATED) {
      // Session ready, start sending audio input
    }
  }
};
Customize the interview questions by adjusting the instructions field to match specific job requirements and company culture.