Maphe
03/12/2025, 4:44 PMassistant-request
events all right and I'm able to respond with a personalized assistant
.
{
assistant: {
firstMessage: "...",
model: { provider: "openai", model: "gpt-4o", messages: [...] },
}
}
and that part is working ok. Now when I'm trying to tweak other settings:
{
assistant: {...},
voice {
provider: "cartesia",
voiceId: "a3520a8f-226a-428d-9fcd-b0a4711a6829",
}
maxDurationSeconds: 30,
}
these settings are not applied.
Is there a way to do that? I couldn't find anything in the doc, I only referred to https://docs.vapi.ai/api-reference/assistants/create assuming this object was used across the board.
ThanksVapi Support Bot
03/12/2025, 4:45 PMjson
{
"assistant": {
"firstMessage": "...",
"model": {
"provider": "openai",
"model": "gpt-4o",
"messages": [...]
},
"voice": {
"provider": "cartesia",
"voiceId": "a3520a8f-226a-428d-9fcd-b0a4711a6829"
},
"maxDurationSeconds": 30
}
}
For the maxDurationSeconds parameter specifically, you can also use the assistantOverrides approach in some contexts:
json
{
"assistantOverrides": {
"maxDurationSeconds": 120
}
}
The maxDurationSeconds parameter defines how long the assistant will wait before interrupting (useful for IVR systems), and Vapi now supports values up to 43,200 seconds (12 hours) [as noted in their changelog](https://docs.vapi.ai/changelog/2024/10/19).
If you're still having issues with this configuration, it might be worth checking if the assistant-request event handler has specific requirements that differ from the standard assistant creation API.
Sources:
- [Vapi Documentation](https://docs.vapi.ai/examples/voice-widget)
- [Vapi Community](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335807780287676456)
- [Vapi Changelog](https://docs.vapi.ai/changelog/2024/10/19)Vapi Support Bot
03/12/2025, 4:49 PMMaphe
03/12/2025, 4:49 PMMaphe
03/12/2025, 5:05 PMexperimentalControls
for cartesia voice specifically in the changelog, so now my only remaining question is, when the experimental control becomes non-experimental anymore, does is break the assistant or is it just gonna gracefully ignore the setting?Kings Big
03/15/2025, 6:53 AM