SAServiceAgent
Portal
ServiceAgent Quickstart

Start with the right package and get ServiceAgent live fast.

The fastest way to get started is to choose the right package for your stack and copy one of the working examples below.

Quick install by stack

StackRecommended packageWhy
Next.js@serviceagent/nextjsBest full-stack fit for UI, webhooks, and server-side integration.
React or Vite@serviceagent/reactFastest path for chat, booking, and voice UI.
Node.js backend@serviceagent/sdkTyped backend SDK for server-to-server API access.
Custom voice and dialer@serviceagent/aiva-sdkLow-level voice control for HD audio, transcripts, summaries, and call intelligence.
Cursor or Claude@serviceagent/mcpLets AI coding assistants provision and configure ServiceAgent directly.

20-second Next.js quickstart

npm install @serviceagent/nextjs
Next.js example
import { ServiceAgentProvider } from '@serviceagent/nextjs';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html>
      <body>
        <ServiceAgentProvider>{children}</ServiceAgentProvider>
      </body>
    </html>
  );
}

20-second React quickstart

npm install @serviceagent/react
React example
import { Chat } from '@serviceagent/react';

export default function App() {
  return <Chat />;
}

20-second backend SDK quickstart

npm install @serviceagent/sdk
Server-side example
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',
});

const results = await sa.searchKnowledgeBase('What are your weekend hours?');

Environment variables

Most frontend installs only need a widget key and API URL to get started. Add the values below and then use the package-specific components.

.env.local
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

Fastest install path

CLI
npx @serviceagent/cli add

What happens after install?

  • Add chat globally or on support pages.
  • Add booking widgets on sales, consultation, or appointment flows.
  • Add low-latency AI voice for support, sales, intake, and dialer use cases with transcripts and summaries.
  • Wire backend APIs and webhooks for production workflows.

Next recommended pages