Your /talk page is ready to work with Vapi AI for voice interviews, but you need to configure the environment variables.
- Go to Vapi Dashboard
- Sign up or log in
- Get your Public Key from the dashboard
- Create an Assistant and get its ID
Create a .env.local file in your project root:
# Vapi AI Configuration
NEXT_PUBLIC_VAPI_PUBLIC_KEY=sk_live_your_actual_public_key_here
NEXT_PUBLIC_VAPI_ASSISTANT=your_actual_assistant_id_here
# Your existing Firebase config
FIREBASE_PROJECT_ID=preppii-191fd
FIREBASE_CLIENT_EMAIL=your_firebase_client_email
FIREBASE_PRIVATE_KEY="your_firebase_private_key"
- Visit
/vapi-testto check if your environment variables are set correctly - Visit
/talkto start an interview
-
"Configuration Error": Missing environment variables
- Solution: Create
.env.localfile with proper values
- Solution: Create
-
"Initialization Failed": Invalid credentials
- Solution: Double-check your Vapi public key and assistant ID
-
No response from assistant: Assistant not configured properly
- Solution: Check your assistant setup in Vapi dashboard
/vapi-test- Test your Vapi configuration- Check browser console for detailed error messages
- User clicks "Start an Interview" → navigates to
/talk - Vapi initializes with your credentials
- Voice call starts with your AI assistant
- Real-time transcription shows in two panels:
- Left: Assistant's responses
- Right: User's speech
- Interview summary saved to localStorage when finished
- ✅ Real-time voice transcription
- ✅ Dual transcript display (user + assistant)
- ✅ Interview summary saving
- ✅ Error handling and status updates
- ✅ Proper cleanup on page exit
- Set up your Vapi credentials
- Configure your AI assistant with interview questions
- Test the interview flow
- Customize assistant responses for your use case