Documentation
Official SDK, API, and guide pages for the technologies this assistant uses.
Providers
LiveKit
guide LiveKit overview
The web demo checks the microphone, camera, and speakers before joining a room. It publishes those devices and dispatches the chosen production agent.
Production agent names come from CloudAgent ListAgents on agents.livekit.cloud. The demo dispatches the configured agent.
sdk LiveKit server SDK for JavaScript
Room tokens and agent dispatch use livekit-server-sdk with LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET. The dispatched agent name is LIVEKIT_AGENT, or LIVEKIT_LOCAL_AGENT while pnpm dev runs the local worker, and each join creates its own room.
Gemini
guide Gemini API documentation
createGeminiClient builds a Google Gen AI client when GEMINI_API_KEY is set.
sdk Google Gen AI JavaScript SDK
The Gemini integration imports GoogleGenAI from @google/genai.
The client talks to the Gemini API with the key from GEMINI_API_KEY.
OpenRouter
guide OpenRouter quickstart
createOpenRouterClient points the OpenAI SDK at OpenRouter. Requests use OPENROUTER_API_KEY.
sdk OpenRouter with the OpenAI SDK
The integration constructs the OpenAI client with OpenRouter's base URL.
Calls go to https://openrouter.ai/api/v1 through the OpenAI-compatible API.
Synthesia
guide Synthesia interactive avatars
The assistant worker attaches a Synthesia avatar to its voice session so the avatar lip-syncs the agent's playback. The web demo shows that video only after the microphone, camera, and speakers pass.
AvatarSession starts before the voice session and lip-syncs only the agent's playback. The avatar id comes from SYNTHESIA_INTERACTIVE_AVATAR_ID.
MongoDB
guide MongoDB Node.js driver documentation
getDb connects with MONGODB_URI and selects MONGODB_DB, or the assistant database when that variable is unset.
sdk MongoDB Node.js driver API
The database package uses MongoClient from the mongodb driver.
Twilio
guide Twilio documentation
createTwilioClient builds a Twilio REST client from TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN.
The integration imports the twilio package and returns its client.
The Twilio client calls Twilio's HTTP API with the account credentials.
Resend
guide Resend documentation
createResendClient builds the Resend SDK client from RESEND_API_KEY.
sdk Send email with the Resend Node.js SDK
The integration returns a Resend client. Sending mail uses that SDK.
The Resend SDK calls the Resend HTTP API with RESEND_API_KEY.
CharmHealth
guide CharmHealth API program
CharmHealth requests use a stored OAuth refresh grant and CHARM_API_BASE_URL. The API exposes the OAuth start and callback routes.
The public CharmHealth developer API is the FHIR API. This repo calls CHARM_API_BASE_URL with a bearer token.
Availity
guide Availity developer getting started
Availity requests use the client-credentials grant against AVAILITY_TOKEN_URL. Eligibility reads configurations, then coverages, for providers enabled in the environment.
The Availity client sends a bearer token from the client-credentials grant. Coverage calls use the configurations and coverages paths from the environment.
GitHub
guide GitHub REST API getting started
createGitHubClient builds an Octokit client from a stored OAuth token or GITHUB_TOKEN. Kara Health answers read the repository named by the knowledge environment variables and stay in memory.
sdk Octokit REST.js
The GitHub integration uses @octokit/rest.
api GitHub REST API
Octokit calls the GitHub REST API with the OAuth token or GITHUB_TOKEN. Knowledge topics use the repository contents endpoint.
Platform
LiveKit Agents
guide Voice AI quickstart
The assistant worker runs a voice AgentSession with LiveKit Inference and attaches the Synthesia avatar before the session starts. pnpm dev starts it locally under LIVEKIT_LOCAL_AGENT, which defaults to LIVEKIT_AGENT with a -local suffix.
MCP TypeScript SDK
guide Model Context Protocol introduction
The API serves a stateless Streamable HTTP MCP server at POST /mcp. Every defined tool returns underdevelopment.
The MCP route uses McpServer and StreamableHTTPServerTransport from @modelcontextprotocol/sdk.
The server speaks the Model Context Protocol over Streamable HTTP.
Next.js
guide Next.js documentation
The web app is a Next.js App Router application. It shows API health, the LiveKit demo, and this catalog.
api Next.js App Router API reference
Pages live under apps/web/src/app. By default the site and the API are both served from PORT, which is 3000 locally.
Express
guide Express installation guide
The API is an Express server. By default it shares the web app's public port. Set API_PORT to publish it on its own port.
createApp registers JSON parsing, CORS, health, LiveKit, OAuth, and MCP routes.
Render
guide Render documentation
render.yaml defines one web service. pnpm start serves the site and the API on that service's port and runs the LiveKit worker. Secrets use sync: false.
This repo deploys from a Blueprint. The Render API is the HTTP reference for that platform.
pnpm
guide pnpm CLI
This monorepo installs, builds, and runs with pnpm. The package manager version is pinned in the root package.json.