vikta7587
08/11/2025, 6:16 AMChiranjeet Mishra
08/12/2025, 8:54 PMcustomerJoinTimeoutSeconds setting. Increasing this timeout can provide users with more time to join a web call, which may help prevent premature call termination.
Here's how you can set this parameter using the Vapi API:
typescript
import { VapiClient } from "@vapi-ai/server-sdk";
const client = new VapiClient({ token: process.env.VAPI_API_KEY });
const assistant = await client.assistants.create({
name: "Customer Support Assistant",
model: {
provider: "openai",
model: "gpt-4.1-mini"
},
voice: {
provider: "11labs",
voiceId: "21m00Tcm4TlvDq8ikWAM"
},
customerJoinTimeoutSeconds: 30 // Increase to 30 seconds or as needed
});
Consider setting a higher timeout according to your user scenarios, such as 30-60 seconds for first-time or international users. Monitor the success rates and adjust as necessary. For further information on timeout configurations, please refer to the [Customer Join Timeout](https://docs.vapi.ai/calls/customer-join-timeout) documentation.