@sipgate/ai-flow-sdk
v1.11.0
Published
Official SDK for sipgate AI Flow
Downloads
734
Readme
@sipgate/ai-flow-sdk
TypeScript SDK for building AI-powered voice assistants with sipgate AI Flow.
Installation
npm install @sipgate/ai-flow-sdk
# or
pnpm add @sipgate/ai-flow-sdkRequirements: Node.js >= 22, TypeScript 5.x recommended
Quick Start
import express from "express";
import { AiFlowAssistant } from "@sipgate/ai-flow-sdk";
const app = express();
app.use(express.json());
const assistant = AiFlowAssistant.create({
onSessionStart: async (event) => {
return "Hello! How can I help you today?";
},
onUserSpeak: async (event) => {
return `You said: ${event.text}`;
},
});
app.post("/webhook", assistant.express());
app.listen(3000);Documentation
Full reference — events, actions, TTS providers, barge-in, outbound calls, and more:
sipgate.github.io/sipgate-ai-flow-api
License
Apache-2.0
