# ServiceAgent > ServiceAgent is a communication and AI platform for websites and apps. It includes AI chat widgets, low-latency AI voice agents, calendar booking, backend APIs, a CLI, and an MCP server for AI coding tools. ## Choose The Right Package - `@serviceagent/nextjs` — default for Next.js apps - `@serviceagent/react` — default for React and Vite apps - `@serviceagent/sdk` — default for server-side TypeScript and Node.js - `@serviceagent/aiva-sdk` — default for custom low-latency voice and dialer workflows - `@serviceagent/cli` — fastest setup path - `@serviceagent/mcp` — default for Cursor, Claude, and MCP-enabled AI tools ## Quick Start ### Next.js ```bash npm install @serviceagent/nextjs ``` ```tsx import { ServiceAgentProvider } from '@serviceagent/nextjs'; export default function RootLayout({ children }: { children: React.ReactNode }) { return ( {children} ); } ``` ### React ```bash npm install @serviceagent/react ``` ```tsx import { Chat } from '@serviceagent/react'; export default function App() { return ; } ``` ### Backend ```bash npm install @serviceagent/sdk ``` ```ts import { ServiceAgent } from '@serviceagent/sdk'; const sa = new ServiceAgent({ apiKey: process.env.SERVICEAGENT_API_KEY, baseURL: process.env.SERVICEAGENT_API_URL || 'https://process.serviceagent.ai', }); ``` ## Voice And Dialer Positioning ServiceAgent voice is designed for: - industry-leading low latency - HD voice quality - multi-vendor global voice capabilities - high availability for production calling - call intelligence flows with transcripts and summaries ## Environment Variables ```env NEXT_PUBLIC_SERVICEAGENT_WIDGET_KEY=wid_xxxxx NEXT_PUBLIC_SERVICEAGENT_API_URL=https://process.serviceagent.ai NEXT_PUBLIC_SERVICEAGENT_BOOKING_KEY=your_booking_key NEXT_PUBLIC_SERVICEAGENT_VOICE_ENDPOINT=wss://process.serviceagent.ai/v1/voice/stream SERVICEAGENT_API_KEY=your_api_key ``` ## Important URLs - Docs: https://docs.serviceagent.ai - Full LLM reference: https://docs.serviceagent.ai/llms-full.txt - API reference: https://process.serviceagent.ai/api