Your
agent can listen.Now give it a face.
Start building Deepgram listens. Your chosen voice responds. Cara-4.1 Express brings the conversation to life with natural facial expression and lip sync, streamed through the Anam JavaScript SDK.
See it for yourself
Voice agent · Deepgram STT Anam video agent Reveal the face
Talk to the agent first
KEEP EXPLORING
Build more with Anam + Deepgram
DEEPGRAM SPEECH-TO-TEXT · CODING AGENTS
Build your own Deepgram video agent
Copy this prompt to add Anam to an existing Deepgram app or start a new one.
# Add Anam to an existing or new Deepgram app
Inspect this repository before changing code: identify its framework/runtime, package manager, lockfile, agent entrypoint and private server configuration. If a Deepgram integration exists, extend it in place. Otherwise, use the documented starter below to create the missing integration without overwriting unrelated files. Infer runtime/provider choices from the user's request and repository; ask only when a material choice cannot be inferred.
Before implementing, fetch https://anam.ai/docs/personas/session/voice-detection and the relevant partner setup references below. Use https://anam.ai/docs/llms.txt to discover additional Anam pages as needed. Cross-check installed SDK types/source when live docs disagree with the package version. Do not invent APIs or silently combine incompatible examples. If sources are unavailable or conflict, report what is unverified.
Set the Anam avatar model to "cara-4.1-express" in every configuration. Do not inherit a catalog default or fall back to another model.
The reference architecture is: Choose Deepgram as the speech-to-text provider in your Anam persona. Your server creates a session token and the Anam JavaScript SDK streams the conversation to your app. Your selected LLM and text-to-speech voice provide the replies.
Integration-specific setup:
- Use Anam's full-pipeline JavaScript SDK flow. Read https://anam.ai/docs/personas/session/voice-detection and https://anam.ai/docs/javascript-sdk/quickstart.
- Set personaConfig.voiceDetectionOptions.sttProvider to "deepgram" when minting the session token. Set languageCode explicitly to a Deepgram-supported language (the example uses "en") so organization language defaults cannot override the provider selection.
- Deepgram is the speech-to-text provider only. Keep the selected Anam voiceId for text-to-speech and llmId for responses; this is not the Deepgram Voice Agent API. Do not enable audio passthrough or create a separate Deepgram browser connection.
- Create a private POST /api/anam-session route using ANAM_API_KEY and server-configured persona fields. Return only the session token to the browser, then use createClient and streamToVideoElement from @anam-ai/js-sdk. Stop streaming on stop/unmount.
Requirements:
- Preserve existing providers, tools, system prompts and business logic within the selected documented integration mode. Do not replace the app's architecture or write persistent agent-rules files without a user request.
- Keep the Anam API key in private server-side configuration. Never expose or request it in client code or chat.
- Preserve compatible installed versions and the project's package manager. For a fresh project, resolve current compatible stable releases and record them in the lockfile; do not use remembered versions or force unrelated upgrades.
- Implement the missing imports, environment loading, backend/agent startup, session/room authentication and frontend video rendering required by the chosen starter. The fragments below assume configured providers and entrypoint variables; do not copy them as standalone programs.
- When extending an existing voice app, preserve its voice-only path when Anam is not configured and log a clear warning. Missing optional avatar config must not prevent the ordinary voice session from starting.
- Check types/build and relevant tests. When credentials are available, verify visible synchronized video, one audio output, working tools/interruptions and stop/disconnect cleanup. State explicitly which live checks could not run.
- Summarize changed files, placeholder-only environment variables, exact install/run commands, package versions and verification results. Never fabricate credentials or claim an unrun check passed.
Reference fragments — use only the matching runtime/mode:
## Server-side
```javascript
// Inside POST /api/anam-session. Keep ANAM_API_KEY on the server.
// avatarId, voiceId, llmId, and systemPrompt come from server config.
// Use Anam catalog IDs for your chosen avatar, TTS voice, and LLM.
const response = await fetch("https://api.anam.ai/v1/auth/session-token", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ANAM_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
personaConfig: {
name: "Deepgram STT avatar",
avatarModel: "cara-4.1-express",
avatarId,
voiceId,
llmId,
systemPrompt,
languageCode: "en",
voiceDetectionOptions: {
sttProvider: "deepgram",
},
},
}),
});
if (!response.ok) throw new Error("Could not create Anam session");
const { sessionToken } = await response.json();
// Return { sessionToken } as JSON from your /api/anam-session route.
```
## Client-side
```javascript
// Browser: use the Anam JavaScript SDK for microphone, audio, and video.
import { createClient } from "@anam-ai/js-sdk";
const response = await fetch("/api/anam-session", { method: "POST" });
if (!response.ok) throw new Error("Could not start avatar session");
const { sessionToken } = await response.json();
const client = createClient(sessionToken);
// Requires <video id="anam-video" autoplay playsinline></video>.
await client.streamToVideoElement("anam-video");
// On stop/unmount: await client.stopStreaming().
```
If live docs differ from these fragments, check the installed implementation and explain the version-specific correction before using it.Meet Cara 4.1 Express
The new standard for real-time AI avatars. More expressive. More controllable. Faster to respond. And ranked #1 in the market.
Add a face to your Deepgram STT agent.
Bring Cara-4.1 Express to your app with natural facial expression and lip sync that follows your agent's voice.