Repository on GitHub
Source, README, and issue tracker for the demo application.
JavaScript SDK
The demo uses the official Vatel SDK from npm.
Session token
Short-lived credentials for browser or server-initiated sessions.
Calls API
List calls, fetch a call, and download recordings from your organization.
What you get
- Agents — Create and edit voice agents (prompt, voice, model).
- Calls — Start a live voice session from an agent page.
- History — List past calls, open a call for transcript and recording playback.
Prerequisites
- Node.js 20 or newer
- npm
- A Vatel API key from your Vatel account
Setup
Configure the API key
Copy the example environment file and set your key:In
.env.local, set VATEL_API_KEY to your organization API key. The template file defines a single empty VATEL_API_KEY= line you should fill in.Run locally
VATEL_API_KEY, save .env.local, and restart the dev server.Quality checks
From the project root:Tech stack
Next.js, React, TypeScript, Tailwind, and the @vatel/sdk package. Use this repo as a starting point for your own branded console or internal tools, then swap copy, styling, and routing to match your product.Related examples
If you only need a minimal Next.js walkthrough (server action forPOST /v1/session-token, WebSocket session, and mic streaming without the full app shell), see Next.js. For WebRTC in the browser with WebRTCSession, see WebRTC (browser).
