PM6852
03/21/2025, 10:02 PMKyle
03/23/2025, 1:55 PMKyle
03/23/2025, 1:56 PMmarkdown
```bash
curl -X PUT "https://api.vapi.ai/api/assistants/{assistant_id}" \
-H "Authorization: Bearer {your_api_key}" \
-H "Content-Type: application/json" \
-d '{
"transcriber": {
"provider": "deepgram",
"endpointing": 300
},
"startSpeakingPlan": {
"waitSeconds": 0.6,
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
},
"smartEndpointingPlan": {
"provider": "livekit",
"waitFunction": "200 + 8000 * x"
}
}
}'
```
To use this curl command:
1\. Replace {assistant_id}
with your actual assistant ID
2\. Replace {your_api_key}
with your VAPI API key
3\. You can modify the waitFunction
parameter if needed for more specific response timingzyf
03/24/2025, 10:16 PMKyle
03/27/2025, 5:22 AMPM6852
03/27/2025, 5:49 PMKyle
03/29/2025, 1:47 PMuser
Final Transcript : Hello?: 0.9733887
šµ 21:06:06:005 AzureOpenAIRequest. Messages:
\[
{
"role": "system",
"content": "Introduction\\nYou are a friendly assistant named Av..."
},
{"role": "user", "content": "Hello?"}
\]
šµ 21:06:06:453 \[user LOG\] Model output: Hi
šµ 21:06:06:743 ElevenLabs (Websocket #0) Pushing 130... "Hi, I'm Ava with Super Unit. I'm calling to verify the employment of a current or former employee at Mainline Protective Services."
šµ 21:06:06:743 \[user CHECKPOINT\] Voice audio requested
šµ 21:06:07:989 assistant
Partial Transcript : Hi. I'm Ava: 0.8840332
šµ 21:06:10:174 assistant
Final Transcript : Hi. I'm Ava with Super Unit. I'm: 0.9995117
@PM6852 It is taking approximately two seconds to generate the first response message like because of the first message mode which is model generates the first message and it is something which cannot be reduced as of now. But eventually, over time, this time will also be reduced.Kyle
03/29/2025, 1:47 PM