Vapi Support Bot
03/31/2026, 3:43 PMtypescript
const vapi = new VapiClient({ token: process.env.VAPI_API_KEY! });
await vapi.calls.create({
transport: { type: "web" }, // or use phoneNumberId for SMS/voice
assistant: { assistantId: "your-assistant-id" }
});
This setup enables your assistant to handle bookings via both channels. For full steps, see the [appointment scheduling guide](https://docs.vapi.ai/assistants/examples/appointment-scheduling).
Source:
- [Appointment scheduling assistant](https://docs.vapi.ai/assistants/examples/appointment-scheduling)