Prerequisites
- A Sulus account with your public API key
- An existing assistant ID for the assistant you want to connect to
If you don't have an assistant yet, you can create one quickly from the dashboard, or programmatically ahead of time using the server-side TypeScript SDK, for example:
import { SulusClient } from '@core-system/server-sdk';
const client = new SulusClient(process.env.SULUS_API_KEY);
const assistant = await client.assistants.create({
name: 'Support Assistant',
model: { provider: 'openai', model: 'gpt-4.1' },
});
console.log(assistant.id); // use this as your ASSISTANT_ID
Next steps
- Handle call lifecycle events surfaced through the hook's state to drive loading/connected/ended UI
- Display a live transcript by subscribing to message events
For the browser equivalent of this integration, see Web SDK Integration.