Voice Agent Demo using Deepgram's API with Node.js backend and web frontend.
- Deepgram API Key (sign up for free)
- Node.js 24.0.0+
- pnpm 10.0.0+
Note: This project uses strict supply chain security measures. npm and yarn will NOT work. See SECURITY.md for details.
- Install dependencies
# Option 1: Use the helper script (recommended)
pnpm run install:all
# Option 2: Manual two-step install
pnpm install
cd frontend && pnpm install && cd ..Note: Due to security settings (ignore-scripts=true), frontend dependencies must be installed separately. The install:all script handles both steps. See SECURITY.md for details.
- Set your API key
Create a .env file:
DEEPGRAM_API_KEY=your_api_key_here- Run the app
Development mode (with hot reload):
pnpm devProduction mode (build and serve):
pnpm build
pnpm start- Establishes a WebSocket connection to
/agent/converseendpoint - Proxies bidirectional communication between your browser and Deepgram's Agent API
- Captures microphone audio and streams it to the voice agent
- Receives and plays back the agent's audio responses
- Displays real-time conversation transcripts showing both user and agent messages
- Open an issue in this repository
- Join the Deepgram Github Discussions Community
- Join the Deepgram Discord Community
See our Contributing Guidelines to learn about contributing to this project.
This project follows the Deepgram Code of Conduct.
For security policy and procedures, see our Security Policy.
MIT - See LICENSE