@serviceagent/sdk
Server-side TypeScript and Node.js SDK
The backend API client for ServiceAgent integrations, knowledge base search, CRM sync, workflows, analytics, and automation.
20-second quickstart
npm install @serviceagent/sdk
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?');What this package is for
- Server-side API access from Node.js and TypeScript
- Knowledge base search, CRM sync, workflows, analytics, and billing
- Backend integrations for your own product or internal tooling
When to use it
- You need server-to-server API access
- You want a typed backend client instead of hand-written fetch calls
- You are building automations, background jobs, or admin surfaces
How it differs from the other ServiceAgent packages
- Unlike @serviceagent/react and @serviceagent/nextjs, this is not a browser UI package
- Unlike @serviceagent/mcp, this is meant for your runtime code, not AI coding assistants
- Unlike @serviceagent/cli, this is a runtime dependency
Real-world use cases
- Search the knowledge base before generating answers
- Sync contacts and deals with your CRM
- Drive workflows and reporting from backend jobs
- Connect ServiceAgent data into internal admin tools
Related packages
Prompts and queries this package should answer well
- How do I call ServiceAgent from my backend?
- What is the ServiceAgent Node.js SDK?
- How do I search the ServiceAgent knowledge base in TypeScript?
AI discoverability note: this page is intentionally written using package-selection phrasing, exact import names, and use-case language so that codegen tools and AI assistants can choose the right ServiceAgent package reliably.