AI
05/17/2024, 7:51 AMVapi Support
05/17/2024, 7:51 AMVapi Support
05/17/2024, 7:51 AMassistantId
, and customer
with nested number
information [(1)]() .
Make sure to consult the official API reference to match your request body with the expected schema.AI
05/17/2024, 7:52 AMAI
05/17/2024, 7:52 AMVapi Support
05/17/2024, 7:52 AMAI
05/17/2024, 7:53 AMVapi Support
05/17/2024, 7:53 AMVapi Support
05/17/2024, 7:54 AMVapi Support
05/17/2024, 7:54 AMjson
{
"maxDurationSeconds": 1800,
"customerId": "<string>",
"customer": {
"number": "<string>",
"name": "<string>",
"extension": "<string>"
},
"phoneNumberId": "<string>",
"phoneNumber": {
"twilioPhoneNumber": "<string>",
"twilioAccountSid": "<string>",
"twilioAuthToken": "<string>",
"name": "<string>",
"assistantId": "<string>",
"serverUrl": "<string>",
"serverUrlSecret": "<string>"
},
"metadata": {},
"assistantId": "<string>",
"assistantOverride": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "cs",
"smartFormat": true,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant",
"function_call": {},
"tool_calls": [
{}
],
"tool_call_id": "<string>"
}
],
"tools": [
{
"type": "transferCall",
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"destinations": [
{}
],
"server": {
"url": "<string>",
"secret": "<string>"
},
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-
Vapi Support
05/17/2024, 7:54 AMpreview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"topK": 123,
"fileIds": [
"<string>"
],
"provider": "canonical"
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": true,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"forwardingPhoneNumber": "<string>",
"firstMessageMode": "assistant-speaks-first",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence",
"machine_end_other"
],
"recordingEnabled": true,
"endCallFunctionEnabled": true,
"dialKeypadFunctionEnabled": true,
"hipaaEnabled": true,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetectionEnabled": true,
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"ser
Vapi Support
05/17/2024, 7:54 AMverUrlSecret": "<string>",
"summaryPrompt": "<string>"
}
}
AI
05/17/2024, 8:00 AMVapi Support
05/17/2024, 8:00 AMVapi Support
05/17/2024, 8:00 AMVapi Support
05/17/2024, 8:00 AMjson
{
"maxDurationSeconds": 1800,
"customerId": "exampleCustomerId",
"customer": {
"number": "+15555555555",
"name": "John Doe",
"extension": "123"
},
"phoneNumberId": "examplePhoneId",
"phoneNumber": {
"twilioPhoneNumber": "+14444444444",
"twilioAccountSid": "exampleSid",
"twilioAuthToken": "exampleAuthToken",
"name": "MyCompanyLine",
"assistantId": "exampleAssistantId",
"serverUrl": "https://example.com/webhook",
"serverUrlSecret": "secretKey"
},
"metadata": {},
"assistantId": "exampleAssistantId",
"assistantOverride": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "en",
"smartFormat": true,
"keywords": [
"keyword1", "keyword2"
]
},
"model": {
"messages": [
{
"content": "Hello, how can I assist you today?",
"role": "assistant",
"function_call": {},
"tool_calls": [
{}
],
"tool_call_id": "exampleToolCallId"
}
],
"tools": [
{
"type": "transferCall",
"messages": [
{
"type": "request-start",
"content": "Transferring now",
"conditions": [
{
"param": "userRequest",
"value": "transfer",
"operator": "eq"
}
]
}
],
"destinations": [
{}
],
"server": {
"url": "https://example.com/transfer",
"secret": "transferSecretKey"
},
"function": {
"name": "transferFunction",
"description": "Transfers the call based on conditions",
"parameters": {
"type": "object",
"properties": {},
Vapi Support
05/17/2024, 8:00 AM"required": [
"transferTarget"
]
}
}
}
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"topK": 123,
"fileIds": [
"fileId1"
],
"provider": "canonical"
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
".", "!"
],
"fillerInjectionEnabled": true,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"forwardingPhoneNumber": "+13333333333",
"firstMessageMode": "assistant-speaks-first",
"voicemailDetectionTypes": [
"machine_end_beep"
],
"recordingEnabled": true,
"endCallFunctionEnabled": true,
"dialKeypadFunctionEnabled": true,
"hipaaEnabled": true,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "MyAssistant",
"firstMessage": "Hello, how can I assist you today?",
"voicemailDetectionEnabled": true,
"voicemailMessage": "Please leave a message after the beep.",
"endCallMessage": "Thank you for calling, goodbye.",
"endCallPhrases": [
"goodbye", "
Vapi Support
05/17/2024, 8:01 AMhang up"
],
"metadata": {},
"serverUrl": "https://example.com/end",
"serverUrlSecret": "endSecretKey",
"summaryPrompt": "Summary of the call"
}
}
Vapi Support
05/17/2024, 8:01 AMSahil
05/17/2024, 12:27 PMAI
05/17/2024, 1:55 PMVapi Support
05/17/2024, 1:55 PM