curl --request POST \
--url https://api.cozmox.ai/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customers": [
{
"numberE164CheckEnabled": true,
"extension": null,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": {
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
}
],
"name": "<string>",
"transport": {},
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": {
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": {
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"squadId": "<string>",
"workflowId": "<string>",
"workflowOverrides": {
"variableValues": {}
},
"phoneNumberId": "<string>",
"customerId": "<string>",
"customer": {
"numberE164CheckEnabled": true,
"extension": null,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": {
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
}
}
'import requests
url = "https://api.cozmox.ai/call"
payload = {
"customers": [
{
"numberE164CheckEnabled": True,
"extension": None,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": False,
"formatTurns": False,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": ["<string>"],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": True
},
"model": {
"provider": "anthropic",
"messages": [{ "content": "<string>" }],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": ["<unknown>"],
"blocking": False,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": { "aliases": [
{
"key": "<string>",
"value": "<string>"
}
] }
}
],
"toolIds": ["<string>"],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": True,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": True,
"chunkPlan": {
"enabled": True,
"minCharacters": 30,
"punctuationBoundaries": ["。", ",", ".", "!", "?", ";", "،", "۔", "।", "॥", "|", "||", ",", ":"],
"formatPlan": {
"enabled": True,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": False
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": False,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": ["conversation-update", "function-call", "hang", "model-output", "speech-update", "status-update", "transfer-update", "transcript", "tool-calls", "user-interrupted", "voice-input", "workflow.node.started"],
"serverMessages": ["conversation-update", "end-of-call-report", "function-call", "hang", "speech-update", "status-update", "tool-calls", "transfer-destination-request", "user-interrupted"],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": False,
"modelOutputInMessagesEnabled": False,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": False,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": True,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": ["<string>"]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": ["<string>"],
"compliancePlan": {
"hipaaEnabled": { "hipaaEnabled": False },
"pciEnabled": { "pciEnabled": False }
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": { "enabled": False },
"fourierDenoisingPlan": {
"enabled": False,
"mediaDetectionEnabled": True,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": True,
"videoRecordingEnabled": False,
"pcapEnabled": True,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": True,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": ["<string>"],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": True,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": False,
"smartEndpointingPlan": { "provider": "cozmox" },
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [{ "enabled": True }]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": ["i understand", "i see", "i got it", "i hear you", "im listening", "im with you", "right", "okay", "ok", "sure", "alright", "got it", "understood", "yeah", "yes", "uh-huh", "mm-hmm", "gotcha", "mhmm", "ah", "yeah okay", "yeah sure"],
"interruptionPhrases": ["stop", "shut", "up", "enough", "quiet", "silence", "but", "dont", "not", "no", "hold", "wait", "cut", "pause", "nope", "nah", "nevermind", "never", "bad", "actually"]
},
"monitorPlan": {
"listenEnabled": False,
"listenAuthenticationEnabled": False,
"controlEnabled": False,
"controlAuthenticationEnabled": False
},
"credentialIds": ["<string>"],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": True,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
}
],
"name": "<string>",
"transport": {},
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": False,
"formatTurns": False,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": ["<string>"],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": True
},
"model": {
"provider": "anthropic",
"messages": [{ "content": "<string>" }],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": ["<unknown>"],
"blocking": False,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": { "aliases": [
{
"key": "<string>",
"value": "<string>"
}
] }
}
],
"toolIds": ["<string>"],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": True,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": True,
"chunkPlan": {
"enabled": True,
"minCharacters": 30,
"punctuationBoundaries": ["。", ",", ".", "!", "?", ";", "،", "۔", "।", "॥", "|", "||", ",", ":"],
"formatPlan": {
"enabled": True,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": False
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": False,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": ["conversation-update", "function-call", "hang", "model-output", "speech-update", "status-update", "transfer-update", "transcript", "tool-calls", "user-interrupted", "voice-input", "workflow.node.started"],
"serverMessages": ["conversation-update", "end-of-call-report", "function-call", "hang", "speech-update", "status-update", "tool-calls", "transfer-destination-request", "user-interrupted"],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": False,
"modelOutputInMessagesEnabled": False,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": False,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": True,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": ["<string>"]
}
]
}
],
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": ["<string>"],
"compliancePlan": {
"hipaaEnabled": { "hipaaEnabled": False },
"pciEnabled": { "pciEnabled": False }
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": { "enabled": False },
"fourierDenoisingPlan": {
"enabled": False,
"mediaDetectionEnabled": True,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": True,
"videoRecordingEnabled": False,
"pcapEnabled": True,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": True,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": ["<string>"],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": True,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": False,
"smartEndpointingPlan": { "provider": "cozmox" },
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [{ "enabled": True }]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": ["i understand", "i see", "i got it", "i hear you", "im listening", "im with you", "right", "okay", "ok", "sure", "alright", "got it", "understood", "yeah", "yes", "uh-huh", "mm-hmm", "gotcha", "mhmm", "ah", "yeah okay", "yeah sure"],
"interruptionPhrases": ["stop", "shut", "up", "enough", "quiet", "silence", "but", "dont", "not", "no", "hold", "wait", "cut", "pause", "nope", "nah", "nevermind", "never", "bad", "actually"]
},
"monitorPlan": {
"listenEnabled": False,
"listenAuthenticationEnabled": False,
"controlEnabled": False,
"controlAuthenticationEnabled": False
},
"credentialIds": ["<string>"],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": True,
"timeoutSeconds": 5
}
},
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": False,
"formatTurns": False,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": ["<string>"],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": True
},
"model": {
"provider": "anthropic",
"messages": [{ "content": "<string>" }],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": ["<unknown>"],
"blocking": False,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": { "aliases": [
{
"key": "<string>",
"value": "<string>"
}
] }
}
],
"toolIds": ["<string>"],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": True,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": True,
"chunkPlan": {
"enabled": True,
"minCharacters": 30,
"punctuationBoundaries": ["。", ",", ".", "!", "?", ";", "،", "۔", "।", "॥", "|", "||", ",", ":"],
"formatPlan": {
"enabled": True,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": False
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": False,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": ["conversation-update", "function-call", "hang", "model-output", "speech-update", "status-update", "transfer-update", "transcript", "tool-calls", "user-interrupted", "voice-input", "workflow.node.started"],
"serverMessages": ["conversation-update", "end-of-call-report", "function-call", "hang", "speech-update", "status-update", "tool-calls", "transfer-destination-request", "user-interrupted"],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": False,
"modelOutputInMessagesEnabled": False,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": False,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": True,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": ["<string>"]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": ["<string>"],
"compliancePlan": {
"hipaaEnabled": { "hipaaEnabled": False },
"pciEnabled": { "pciEnabled": False }
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": { "enabled": False },
"fourierDenoisingPlan": {
"enabled": False,
"mediaDetectionEnabled": True,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": True,
"videoRecordingEnabled": False,
"pcapEnabled": True,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": True,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": ["<string>"],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": True,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": False,
"smartEndpointingPlan": { "provider": "cozmox" },
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [{ "enabled": True }]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": ["i understand", "i see", "i got it", "i hear you", "im listening", "im with you", "right", "okay", "ok", "sure", "alright", "got it", "understood", "yeah", "yes", "uh-huh", "mm-hmm", "gotcha", "mhmm", "ah", "yeah okay", "yeah sure"],
"interruptionPhrases": ["stop", "shut", "up", "enough", "quiet", "silence", "but", "dont", "not", "no", "hold", "wait", "cut", "pause", "nope", "nah", "nevermind", "never", "bad", "actually"]
},
"monitorPlan": {
"listenEnabled": False,
"listenAuthenticationEnabled": False,
"controlEnabled": False,
"controlAuthenticationEnabled": False
},
"credentialIds": ["<string>"],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": True,
"timeoutSeconds": 5
}
},
"squadId": "<string>",
"workflowId": "<string>",
"workflowOverrides": { "variableValues": {} },
"phoneNumberId": "<string>",
"customerId": "<string>",
"customer": {
"numberE164CheckEnabled": True,
"extension": None,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": False,
"formatTurns": False,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": ["<string>"],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": True
},
"model": {
"provider": "anthropic",
"messages": [{ "content": "<string>" }],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": ["<unknown>"],
"blocking": False,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": { "aliases": [
{
"key": "<string>",
"value": "<string>"
}
] }
}
],
"toolIds": ["<string>"],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": True,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": True,
"chunkPlan": {
"enabled": True,
"minCharacters": 30,
"punctuationBoundaries": ["。", ",", ".", "!", "?", ";", "،", "۔", "।", "॥", "|", "||", ",", ":"],
"formatPlan": {
"enabled": True,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": False
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": False,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": ["conversation-update", "function-call", "hang", "model-output", "speech-update", "status-update", "transfer-update", "transcript", "tool-calls", "user-interrupted", "voice-input", "workflow.node.started"],
"serverMessages": ["conversation-update", "end-of-call-report", "function-call", "hang", "speech-update", "status-update", "tool-calls", "transfer-destination-request", "user-interrupted"],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": False,
"modelOutputInMessagesEnabled": False,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": False,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": True,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": ["<string>"]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": ["<string>"],
"compliancePlan": {
"hipaaEnabled": { "hipaaEnabled": False },
"pciEnabled": { "pciEnabled": False }
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": { "enabled": False },
"fourierDenoisingPlan": {
"enabled": False,
"mediaDetectionEnabled": True,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": True,
"videoRecordingEnabled": False,
"pcapEnabled": True,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": True,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": ["<string>"],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": True,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": False,
"smartEndpointingPlan": { "provider": "cozmox" },
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [{ "enabled": True }]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": ["i understand", "i see", "i got it", "i hear you", "im listening", "im with you", "right", "okay", "ok", "sure", "alright", "got it", "understood", "yeah", "yes", "uh-huh", "mm-hmm", "gotcha", "mhmm", "ah", "yeah okay", "yeah sure"],
"interruptionPhrases": ["stop", "shut", "up", "enough", "quiet", "silence", "but", "dont", "not", "no", "hold", "wait", "cut", "pause", "nope", "nah", "nevermind", "never", "bad", "actually"]
},
"monitorPlan": {
"listenEnabled": False,
"listenAuthenticationEnabled": False,
"controlEnabled": False,
"controlAuthenticationEnabled": False
},
"credentialIds": ["<string>"],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": True,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customers: [
{
numberE164CheckEnabled: true,
extension: null,
assistantOverrides: {
transcriber: {
provider: 'assembly-ai',
language: 'en',
confidenceThreshold: 0.4,
enableUniversalStreamingApi: false,
formatTurns: false,
endOfTurnConfidenceThreshold: 0.7,
minEndOfTurnSilenceWhenConfident: 160,
wordFinalizationMaxWaitTime: 160,
maxTurnSilence: 400,
realtimeUrl: '<string>',
wordBoost: ['<string>'],
endUtteranceSilenceThreshold: 123,
disablePartialTranscripts: true
},
model: {
provider: 'anthropic',
messages: [{content: '<string>'}],
tools: [
{
type: 'apiRequest',
url: '<string>',
messages: [
{
type: 'request-start',
contents: ['<unknown>'],
blocking: false,
content: '<string>',
conditions: [{param: '<string>', value: '<string>'}]
}
],
timeoutSeconds: 20,
name: '<string>',
description: '<string>',
variableExtractionPlan: {aliases: [{key: '<string>', value: '<string>'}]}
}
],
toolIds: ['<string>'],
knowledgeBaseId: '<string>',
temperature: 1,
maxTokens: 5025,
emotionRecognitionEnabled: true,
numFastTurns: 1
},
voice: {
provider: 'azure',
cachingEnabled: true,
chunkPlan: {
enabled: true,
minCharacters: 30,
punctuationBoundaries: ['。', ',', '.', '!', '?', ';', '،', '۔', '।', '॥', '|', '||', ',', ':'],
formatPlan: {
enabled: true,
numberToDigitsCutoff: 2025,
replacements: [{type: 'exact', key: '<string>', value: '<string>', replaceAllEnabled: false}]
}
},
speed: 1.25
},
firstMessage: 'Hello! How can I help you today?',
firstMessageInterruptionsEnabled: false,
firstMessageMode: 'assistant-speaks-first',
voicemailDetection: {
provider: 'google',
beepMaxAwaitSeconds: 30,
backoffPlan: {startAtSeconds: 5, frequencySeconds: 5, maxRetries: 6}
},
clientMessages: [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
serverMessages: [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
silenceTimeoutSeconds: 30,
maxDurationSeconds: 600,
backgroundSound: 'office',
backgroundDenoisingEnabled: false,
modelOutputInMessagesEnabled: false,
transportConfigurations: [{provider: 'twilio', timeout: 60, record: false, recordingChannels: 'mono'}],
credentials: [{provider: 'anthropic', apiKey: '<string>', name: '<string>'}],
hooks: [
{
on: 'call.ending',
do: [
{
type: 'transfer',
destination: {
type: 'number',
number: '<string>',
message: '<string>',
numberE164CheckEnabled: true,
extension: '<string>',
callerId: '<string>',
description: '<string>'
}
}
],
filters: [{type: 'oneOf', key: '<string>', oneOf: ['<string>']}]
}
],
variableValues: {},
name: '<string>',
voicemailMessage: '<string>',
endCallMessage: '<string>',
endCallPhrases: ['<string>'],
compliancePlan: {hipaaEnabled: {hipaaEnabled: false}, pciEnabled: {pciEnabled: false}},
metadata: {},
backgroundSpeechDenoisingPlan: {
smartDenoisingPlan: {enabled: false},
fourierDenoisingPlan: {
enabled: false,
mediaDetectionEnabled: true,
staticThreshold: -35,
baselineOffsetDb: -15,
windowSizeMs: 3000,
baselinePercentile: 85
}
},
analysisPlan: {
minMessagesThreshold: 1,
summaryPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataMultiPlan: [{key: '<string>', plan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}}],
successEvaluationPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}
},
artifactPlan: {
recordingEnabled: true,
videoRecordingEnabled: false,
pcapEnabled: true,
pcapS3PathPrefix: '/pcaps',
transcriptPlan: {enabled: true, assistantName: '<string>', userName: '<string>'},
recordingPath: '<string>'
},
messagePlan: {
idleMessages: ['<string>'],
idleMessageMaxSpokenCount: 5.5,
idleMessageResetCountOnUserSpeechEnabled: true,
idleTimeoutSeconds: 32.5,
silenceTimeoutMessage: '<string>'
},
startSpeakingPlan: {
waitSeconds: 0.4,
smartEndpointingEnabled: false,
smartEndpointingPlan: {provider: 'cozmox'},
customEndpointingRules: [
{
type: 'assistant',
regex: '<string>',
timeoutSeconds: 7.5,
regexOptions: [{enabled: true}]
}
],
transcriptionEndpointingPlan: {onPunctuationSeconds: 0.1, onNoPunctuationSeconds: 1.5, onNumberSeconds: 0.5}
},
stopSpeakingPlan: {
numWords: 0,
voiceSeconds: 0.2,
backoffSeconds: 1,
acknowledgementPhrases: [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
interruptionPhrases: [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
},
monitorPlan: {
listenEnabled: false,
listenAuthenticationEnabled: false,
controlEnabled: false,
controlAuthenticationEnabled: false
},
credentialIds: ['<string>'],
server: {timeoutSeconds: 20, url: '<string>', headers: {}},
keypadInputPlan: {enabled: true, timeoutSeconds: 5}
},
number: '<string>',
sipUri: '<string>',
name: '<string>',
email: '<string>',
externalId: '<string>'
}
],
name: '<string>',
transport: {},
assistantId: '<string>',
assistant: {
transcriber: {
provider: 'assembly-ai',
language: 'en',
confidenceThreshold: 0.4,
enableUniversalStreamingApi: false,
formatTurns: false,
endOfTurnConfidenceThreshold: 0.7,
minEndOfTurnSilenceWhenConfident: 160,
wordFinalizationMaxWaitTime: 160,
maxTurnSilence: 400,
realtimeUrl: '<string>',
wordBoost: ['<string>'],
endUtteranceSilenceThreshold: 123,
disablePartialTranscripts: true
},
model: {
provider: 'anthropic',
messages: [{content: '<string>'}],
tools: [
{
type: 'apiRequest',
url: '<string>',
messages: [
{
type: 'request-start',
contents: ['<unknown>'],
blocking: false,
content: '<string>',
conditions: [{param: '<string>', value: '<string>'}]
}
],
timeoutSeconds: 20,
name: '<string>',
description: '<string>',
variableExtractionPlan: {aliases: [{key: '<string>', value: '<string>'}]}
}
],
toolIds: ['<string>'],
knowledgeBaseId: '<string>',
temperature: 1,
maxTokens: 5025,
emotionRecognitionEnabled: true,
numFastTurns: 1
},
voice: {
provider: 'azure',
cachingEnabled: true,
chunkPlan: {
enabled: true,
minCharacters: 30,
punctuationBoundaries: ['。', ',', '.', '!', '?', ';', '،', '۔', '।', '॥', '|', '||', ',', ':'],
formatPlan: {
enabled: true,
numberToDigitsCutoff: 2025,
replacements: [{type: 'exact', key: '<string>', value: '<string>', replaceAllEnabled: false}]
}
},
speed: 1.25
},
firstMessage: 'Hello! How can I help you today?',
firstMessageInterruptionsEnabled: false,
firstMessageMode: 'assistant-speaks-first',
voicemailDetection: {
provider: 'google',
beepMaxAwaitSeconds: 30,
backoffPlan: {startAtSeconds: 5, frequencySeconds: 5, maxRetries: 6}
},
clientMessages: [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
serverMessages: [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
silenceTimeoutSeconds: 30,
maxDurationSeconds: 600,
backgroundSound: 'office',
backgroundDenoisingEnabled: false,
modelOutputInMessagesEnabled: false,
transportConfigurations: [{provider: 'twilio', timeout: 60, record: false, recordingChannels: 'mono'}],
credentials: [{provider: 'anthropic', apiKey: '<string>', name: '<string>'}],
hooks: [
{
on: 'call.ending',
do: [
{
type: 'transfer',
destination: {
type: 'number',
number: '<string>',
message: '<string>',
numberE164CheckEnabled: true,
extension: '<string>',
callerId: '<string>',
description: '<string>'
}
}
],
filters: [{type: 'oneOf', key: '<string>', oneOf: ['<string>']}]
}
],
name: '<string>',
voicemailMessage: '<string>',
endCallMessage: '<string>',
endCallPhrases: ['<string>'],
compliancePlan: {hipaaEnabled: {hipaaEnabled: false}, pciEnabled: {pciEnabled: false}},
metadata: {},
backgroundSpeechDenoisingPlan: {
smartDenoisingPlan: {enabled: false},
fourierDenoisingPlan: {
enabled: false,
mediaDetectionEnabled: true,
staticThreshold: -35,
baselineOffsetDb: -15,
windowSizeMs: 3000,
baselinePercentile: 85
}
},
analysisPlan: {
minMessagesThreshold: 1,
summaryPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataMultiPlan: [{key: '<string>', plan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}}],
successEvaluationPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}
},
artifactPlan: {
recordingEnabled: true,
videoRecordingEnabled: false,
pcapEnabled: true,
pcapS3PathPrefix: '/pcaps',
transcriptPlan: {enabled: true, assistantName: '<string>', userName: '<string>'},
recordingPath: '<string>'
},
messagePlan: {
idleMessages: ['<string>'],
idleMessageMaxSpokenCount: 5.5,
idleMessageResetCountOnUserSpeechEnabled: true,
idleTimeoutSeconds: 32.5,
silenceTimeoutMessage: '<string>'
},
startSpeakingPlan: {
waitSeconds: 0.4,
smartEndpointingEnabled: false,
smartEndpointingPlan: {provider: 'cozmox'},
customEndpointingRules: [
{
type: 'assistant',
regex: '<string>',
timeoutSeconds: 7.5,
regexOptions: [{enabled: true}]
}
],
transcriptionEndpointingPlan: {onPunctuationSeconds: 0.1, onNoPunctuationSeconds: 1.5, onNumberSeconds: 0.5}
},
stopSpeakingPlan: {
numWords: 0,
voiceSeconds: 0.2,
backoffSeconds: 1,
acknowledgementPhrases: [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
interruptionPhrases: [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
},
monitorPlan: {
listenEnabled: false,
listenAuthenticationEnabled: false,
controlEnabled: false,
controlAuthenticationEnabled: false
},
credentialIds: ['<string>'],
server: {timeoutSeconds: 20, url: '<string>', headers: {}},
keypadInputPlan: {enabled: true, timeoutSeconds: 5}
},
assistantOverrides: {
transcriber: {
provider: 'assembly-ai',
language: 'en',
confidenceThreshold: 0.4,
enableUniversalStreamingApi: false,
formatTurns: false,
endOfTurnConfidenceThreshold: 0.7,
minEndOfTurnSilenceWhenConfident: 160,
wordFinalizationMaxWaitTime: 160,
maxTurnSilence: 400,
realtimeUrl: '<string>',
wordBoost: ['<string>'],
endUtteranceSilenceThreshold: 123,
disablePartialTranscripts: true
},
model: {
provider: 'anthropic',
messages: [{content: '<string>'}],
tools: [
{
type: 'apiRequest',
url: '<string>',
messages: [
{
type: 'request-start',
contents: ['<unknown>'],
blocking: false,
content: '<string>',
conditions: [{param: '<string>', value: '<string>'}]
}
],
timeoutSeconds: 20,
name: '<string>',
description: '<string>',
variableExtractionPlan: {aliases: [{key: '<string>', value: '<string>'}]}
}
],
toolIds: ['<string>'],
knowledgeBaseId: '<string>',
temperature: 1,
maxTokens: 5025,
emotionRecognitionEnabled: true,
numFastTurns: 1
},
voice: {
provider: 'azure',
cachingEnabled: true,
chunkPlan: {
enabled: true,
minCharacters: 30,
punctuationBoundaries: ['。', ',', '.', '!', '?', ';', '،', '۔', '।', '॥', '|', '||', ',', ':'],
formatPlan: {
enabled: true,
numberToDigitsCutoff: 2025,
replacements: [{type: 'exact', key: '<string>', value: '<string>', replaceAllEnabled: false}]
}
},
speed: 1.25
},
firstMessage: 'Hello! How can I help you today?',
firstMessageInterruptionsEnabled: false,
firstMessageMode: 'assistant-speaks-first',
voicemailDetection: {
provider: 'google',
beepMaxAwaitSeconds: 30,
backoffPlan: {startAtSeconds: 5, frequencySeconds: 5, maxRetries: 6}
},
clientMessages: [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
serverMessages: [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
silenceTimeoutSeconds: 30,
maxDurationSeconds: 600,
backgroundSound: 'office',
backgroundDenoisingEnabled: false,
modelOutputInMessagesEnabled: false,
transportConfigurations: [{provider: 'twilio', timeout: 60, record: false, recordingChannels: 'mono'}],
credentials: [{provider: 'anthropic', apiKey: '<string>', name: '<string>'}],
hooks: [
{
on: 'call.ending',
do: [
{
type: 'transfer',
destination: {
type: 'number',
number: '<string>',
message: '<string>',
numberE164CheckEnabled: true,
extension: '<string>',
callerId: '<string>',
description: '<string>'
}
}
],
filters: [{type: 'oneOf', key: '<string>', oneOf: ['<string>']}]
}
],
variableValues: {},
name: '<string>',
voicemailMessage: '<string>',
endCallMessage: '<string>',
endCallPhrases: ['<string>'],
compliancePlan: {hipaaEnabled: {hipaaEnabled: false}, pciEnabled: {pciEnabled: false}},
metadata: {},
backgroundSpeechDenoisingPlan: {
smartDenoisingPlan: {enabled: false},
fourierDenoisingPlan: {
enabled: false,
mediaDetectionEnabled: true,
staticThreshold: -35,
baselineOffsetDb: -15,
windowSizeMs: 3000,
baselinePercentile: 85
}
},
analysisPlan: {
minMessagesThreshold: 1,
summaryPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataMultiPlan: [{key: '<string>', plan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}}],
successEvaluationPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}
},
artifactPlan: {
recordingEnabled: true,
videoRecordingEnabled: false,
pcapEnabled: true,
pcapS3PathPrefix: '/pcaps',
transcriptPlan: {enabled: true, assistantName: '<string>', userName: '<string>'},
recordingPath: '<string>'
},
messagePlan: {
idleMessages: ['<string>'],
idleMessageMaxSpokenCount: 5.5,
idleMessageResetCountOnUserSpeechEnabled: true,
idleTimeoutSeconds: 32.5,
silenceTimeoutMessage: '<string>'
},
startSpeakingPlan: {
waitSeconds: 0.4,
smartEndpointingEnabled: false,
smartEndpointingPlan: {provider: 'cozmox'},
customEndpointingRules: [
{
type: 'assistant',
regex: '<string>',
timeoutSeconds: 7.5,
regexOptions: [{enabled: true}]
}
],
transcriptionEndpointingPlan: {onPunctuationSeconds: 0.1, onNoPunctuationSeconds: 1.5, onNumberSeconds: 0.5}
},
stopSpeakingPlan: {
numWords: 0,
voiceSeconds: 0.2,
backoffSeconds: 1,
acknowledgementPhrases: [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
interruptionPhrases: [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
},
monitorPlan: {
listenEnabled: false,
listenAuthenticationEnabled: false,
controlEnabled: false,
controlAuthenticationEnabled: false
},
credentialIds: ['<string>'],
server: {timeoutSeconds: 20, url: '<string>', headers: {}},
keypadInputPlan: {enabled: true, timeoutSeconds: 5}
},
squadId: '<string>',
workflowId: '<string>',
workflowOverrides: {variableValues: {}},
phoneNumberId: '<string>',
customerId: '<string>',
customer: {
numberE164CheckEnabled: true,
extension: null,
assistantOverrides: {
transcriber: {
provider: 'assembly-ai',
language: 'en',
confidenceThreshold: 0.4,
enableUniversalStreamingApi: false,
formatTurns: false,
endOfTurnConfidenceThreshold: 0.7,
minEndOfTurnSilenceWhenConfident: 160,
wordFinalizationMaxWaitTime: 160,
maxTurnSilence: 400,
realtimeUrl: '<string>',
wordBoost: ['<string>'],
endUtteranceSilenceThreshold: 123,
disablePartialTranscripts: true
},
model: {
provider: 'anthropic',
messages: [{content: '<string>'}],
tools: [
{
type: 'apiRequest',
url: '<string>',
messages: [
{
type: 'request-start',
contents: ['<unknown>'],
blocking: false,
content: '<string>',
conditions: [{param: '<string>', value: '<string>'}]
}
],
timeoutSeconds: 20,
name: '<string>',
description: '<string>',
variableExtractionPlan: {aliases: [{key: '<string>', value: '<string>'}]}
}
],
toolIds: ['<string>'],
knowledgeBaseId: '<string>',
temperature: 1,
maxTokens: 5025,
emotionRecognitionEnabled: true,
numFastTurns: 1
},
voice: {
provider: 'azure',
cachingEnabled: true,
chunkPlan: {
enabled: true,
minCharacters: 30,
punctuationBoundaries: ['。', ',', '.', '!', '?', ';', '،', '۔', '।', '॥', '|', '||', ',', ':'],
formatPlan: {
enabled: true,
numberToDigitsCutoff: 2025,
replacements: [{type: 'exact', key: '<string>', value: '<string>', replaceAllEnabled: false}]
}
},
speed: 1.25
},
firstMessage: 'Hello! How can I help you today?',
firstMessageInterruptionsEnabled: false,
firstMessageMode: 'assistant-speaks-first',
voicemailDetection: {
provider: 'google',
beepMaxAwaitSeconds: 30,
backoffPlan: {startAtSeconds: 5, frequencySeconds: 5, maxRetries: 6}
},
clientMessages: [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
serverMessages: [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
silenceTimeoutSeconds: 30,
maxDurationSeconds: 600,
backgroundSound: 'office',
backgroundDenoisingEnabled: false,
modelOutputInMessagesEnabled: false,
transportConfigurations: [{provider: 'twilio', timeout: 60, record: false, recordingChannels: 'mono'}],
credentials: [{provider: 'anthropic', apiKey: '<string>', name: '<string>'}],
hooks: [
{
on: 'call.ending',
do: [
{
type: 'transfer',
destination: {
type: 'number',
number: '<string>',
message: '<string>',
numberE164CheckEnabled: true,
extension: '<string>',
callerId: '<string>',
description: '<string>'
}
}
],
filters: [{type: 'oneOf', key: '<string>', oneOf: ['<string>']}]
}
],
variableValues: {},
name: '<string>',
voicemailMessage: '<string>',
endCallMessage: '<string>',
endCallPhrases: ['<string>'],
compliancePlan: {hipaaEnabled: {hipaaEnabled: false}, pciEnabled: {pciEnabled: false}},
metadata: {},
backgroundSpeechDenoisingPlan: {
smartDenoisingPlan: {enabled: false},
fourierDenoisingPlan: {
enabled: false,
mediaDetectionEnabled: true,
staticThreshold: -35,
baselineOffsetDb: -15,
windowSizeMs: 3000,
baselinePercentile: 85
}
},
analysisPlan: {
minMessagesThreshold: 1,
summaryPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataMultiPlan: [{key: '<string>', plan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}}],
successEvaluationPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}
},
artifactPlan: {
recordingEnabled: true,
videoRecordingEnabled: false,
pcapEnabled: true,
pcapS3PathPrefix: '/pcaps',
transcriptPlan: {enabled: true, assistantName: '<string>', userName: '<string>'},
recordingPath: '<string>'
},
messagePlan: {
idleMessages: ['<string>'],
idleMessageMaxSpokenCount: 5.5,
idleMessageResetCountOnUserSpeechEnabled: true,
idleTimeoutSeconds: 32.5,
silenceTimeoutMessage: '<string>'
},
startSpeakingPlan: {
waitSeconds: 0.4,
smartEndpointingEnabled: false,
smartEndpointingPlan: {provider: 'cozmox'},
customEndpointingRules: [
{
type: 'assistant',
regex: '<string>',
timeoutSeconds: 7.5,
regexOptions: [{enabled: true}]
}
],
transcriptionEndpointingPlan: {onPunctuationSeconds: 0.1, onNoPunctuationSeconds: 1.5, onNumberSeconds: 0.5}
},
stopSpeakingPlan: {
numWords: 0,
voiceSeconds: 0.2,
backoffSeconds: 1,
acknowledgementPhrases: [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
interruptionPhrases: [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
},
monitorPlan: {
listenEnabled: false,
listenAuthenticationEnabled: false,
controlEnabled: false,
controlAuthenticationEnabled: false
},
credentialIds: ['<string>'],
server: {timeoutSeconds: 20, url: '<string>', headers: {}},
keypadInputPlan: {enabled: true, timeoutSeconds: 5}
},
number: '<string>',
sipUri: '<string>',
name: '<string>',
email: '<string>',
externalId: '<string>'
}
})
};
fetch('https://api.cozmox.ai/call', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cozmox.ai/call",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customers' => [
[
'numberE164CheckEnabled' => true,
'extension' => null,
'assistantOverrides' => [
'transcriber' => [
'provider' => 'assembly-ai',
'language' => 'en',
'confidenceThreshold' => 0.4,
'enableUniversalStreamingApi' => false,
'formatTurns' => false,
'endOfTurnConfidenceThreshold' => 0.7,
'minEndOfTurnSilenceWhenConfident' => 160,
'wordFinalizationMaxWaitTime' => 160,
'maxTurnSilence' => 400,
'realtimeUrl' => '<string>',
'wordBoost' => [
'<string>'
],
'endUtteranceSilenceThreshold' => 123,
'disablePartialTranscripts' => true
],
'model' => [
'provider' => 'anthropic',
'messages' => [
[
'content' => '<string>'
]
],
'tools' => [
[
'type' => 'apiRequest',
'url' => '<string>',
'messages' => [
[
'type' => 'request-start',
'contents' => [
'<unknown>'
],
'blocking' => false,
'content' => '<string>',
'conditions' => [
[
'param' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutSeconds' => 20,
'name' => '<string>',
'description' => '<string>',
'variableExtractionPlan' => [
'aliases' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
]
]
],
'toolIds' => [
'<string>'
],
'knowledgeBaseId' => '<string>',
'temperature' => 1,
'maxTokens' => 5025,
'emotionRecognitionEnabled' => true,
'numFastTurns' => 1
],
'voice' => [
'provider' => 'azure',
'cachingEnabled' => true,
'chunkPlan' => [
'enabled' => true,
'minCharacters' => 30,
'punctuationBoundaries' => [
'。',
',',
'.',
'!',
'?',
';',
'،',
'۔',
'।',
'॥',
'|',
'||',
',',
':'
],
'formatPlan' => [
'enabled' => true,
'numberToDigitsCutoff' => 2025,
'replacements' => [
[
'type' => 'exact',
'key' => '<string>',
'value' => '<string>',
'replaceAllEnabled' => false
]
]
]
],
'speed' => 1.25
],
'firstMessage' => 'Hello! How can I help you today?',
'firstMessageInterruptionsEnabled' => false,
'firstMessageMode' => 'assistant-speaks-first',
'voicemailDetection' => [
'provider' => 'google',
'beepMaxAwaitSeconds' => 30,
'backoffPlan' => [
'startAtSeconds' => 5,
'frequencySeconds' => 5,
'maxRetries' => 6
]
],
'clientMessages' => [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
'serverMessages' => [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
'silenceTimeoutSeconds' => 30,
'maxDurationSeconds' => 600,
'backgroundSound' => 'office',
'backgroundDenoisingEnabled' => false,
'modelOutputInMessagesEnabled' => false,
'transportConfigurations' => [
[
'provider' => 'twilio',
'timeout' => 60,
'record' => false,
'recordingChannels' => 'mono'
]
],
'credentials' => [
[
'provider' => 'anthropic',
'apiKey' => '<string>',
'name' => '<string>'
]
],
'hooks' => [
[
'on' => 'call.ending',
'do' => [
[
'type' => 'transfer',
'destination' => [
'type' => 'number',
'number' => '<string>',
'message' => '<string>',
'numberE164CheckEnabled' => true,
'extension' => '<string>',
'callerId' => '<string>',
'description' => '<string>'
]
]
],
'filters' => [
[
'type' => 'oneOf',
'key' => '<string>',
'oneOf' => [
'<string>'
]
]
]
]
],
'variableValues' => [
],
'name' => '<string>',
'voicemailMessage' => '<string>',
'endCallMessage' => '<string>',
'endCallPhrases' => [
'<string>'
],
'compliancePlan' => [
'hipaaEnabled' => [
'hipaaEnabled' => false
],
'pciEnabled' => [
'pciEnabled' => false
]
],
'metadata' => [
],
'backgroundSpeechDenoisingPlan' => [
'smartDenoisingPlan' => [
'enabled' => false
],
'fourierDenoisingPlan' => [
'enabled' => false,
'mediaDetectionEnabled' => true,
'staticThreshold' => -35,
'baselineOffsetDb' => -15,
'windowSizeMs' => 3000,
'baselinePercentile' => 85
]
],
'analysisPlan' => [
'minMessagesThreshold' => 1,
'summaryPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataMultiPlan' => [
[
'key' => '<string>',
'plan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
]
],
'successEvaluationPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
],
'artifactPlan' => [
'recordingEnabled' => true,
'videoRecordingEnabled' => false,
'pcapEnabled' => true,
'pcapS3PathPrefix' => '/pcaps',
'transcriptPlan' => [
'enabled' => true,
'assistantName' => '<string>',
'userName' => '<string>'
],
'recordingPath' => '<string>'
],
'messagePlan' => [
'idleMessages' => [
'<string>'
],
'idleMessageMaxSpokenCount' => 5.5,
'idleMessageResetCountOnUserSpeechEnabled' => true,
'idleTimeoutSeconds' => 32.5,
'silenceTimeoutMessage' => '<string>'
],
'startSpeakingPlan' => [
'waitSeconds' => 0.4,
'smartEndpointingEnabled' => false,
'smartEndpointingPlan' => [
'provider' => 'cozmox'
],
'customEndpointingRules' => [
[
'type' => 'assistant',
'regex' => '<string>',
'timeoutSeconds' => 7.5,
'regexOptions' => [
[
'enabled' => true
]
]
]
],
'transcriptionEndpointingPlan' => [
'onPunctuationSeconds' => 0.1,
'onNoPunctuationSeconds' => 1.5,
'onNumberSeconds' => 0.5
]
],
'stopSpeakingPlan' => [
'numWords' => 0,
'voiceSeconds' => 0.2,
'backoffSeconds' => 1,
'acknowledgementPhrases' => [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
'interruptionPhrases' => [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
],
'monitorPlan' => [
'listenEnabled' => false,
'listenAuthenticationEnabled' => false,
'controlEnabled' => false,
'controlAuthenticationEnabled' => false
],
'credentialIds' => [
'<string>'
],
'server' => [
'timeoutSeconds' => 20,
'url' => '<string>',
'headers' => [
]
],
'keypadInputPlan' => [
'enabled' => true,
'timeoutSeconds' => 5
]
],
'number' => '<string>',
'sipUri' => '<string>',
'name' => '<string>',
'email' => '<string>',
'externalId' => '<string>'
]
],
'name' => '<string>',
'transport' => [
],
'assistantId' => '<string>',
'assistant' => [
'transcriber' => [
'provider' => 'assembly-ai',
'language' => 'en',
'confidenceThreshold' => 0.4,
'enableUniversalStreamingApi' => false,
'formatTurns' => false,
'endOfTurnConfidenceThreshold' => 0.7,
'minEndOfTurnSilenceWhenConfident' => 160,
'wordFinalizationMaxWaitTime' => 160,
'maxTurnSilence' => 400,
'realtimeUrl' => '<string>',
'wordBoost' => [
'<string>'
],
'endUtteranceSilenceThreshold' => 123,
'disablePartialTranscripts' => true
],
'model' => [
'provider' => 'anthropic',
'messages' => [
[
'content' => '<string>'
]
],
'tools' => [
[
'type' => 'apiRequest',
'url' => '<string>',
'messages' => [
[
'type' => 'request-start',
'contents' => [
'<unknown>'
],
'blocking' => false,
'content' => '<string>',
'conditions' => [
[
'param' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutSeconds' => 20,
'name' => '<string>',
'description' => '<string>',
'variableExtractionPlan' => [
'aliases' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
]
]
],
'toolIds' => [
'<string>'
],
'knowledgeBaseId' => '<string>',
'temperature' => 1,
'maxTokens' => 5025,
'emotionRecognitionEnabled' => true,
'numFastTurns' => 1
],
'voice' => [
'provider' => 'azure',
'cachingEnabled' => true,
'chunkPlan' => [
'enabled' => true,
'minCharacters' => 30,
'punctuationBoundaries' => [
'。',
',',
'.',
'!',
'?',
';',
'،',
'۔',
'।',
'॥',
'|',
'||',
',',
':'
],
'formatPlan' => [
'enabled' => true,
'numberToDigitsCutoff' => 2025,
'replacements' => [
[
'type' => 'exact',
'key' => '<string>',
'value' => '<string>',
'replaceAllEnabled' => false
]
]
]
],
'speed' => 1.25
],
'firstMessage' => 'Hello! How can I help you today?',
'firstMessageInterruptionsEnabled' => false,
'firstMessageMode' => 'assistant-speaks-first',
'voicemailDetection' => [
'provider' => 'google',
'beepMaxAwaitSeconds' => 30,
'backoffPlan' => [
'startAtSeconds' => 5,
'frequencySeconds' => 5,
'maxRetries' => 6
]
],
'clientMessages' => [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
'serverMessages' => [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
'silenceTimeoutSeconds' => 30,
'maxDurationSeconds' => 600,
'backgroundSound' => 'office',
'backgroundDenoisingEnabled' => false,
'modelOutputInMessagesEnabled' => false,
'transportConfigurations' => [
[
'provider' => 'twilio',
'timeout' => 60,
'record' => false,
'recordingChannels' => 'mono'
]
],
'credentials' => [
[
'provider' => 'anthropic',
'apiKey' => '<string>',
'name' => '<string>'
]
],
'hooks' => [
[
'on' => 'call.ending',
'do' => [
[
'type' => 'transfer',
'destination' => [
'type' => 'number',
'number' => '<string>',
'message' => '<string>',
'numberE164CheckEnabled' => true,
'extension' => '<string>',
'callerId' => '<string>',
'description' => '<string>'
]
]
],
'filters' => [
[
'type' => 'oneOf',
'key' => '<string>',
'oneOf' => [
'<string>'
]
]
]
]
],
'name' => '<string>',
'voicemailMessage' => '<string>',
'endCallMessage' => '<string>',
'endCallPhrases' => [
'<string>'
],
'compliancePlan' => [
'hipaaEnabled' => [
'hipaaEnabled' => false
],
'pciEnabled' => [
'pciEnabled' => false
]
],
'metadata' => [
],
'backgroundSpeechDenoisingPlan' => [
'smartDenoisingPlan' => [
'enabled' => false
],
'fourierDenoisingPlan' => [
'enabled' => false,
'mediaDetectionEnabled' => true,
'staticThreshold' => -35,
'baselineOffsetDb' => -15,
'windowSizeMs' => 3000,
'baselinePercentile' => 85
]
],
'analysisPlan' => [
'minMessagesThreshold' => 1,
'summaryPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataMultiPlan' => [
[
'key' => '<string>',
'plan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
]
],
'successEvaluationPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
],
'artifactPlan' => [
'recordingEnabled' => true,
'videoRecordingEnabled' => false,
'pcapEnabled' => true,
'pcapS3PathPrefix' => '/pcaps',
'transcriptPlan' => [
'enabled' => true,
'assistantName' => '<string>',
'userName' => '<string>'
],
'recordingPath' => '<string>'
],
'messagePlan' => [
'idleMessages' => [
'<string>'
],
'idleMessageMaxSpokenCount' => 5.5,
'idleMessageResetCountOnUserSpeechEnabled' => true,
'idleTimeoutSeconds' => 32.5,
'silenceTimeoutMessage' => '<string>'
],
'startSpeakingPlan' => [
'waitSeconds' => 0.4,
'smartEndpointingEnabled' => false,
'smartEndpointingPlan' => [
'provider' => 'cozmox'
],
'customEndpointingRules' => [
[
'type' => 'assistant',
'regex' => '<string>',
'timeoutSeconds' => 7.5,
'regexOptions' => [
[
'enabled' => true
]
]
]
],
'transcriptionEndpointingPlan' => [
'onPunctuationSeconds' => 0.1,
'onNoPunctuationSeconds' => 1.5,
'onNumberSeconds' => 0.5
]
],
'stopSpeakingPlan' => [
'numWords' => 0,
'voiceSeconds' => 0.2,
'backoffSeconds' => 1,
'acknowledgementPhrases' => [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
'interruptionPhrases' => [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
],
'monitorPlan' => [
'listenEnabled' => false,
'listenAuthenticationEnabled' => false,
'controlEnabled' => false,
'controlAuthenticationEnabled' => false
],
'credentialIds' => [
'<string>'
],
'server' => [
'timeoutSeconds' => 20,
'url' => '<string>',
'headers' => [
]
],
'keypadInputPlan' => [
'enabled' => true,
'timeoutSeconds' => 5
]
],
'assistantOverrides' => [
'transcriber' => [
'provider' => 'assembly-ai',
'language' => 'en',
'confidenceThreshold' => 0.4,
'enableUniversalStreamingApi' => false,
'formatTurns' => false,
'endOfTurnConfidenceThreshold' => 0.7,
'minEndOfTurnSilenceWhenConfident' => 160,
'wordFinalizationMaxWaitTime' => 160,
'maxTurnSilence' => 400,
'realtimeUrl' => '<string>',
'wordBoost' => [
'<string>'
],
'endUtteranceSilenceThreshold' => 123,
'disablePartialTranscripts' => true
],
'model' => [
'provider' => 'anthropic',
'messages' => [
[
'content' => '<string>'
]
],
'tools' => [
[
'type' => 'apiRequest',
'url' => '<string>',
'messages' => [
[
'type' => 'request-start',
'contents' => [
'<unknown>'
],
'blocking' => false,
'content' => '<string>',
'conditions' => [
[
'param' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutSeconds' => 20,
'name' => '<string>',
'description' => '<string>',
'variableExtractionPlan' => [
'aliases' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
]
]
],
'toolIds' => [
'<string>'
],
'knowledgeBaseId' => '<string>',
'temperature' => 1,
'maxTokens' => 5025,
'emotionRecognitionEnabled' => true,
'numFastTurns' => 1
],
'voice' => [
'provider' => 'azure',
'cachingEnabled' => true,
'chunkPlan' => [
'enabled' => true,
'minCharacters' => 30,
'punctuationBoundaries' => [
'。',
',',
'.',
'!',
'?',
';',
'،',
'۔',
'।',
'॥',
'|',
'||',
',',
':'
],
'formatPlan' => [
'enabled' => true,
'numberToDigitsCutoff' => 2025,
'replacements' => [
[
'type' => 'exact',
'key' => '<string>',
'value' => '<string>',
'replaceAllEnabled' => false
]
]
]
],
'speed' => 1.25
],
'firstMessage' => 'Hello! How can I help you today?',
'firstMessageInterruptionsEnabled' => false,
'firstMessageMode' => 'assistant-speaks-first',
'voicemailDetection' => [
'provider' => 'google',
'beepMaxAwaitSeconds' => 30,
'backoffPlan' => [
'startAtSeconds' => 5,
'frequencySeconds' => 5,
'maxRetries' => 6
]
],
'clientMessages' => [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
'serverMessages' => [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
'silenceTimeoutSeconds' => 30,
'maxDurationSeconds' => 600,
'backgroundSound' => 'office',
'backgroundDenoisingEnabled' => false,
'modelOutputInMessagesEnabled' => false,
'transportConfigurations' => [
[
'provider' => 'twilio',
'timeout' => 60,
'record' => false,
'recordingChannels' => 'mono'
]
],
'credentials' => [
[
'provider' => 'anthropic',
'apiKey' => '<string>',
'name' => '<string>'
]
],
'hooks' => [
[
'on' => 'call.ending',
'do' => [
[
'type' => 'transfer',
'destination' => [
'type' => 'number',
'number' => '<string>',
'message' => '<string>',
'numberE164CheckEnabled' => true,
'extension' => '<string>',
'callerId' => '<string>',
'description' => '<string>'
]
]
],
'filters' => [
[
'type' => 'oneOf',
'key' => '<string>',
'oneOf' => [
'<string>'
]
]
]
]
],
'variableValues' => [
],
'name' => '<string>',
'voicemailMessage' => '<string>',
'endCallMessage' => '<string>',
'endCallPhrases' => [
'<string>'
],
'compliancePlan' => [
'hipaaEnabled' => [
'hipaaEnabled' => false
],
'pciEnabled' => [
'pciEnabled' => false
]
],
'metadata' => [
],
'backgroundSpeechDenoisingPlan' => [
'smartDenoisingPlan' => [
'enabled' => false
],
'fourierDenoisingPlan' => [
'enabled' => false,
'mediaDetectionEnabled' => true,
'staticThreshold' => -35,
'baselineOffsetDb' => -15,
'windowSizeMs' => 3000,
'baselinePercentile' => 85
]
],
'analysisPlan' => [
'minMessagesThreshold' => 1,
'summaryPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataMultiPlan' => [
[
'key' => '<string>',
'plan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
]
],
'successEvaluationPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
],
'artifactPlan' => [
'recordingEnabled' => true,
'videoRecordingEnabled' => false,
'pcapEnabled' => true,
'pcapS3PathPrefix' => '/pcaps',
'transcriptPlan' => [
'enabled' => true,
'assistantName' => '<string>',
'userName' => '<string>'
],
'recordingPath' => '<string>'
],
'messagePlan' => [
'idleMessages' => [
'<string>'
],
'idleMessageMaxSpokenCount' => 5.5,
'idleMessageResetCountOnUserSpeechEnabled' => true,
'idleTimeoutSeconds' => 32.5,
'silenceTimeoutMessage' => '<string>'
],
'startSpeakingPlan' => [
'waitSeconds' => 0.4,
'smartEndpointingEnabled' => false,
'smartEndpointingPlan' => [
'provider' => 'cozmox'
],
'customEndpointingRules' => [
[
'type' => 'assistant',
'regex' => '<string>',
'timeoutSeconds' => 7.5,
'regexOptions' => [
[
'enabled' => true
]
]
]
],
'transcriptionEndpointingPlan' => [
'onPunctuationSeconds' => 0.1,
'onNoPunctuationSeconds' => 1.5,
'onNumberSeconds' => 0.5
]
],
'stopSpeakingPlan' => [
'numWords' => 0,
'voiceSeconds' => 0.2,
'backoffSeconds' => 1,
'acknowledgementPhrases' => [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
'interruptionPhrases' => [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
],
'monitorPlan' => [
'listenEnabled' => false,
'listenAuthenticationEnabled' => false,
'controlEnabled' => false,
'controlAuthenticationEnabled' => false
],
'credentialIds' => [
'<string>'
],
'server' => [
'timeoutSeconds' => 20,
'url' => '<string>',
'headers' => [
]
],
'keypadInputPlan' => [
'enabled' => true,
'timeoutSeconds' => 5
]
],
'squadId' => '<string>',
'workflowId' => '<string>',
'workflowOverrides' => [
'variableValues' => [
]
],
'phoneNumberId' => '<string>',
'customerId' => '<string>',
'customer' => [
'numberE164CheckEnabled' => true,
'extension' => null,
'assistantOverrides' => [
'transcriber' => [
'provider' => 'assembly-ai',
'language' => 'en',
'confidenceThreshold' => 0.4,
'enableUniversalStreamingApi' => false,
'formatTurns' => false,
'endOfTurnConfidenceThreshold' => 0.7,
'minEndOfTurnSilenceWhenConfident' => 160,
'wordFinalizationMaxWaitTime' => 160,
'maxTurnSilence' => 400,
'realtimeUrl' => '<string>',
'wordBoost' => [
'<string>'
],
'endUtteranceSilenceThreshold' => 123,
'disablePartialTranscripts' => true
],
'model' => [
'provider' => 'anthropic',
'messages' => [
[
'content' => '<string>'
]
],
'tools' => [
[
'type' => 'apiRequest',
'url' => '<string>',
'messages' => [
[
'type' => 'request-start',
'contents' => [
'<unknown>'
],
'blocking' => false,
'content' => '<string>',
'conditions' => [
[
'param' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutSeconds' => 20,
'name' => '<string>',
'description' => '<string>',
'variableExtractionPlan' => [
'aliases' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
]
]
],
'toolIds' => [
'<string>'
],
'knowledgeBaseId' => '<string>',
'temperature' => 1,
'maxTokens' => 5025,
'emotionRecognitionEnabled' => true,
'numFastTurns' => 1
],
'voice' => [
'provider' => 'azure',
'cachingEnabled' => true,
'chunkPlan' => [
'enabled' => true,
'minCharacters' => 30,
'punctuationBoundaries' => [
'。',
',',
'.',
'!',
'?',
';',
'،',
'۔',
'।',
'॥',
'|',
'||',
',',
':'
],
'formatPlan' => [
'enabled' => true,
'numberToDigitsCutoff' => 2025,
'replacements' => [
[
'type' => 'exact',
'key' => '<string>',
'value' => '<string>',
'replaceAllEnabled' => false
]
]
]
],
'speed' => 1.25
],
'firstMessage' => 'Hello! How can I help you today?',
'firstMessageInterruptionsEnabled' => false,
'firstMessageMode' => 'assistant-speaks-first',
'voicemailDetection' => [
'provider' => 'google',
'beepMaxAwaitSeconds' => 30,
'backoffPlan' => [
'startAtSeconds' => 5,
'frequencySeconds' => 5,
'maxRetries' => 6
]
],
'clientMessages' => [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
'serverMessages' => [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
'silenceTimeoutSeconds' => 30,
'maxDurationSeconds' => 600,
'backgroundSound' => 'office',
'backgroundDenoisingEnabled' => false,
'modelOutputInMessagesEnabled' => false,
'transportConfigurations' => [
[
'provider' => 'twilio',
'timeout' => 60,
'record' => false,
'recordingChannels' => 'mono'
]
],
'credentials' => [
[
'provider' => 'anthropic',
'apiKey' => '<string>',
'name' => '<string>'
]
],
'hooks' => [
[
'on' => 'call.ending',
'do' => [
[
'type' => 'transfer',
'destination' => [
'type' => 'number',
'number' => '<string>',
'message' => '<string>',
'numberE164CheckEnabled' => true,
'extension' => '<string>',
'callerId' => '<string>',
'description' => '<string>'
]
]
],
'filters' => [
[
'type' => 'oneOf',
'key' => '<string>',
'oneOf' => [
'<string>'
]
]
]
]
],
'variableValues' => [
],
'name' => '<string>',
'voicemailMessage' => '<string>',
'endCallMessage' => '<string>',
'endCallPhrases' => [
'<string>'
],
'compliancePlan' => [
'hipaaEnabled' => [
'hipaaEnabled' => false
],
'pciEnabled' => [
'pciEnabled' => false
]
],
'metadata' => [
],
'backgroundSpeechDenoisingPlan' => [
'smartDenoisingPlan' => [
'enabled' => false
],
'fourierDenoisingPlan' => [
'enabled' => false,
'mediaDetectionEnabled' => true,
'staticThreshold' => -35,
'baselineOffsetDb' => -15,
'windowSizeMs' => 3000,
'baselinePercentile' => 85
]
],
'analysisPlan' => [
'minMessagesThreshold' => 1,
'summaryPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataMultiPlan' => [
[
'key' => '<string>',
'plan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
]
],
'successEvaluationPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
],
'artifactPlan' => [
'recordingEnabled' => true,
'videoRecordingEnabled' => false,
'pcapEnabled' => true,
'pcapS3PathPrefix' => '/pcaps',
'transcriptPlan' => [
'enabled' => true,
'assistantName' => '<string>',
'userName' => '<string>'
],
'recordingPath' => '<string>'
],
'messagePlan' => [
'idleMessages' => [
'<string>'
],
'idleMessageMaxSpokenCount' => 5.5,
'idleMessageResetCountOnUserSpeechEnabled' => true,
'idleTimeoutSeconds' => 32.5,
'silenceTimeoutMessage' => '<string>'
],
'startSpeakingPlan' => [
'waitSeconds' => 0.4,
'smartEndpointingEnabled' => false,
'smartEndpointingPlan' => [
'provider' => 'cozmox'
],
'customEndpointingRules' => [
[
'type' => 'assistant',
'regex' => '<string>',
'timeoutSeconds' => 7.5,
'regexOptions' => [
[
'enabled' => true
]
]
]
],
'transcriptionEndpointingPlan' => [
'onPunctuationSeconds' => 0.1,
'onNoPunctuationSeconds' => 1.5,
'onNumberSeconds' => 0.5
]
],
'stopSpeakingPlan' => [
'numWords' => 0,
'voiceSeconds' => 0.2,
'backoffSeconds' => 1,
'acknowledgementPhrases' => [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
'interruptionPhrases' => [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
],
'monitorPlan' => [
'listenEnabled' => false,
'listenAuthenticationEnabled' => false,
'controlEnabled' => false,
'controlAuthenticationEnabled' => false
],
'credentialIds' => [
'<string>'
],
'server' => [
'timeoutSeconds' => 20,
'url' => '<string>',
'headers' => [
]
],
'keypadInputPlan' => [
'enabled' => true,
'timeoutSeconds' => 5
]
],
'number' => '<string>',
'sipUri' => '<string>',
'name' => '<string>',
'email' => '<string>',
'externalId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cozmox.ai/call"
payload := strings.NewReader("{\n \"customers\": [\n {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n ],\n \"name\": \"<string>\",\n \"transport\": {},\n \"assistantId\": \"<string>\",\n \"assistant\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"squadId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowOverrides\": {\n \"variableValues\": {}\n },\n \"phoneNumberId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"customer\": {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cozmox.ai/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customers\": [\n {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n ],\n \"name\": \"<string>\",\n \"transport\": {},\n \"assistantId\": \"<string>\",\n \"assistant\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"squadId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowOverrides\": {\n \"variableValues\": {}\n },\n \"phoneNumberId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"customer\": {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cozmox.ai/call")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customers\": [\n {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n ],\n \"name\": \"<string>\",\n \"transport\": {},\n \"assistantId\": \"<string>\",\n \"assistant\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"squadId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowOverrides\": {\n \"variableValues\": {}\n },\n \"phoneNumberId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"customer\": {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"costs": [
{
"type": "transport",
"minutes": 123,
"cost": 123
}
],
"messages": [
{
"role": "<string>",
"message": "<string>",
"time": 123,
"endTime": 123,
"secondsFromStart": 123,
"duration": 123
}
],
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
},
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"cost": 123,
"costBreakdown": {
"transport": 123,
"stt": 123,
"llm": 123,
"tts": 123,
"cozmox": 123,
"chat": 123,
"total": 123,
"llmPromptTokens": 123,
"llmCompletionTokens": 123,
"ttsCharacters": 123,
"analysisCostBreakdown": {
"summary": 123,
"summaryPromptTokens": 123,
"summaryCompletionTokens": 123,
"structuredData": 123,
"structuredDataPromptTokens": 123,
"structuredDataCompletionTokens": 123,
"successEvaluation": 123,
"successEvaluationPromptTokens": 123,
"successEvaluationCompletionTokens": 123
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"analysis": {
"summary": "<string>",
"structuredData": {},
"structuredDataMulti": [
{}
],
"successEvaluation": "<string>"
},
"monitor": {
"listenUrl": "<string>",
"controlUrl": "<string>"
},
"artifact": {
"messages": [
{
"role": "<string>",
"message": "<string>",
"time": 123,
"endTime": 123,
"secondsFromStart": 123,
"duration": 123
}
],
"messagesOpenAIFormatted": [
{
"content": "<string>"
}
],
"recordingUrl": "<string>",
"stereoRecordingUrl": "<string>",
"videoRecordingUrl": "<string>",
"videoRecordingStartDelaySeconds": 123,
"recording": {
"stereoUrl": "<string>",
"videoUrl": "<string>",
"videoRecordingStartDelaySeconds": 123,
"mono": {
"combinedUrl": "<string>",
"assistantUrl": "<string>",
"customerUrl": "<string>"
}
},
"transcript": "<string>",
"pcapUrl": "<string>",
"nodes": [
{
"messages": [
{
"role": "<string>",
"message": "<string>",
"time": 123,
"endTime": 123,
"secondsFromStart": 123,
"duration": 123
}
],
"nodeName": "<string>",
"variableValues": {}
}
],
"variableValues": {}
},
"phoneCallProviderId": "<string>",
"campaignId": "<string>",
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"squadId": "<string>",
"squad": {
"members": [
{
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"assistantDestinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
]
}
],
"name": "<string>",
"membersOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
}
},
"workflowId": "<string>",
"workflow": {
"nodes": [
{
"type": "conversation",
"name": "<string>",
"model": {
"provider": "openai",
"temperature": 1,
"maxTokens": 5025
},
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"voiceId": "<unknown>",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": "<unknown>"
}
]
}
},
"prompt": "<string>",
"globalNodePlan": {
"enabled": false,
"enterCondition": ""
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"isStart": true,
"metadata": {}
}
],
"name": "<string>",
"edges": [
{
"from": "<string>",
"to": "<string>",
"condition": {
"type": "ai",
"prompt": "<string>"
},
"metadata": {}
}
],
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"backgroundSound": "office",
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"globalPrompt": "<string>",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"credentialIds": [
"<string>"
]
},
"workflowOverrides": {
"variableValues": {}
},
"phoneNumberId": "<string>",
"phoneNumber": {
"twilioPhoneNumber": "<string>",
"twilioAccountSid": "<string>",
"fallbackDestination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
},
"hooks": [
{
"on": "call.ringing",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
]
}
],
"smsEnabled": true,
"twilioAuthToken": "<string>",
"twilioApiKey": "<string>",
"twilioApiSecret": "<string>",
"name": "<string>",
"assistantId": "<string>",
"workflowId": "<string>",
"squadId": "<string>",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"customerId": "<string>",
"customer": {
"numberE164CheckEnabled": true,
"extension": null,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
},
"name": "<string>",
"schedulePlan": {
"earliestAt": "2023-11-07T05:31:56Z",
"latestAt": "2023-11-07T05:31:56Z"
},
"transport": {}
}Create Call
curl --request POST \
--url https://api.cozmox.ai/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customers": [
{
"numberE164CheckEnabled": true,
"extension": null,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": {
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
}
],
"name": "<string>",
"transport": {},
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": {
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": {
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"squadId": "<string>",
"workflowId": "<string>",
"workflowOverrides": {
"variableValues": {}
},
"phoneNumberId": "<string>",
"customerId": "<string>",
"customer": {
"numberE164CheckEnabled": true,
"extension": null,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": {
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
}
}
'import requests
url = "https://api.cozmox.ai/call"
payload = {
"customers": [
{
"numberE164CheckEnabled": True,
"extension": None,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": False,
"formatTurns": False,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": ["<string>"],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": True
},
"model": {
"provider": "anthropic",
"messages": [{ "content": "<string>" }],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": ["<unknown>"],
"blocking": False,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": { "aliases": [
{
"key": "<string>",
"value": "<string>"
}
] }
}
],
"toolIds": ["<string>"],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": True,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": True,
"chunkPlan": {
"enabled": True,
"minCharacters": 30,
"punctuationBoundaries": ["。", ",", ".", "!", "?", ";", "،", "۔", "।", "॥", "|", "||", ",", ":"],
"formatPlan": {
"enabled": True,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": False
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": False,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": ["conversation-update", "function-call", "hang", "model-output", "speech-update", "status-update", "transfer-update", "transcript", "tool-calls", "user-interrupted", "voice-input", "workflow.node.started"],
"serverMessages": ["conversation-update", "end-of-call-report", "function-call", "hang", "speech-update", "status-update", "tool-calls", "transfer-destination-request", "user-interrupted"],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": False,
"modelOutputInMessagesEnabled": False,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": False,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": True,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": ["<string>"]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": ["<string>"],
"compliancePlan": {
"hipaaEnabled": { "hipaaEnabled": False },
"pciEnabled": { "pciEnabled": False }
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": { "enabled": False },
"fourierDenoisingPlan": {
"enabled": False,
"mediaDetectionEnabled": True,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": True,
"videoRecordingEnabled": False,
"pcapEnabled": True,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": True,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": ["<string>"],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": True,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": False,
"smartEndpointingPlan": { "provider": "cozmox" },
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [{ "enabled": True }]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": ["i understand", "i see", "i got it", "i hear you", "im listening", "im with you", "right", "okay", "ok", "sure", "alright", "got it", "understood", "yeah", "yes", "uh-huh", "mm-hmm", "gotcha", "mhmm", "ah", "yeah okay", "yeah sure"],
"interruptionPhrases": ["stop", "shut", "up", "enough", "quiet", "silence", "but", "dont", "not", "no", "hold", "wait", "cut", "pause", "nope", "nah", "nevermind", "never", "bad", "actually"]
},
"monitorPlan": {
"listenEnabled": False,
"listenAuthenticationEnabled": False,
"controlEnabled": False,
"controlAuthenticationEnabled": False
},
"credentialIds": ["<string>"],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": True,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
}
],
"name": "<string>",
"transport": {},
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": False,
"formatTurns": False,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": ["<string>"],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": True
},
"model": {
"provider": "anthropic",
"messages": [{ "content": "<string>" }],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": ["<unknown>"],
"blocking": False,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": { "aliases": [
{
"key": "<string>",
"value": "<string>"
}
] }
}
],
"toolIds": ["<string>"],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": True,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": True,
"chunkPlan": {
"enabled": True,
"minCharacters": 30,
"punctuationBoundaries": ["。", ",", ".", "!", "?", ";", "،", "۔", "।", "॥", "|", "||", ",", ":"],
"formatPlan": {
"enabled": True,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": False
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": False,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": ["conversation-update", "function-call", "hang", "model-output", "speech-update", "status-update", "transfer-update", "transcript", "tool-calls", "user-interrupted", "voice-input", "workflow.node.started"],
"serverMessages": ["conversation-update", "end-of-call-report", "function-call", "hang", "speech-update", "status-update", "tool-calls", "transfer-destination-request", "user-interrupted"],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": False,
"modelOutputInMessagesEnabled": False,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": False,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": True,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": ["<string>"]
}
]
}
],
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": ["<string>"],
"compliancePlan": {
"hipaaEnabled": { "hipaaEnabled": False },
"pciEnabled": { "pciEnabled": False }
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": { "enabled": False },
"fourierDenoisingPlan": {
"enabled": False,
"mediaDetectionEnabled": True,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": True,
"videoRecordingEnabled": False,
"pcapEnabled": True,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": True,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": ["<string>"],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": True,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": False,
"smartEndpointingPlan": { "provider": "cozmox" },
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [{ "enabled": True }]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": ["i understand", "i see", "i got it", "i hear you", "im listening", "im with you", "right", "okay", "ok", "sure", "alright", "got it", "understood", "yeah", "yes", "uh-huh", "mm-hmm", "gotcha", "mhmm", "ah", "yeah okay", "yeah sure"],
"interruptionPhrases": ["stop", "shut", "up", "enough", "quiet", "silence", "but", "dont", "not", "no", "hold", "wait", "cut", "pause", "nope", "nah", "nevermind", "never", "bad", "actually"]
},
"monitorPlan": {
"listenEnabled": False,
"listenAuthenticationEnabled": False,
"controlEnabled": False,
"controlAuthenticationEnabled": False
},
"credentialIds": ["<string>"],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": True,
"timeoutSeconds": 5
}
},
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": False,
"formatTurns": False,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": ["<string>"],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": True
},
"model": {
"provider": "anthropic",
"messages": [{ "content": "<string>" }],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": ["<unknown>"],
"blocking": False,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": { "aliases": [
{
"key": "<string>",
"value": "<string>"
}
] }
}
],
"toolIds": ["<string>"],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": True,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": True,
"chunkPlan": {
"enabled": True,
"minCharacters": 30,
"punctuationBoundaries": ["。", ",", ".", "!", "?", ";", "،", "۔", "।", "॥", "|", "||", ",", ":"],
"formatPlan": {
"enabled": True,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": False
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": False,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": ["conversation-update", "function-call", "hang", "model-output", "speech-update", "status-update", "transfer-update", "transcript", "tool-calls", "user-interrupted", "voice-input", "workflow.node.started"],
"serverMessages": ["conversation-update", "end-of-call-report", "function-call", "hang", "speech-update", "status-update", "tool-calls", "transfer-destination-request", "user-interrupted"],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": False,
"modelOutputInMessagesEnabled": False,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": False,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": True,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": ["<string>"]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": ["<string>"],
"compliancePlan": {
"hipaaEnabled": { "hipaaEnabled": False },
"pciEnabled": { "pciEnabled": False }
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": { "enabled": False },
"fourierDenoisingPlan": {
"enabled": False,
"mediaDetectionEnabled": True,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": True,
"videoRecordingEnabled": False,
"pcapEnabled": True,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": True,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": ["<string>"],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": True,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": False,
"smartEndpointingPlan": { "provider": "cozmox" },
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [{ "enabled": True }]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": ["i understand", "i see", "i got it", "i hear you", "im listening", "im with you", "right", "okay", "ok", "sure", "alright", "got it", "understood", "yeah", "yes", "uh-huh", "mm-hmm", "gotcha", "mhmm", "ah", "yeah okay", "yeah sure"],
"interruptionPhrases": ["stop", "shut", "up", "enough", "quiet", "silence", "but", "dont", "not", "no", "hold", "wait", "cut", "pause", "nope", "nah", "nevermind", "never", "bad", "actually"]
},
"monitorPlan": {
"listenEnabled": False,
"listenAuthenticationEnabled": False,
"controlEnabled": False,
"controlAuthenticationEnabled": False
},
"credentialIds": ["<string>"],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": True,
"timeoutSeconds": 5
}
},
"squadId": "<string>",
"workflowId": "<string>",
"workflowOverrides": { "variableValues": {} },
"phoneNumberId": "<string>",
"customerId": "<string>",
"customer": {
"numberE164CheckEnabled": True,
"extension": None,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": False,
"formatTurns": False,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": ["<string>"],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": True
},
"model": {
"provider": "anthropic",
"messages": [{ "content": "<string>" }],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": ["<unknown>"],
"blocking": False,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"variableExtractionPlan": { "aliases": [
{
"key": "<string>",
"value": "<string>"
}
] }
}
],
"toolIds": ["<string>"],
"knowledgeBaseId": "<string>",
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": True,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": True,
"chunkPlan": {
"enabled": True,
"minCharacters": 30,
"punctuationBoundaries": ["。", ",", ".", "!", "?", ";", "،", "۔", "।", "॥", "|", "||", ",", ":"],
"formatPlan": {
"enabled": True,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": False
}
]
}
},
"speed": 1.25
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": False,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": ["conversation-update", "function-call", "hang", "model-output", "speech-update", "status-update", "transfer-update", "transcript", "tool-calls", "user-interrupted", "voice-input", "workflow.node.started"],
"serverMessages": ["conversation-update", "end-of-call-report", "function-call", "hang", "speech-update", "status-update", "tool-calls", "transfer-destination-request", "user-interrupted"],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": False,
"modelOutputInMessagesEnabled": False,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": False,
"recordingChannels": "mono"
}
],
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": True,
"extension": "<string>",
"callerId": "<string>",
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": ["<string>"]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": ["<string>"],
"compliancePlan": {
"hipaaEnabled": { "hipaaEnabled": False },
"pciEnabled": { "pciEnabled": False }
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": { "enabled": False },
"fourierDenoisingPlan": {
"enabled": False,
"mediaDetectionEnabled": True,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [{}],
"enabled": True,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": True,
"videoRecordingEnabled": False,
"pcapEnabled": True,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": True,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": ["<string>"],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": True,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": False,
"smartEndpointingPlan": { "provider": "cozmox" },
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [{ "enabled": True }]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": ["i understand", "i see", "i got it", "i hear you", "im listening", "im with you", "right", "okay", "ok", "sure", "alright", "got it", "understood", "yeah", "yes", "uh-huh", "mm-hmm", "gotcha", "mhmm", "ah", "yeah okay", "yeah sure"],
"interruptionPhrases": ["stop", "shut", "up", "enough", "quiet", "silence", "but", "dont", "not", "no", "hold", "wait", "cut", "pause", "nope", "nah", "nevermind", "never", "bad", "actually"]
},
"monitorPlan": {
"listenEnabled": False,
"listenAuthenticationEnabled": False,
"controlEnabled": False,
"controlAuthenticationEnabled": False
},
"credentialIds": ["<string>"],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {}
},
"keypadInputPlan": {
"enabled": True,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customers: [
{
numberE164CheckEnabled: true,
extension: null,
assistantOverrides: {
transcriber: {
provider: 'assembly-ai',
language: 'en',
confidenceThreshold: 0.4,
enableUniversalStreamingApi: false,
formatTurns: false,
endOfTurnConfidenceThreshold: 0.7,
minEndOfTurnSilenceWhenConfident: 160,
wordFinalizationMaxWaitTime: 160,
maxTurnSilence: 400,
realtimeUrl: '<string>',
wordBoost: ['<string>'],
endUtteranceSilenceThreshold: 123,
disablePartialTranscripts: true
},
model: {
provider: 'anthropic',
messages: [{content: '<string>'}],
tools: [
{
type: 'apiRequest',
url: '<string>',
messages: [
{
type: 'request-start',
contents: ['<unknown>'],
blocking: false,
content: '<string>',
conditions: [{param: '<string>', value: '<string>'}]
}
],
timeoutSeconds: 20,
name: '<string>',
description: '<string>',
variableExtractionPlan: {aliases: [{key: '<string>', value: '<string>'}]}
}
],
toolIds: ['<string>'],
knowledgeBaseId: '<string>',
temperature: 1,
maxTokens: 5025,
emotionRecognitionEnabled: true,
numFastTurns: 1
},
voice: {
provider: 'azure',
cachingEnabled: true,
chunkPlan: {
enabled: true,
minCharacters: 30,
punctuationBoundaries: ['。', ',', '.', '!', '?', ';', '،', '۔', '।', '॥', '|', '||', ',', ':'],
formatPlan: {
enabled: true,
numberToDigitsCutoff: 2025,
replacements: [{type: 'exact', key: '<string>', value: '<string>', replaceAllEnabled: false}]
}
},
speed: 1.25
},
firstMessage: 'Hello! How can I help you today?',
firstMessageInterruptionsEnabled: false,
firstMessageMode: 'assistant-speaks-first',
voicemailDetection: {
provider: 'google',
beepMaxAwaitSeconds: 30,
backoffPlan: {startAtSeconds: 5, frequencySeconds: 5, maxRetries: 6}
},
clientMessages: [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
serverMessages: [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
silenceTimeoutSeconds: 30,
maxDurationSeconds: 600,
backgroundSound: 'office',
backgroundDenoisingEnabled: false,
modelOutputInMessagesEnabled: false,
transportConfigurations: [{provider: 'twilio', timeout: 60, record: false, recordingChannels: 'mono'}],
credentials: [{provider: 'anthropic', apiKey: '<string>', name: '<string>'}],
hooks: [
{
on: 'call.ending',
do: [
{
type: 'transfer',
destination: {
type: 'number',
number: '<string>',
message: '<string>',
numberE164CheckEnabled: true,
extension: '<string>',
callerId: '<string>',
description: '<string>'
}
}
],
filters: [{type: 'oneOf', key: '<string>', oneOf: ['<string>']}]
}
],
variableValues: {},
name: '<string>',
voicemailMessage: '<string>',
endCallMessage: '<string>',
endCallPhrases: ['<string>'],
compliancePlan: {hipaaEnabled: {hipaaEnabled: false}, pciEnabled: {pciEnabled: false}},
metadata: {},
backgroundSpeechDenoisingPlan: {
smartDenoisingPlan: {enabled: false},
fourierDenoisingPlan: {
enabled: false,
mediaDetectionEnabled: true,
staticThreshold: -35,
baselineOffsetDb: -15,
windowSizeMs: 3000,
baselinePercentile: 85
}
},
analysisPlan: {
minMessagesThreshold: 1,
summaryPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataMultiPlan: [{key: '<string>', plan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}}],
successEvaluationPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}
},
artifactPlan: {
recordingEnabled: true,
videoRecordingEnabled: false,
pcapEnabled: true,
pcapS3PathPrefix: '/pcaps',
transcriptPlan: {enabled: true, assistantName: '<string>', userName: '<string>'},
recordingPath: '<string>'
},
messagePlan: {
idleMessages: ['<string>'],
idleMessageMaxSpokenCount: 5.5,
idleMessageResetCountOnUserSpeechEnabled: true,
idleTimeoutSeconds: 32.5,
silenceTimeoutMessage: '<string>'
},
startSpeakingPlan: {
waitSeconds: 0.4,
smartEndpointingEnabled: false,
smartEndpointingPlan: {provider: 'cozmox'},
customEndpointingRules: [
{
type: 'assistant',
regex: '<string>',
timeoutSeconds: 7.5,
regexOptions: [{enabled: true}]
}
],
transcriptionEndpointingPlan: {onPunctuationSeconds: 0.1, onNoPunctuationSeconds: 1.5, onNumberSeconds: 0.5}
},
stopSpeakingPlan: {
numWords: 0,
voiceSeconds: 0.2,
backoffSeconds: 1,
acknowledgementPhrases: [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
interruptionPhrases: [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
},
monitorPlan: {
listenEnabled: false,
listenAuthenticationEnabled: false,
controlEnabled: false,
controlAuthenticationEnabled: false
},
credentialIds: ['<string>'],
server: {timeoutSeconds: 20, url: '<string>', headers: {}},
keypadInputPlan: {enabled: true, timeoutSeconds: 5}
},
number: '<string>',
sipUri: '<string>',
name: '<string>',
email: '<string>',
externalId: '<string>'
}
],
name: '<string>',
transport: {},
assistantId: '<string>',
assistant: {
transcriber: {
provider: 'assembly-ai',
language: 'en',
confidenceThreshold: 0.4,
enableUniversalStreamingApi: false,
formatTurns: false,
endOfTurnConfidenceThreshold: 0.7,
minEndOfTurnSilenceWhenConfident: 160,
wordFinalizationMaxWaitTime: 160,
maxTurnSilence: 400,
realtimeUrl: '<string>',
wordBoost: ['<string>'],
endUtteranceSilenceThreshold: 123,
disablePartialTranscripts: true
},
model: {
provider: 'anthropic',
messages: [{content: '<string>'}],
tools: [
{
type: 'apiRequest',
url: '<string>',
messages: [
{
type: 'request-start',
contents: ['<unknown>'],
blocking: false,
content: '<string>',
conditions: [{param: '<string>', value: '<string>'}]
}
],
timeoutSeconds: 20,
name: '<string>',
description: '<string>',
variableExtractionPlan: {aliases: [{key: '<string>', value: '<string>'}]}
}
],
toolIds: ['<string>'],
knowledgeBaseId: '<string>',
temperature: 1,
maxTokens: 5025,
emotionRecognitionEnabled: true,
numFastTurns: 1
},
voice: {
provider: 'azure',
cachingEnabled: true,
chunkPlan: {
enabled: true,
minCharacters: 30,
punctuationBoundaries: ['。', ',', '.', '!', '?', ';', '،', '۔', '।', '॥', '|', '||', ',', ':'],
formatPlan: {
enabled: true,
numberToDigitsCutoff: 2025,
replacements: [{type: 'exact', key: '<string>', value: '<string>', replaceAllEnabled: false}]
}
},
speed: 1.25
},
firstMessage: 'Hello! How can I help you today?',
firstMessageInterruptionsEnabled: false,
firstMessageMode: 'assistant-speaks-first',
voicemailDetection: {
provider: 'google',
beepMaxAwaitSeconds: 30,
backoffPlan: {startAtSeconds: 5, frequencySeconds: 5, maxRetries: 6}
},
clientMessages: [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
serverMessages: [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
silenceTimeoutSeconds: 30,
maxDurationSeconds: 600,
backgroundSound: 'office',
backgroundDenoisingEnabled: false,
modelOutputInMessagesEnabled: false,
transportConfigurations: [{provider: 'twilio', timeout: 60, record: false, recordingChannels: 'mono'}],
credentials: [{provider: 'anthropic', apiKey: '<string>', name: '<string>'}],
hooks: [
{
on: 'call.ending',
do: [
{
type: 'transfer',
destination: {
type: 'number',
number: '<string>',
message: '<string>',
numberE164CheckEnabled: true,
extension: '<string>',
callerId: '<string>',
description: '<string>'
}
}
],
filters: [{type: 'oneOf', key: '<string>', oneOf: ['<string>']}]
}
],
name: '<string>',
voicemailMessage: '<string>',
endCallMessage: '<string>',
endCallPhrases: ['<string>'],
compliancePlan: {hipaaEnabled: {hipaaEnabled: false}, pciEnabled: {pciEnabled: false}},
metadata: {},
backgroundSpeechDenoisingPlan: {
smartDenoisingPlan: {enabled: false},
fourierDenoisingPlan: {
enabled: false,
mediaDetectionEnabled: true,
staticThreshold: -35,
baselineOffsetDb: -15,
windowSizeMs: 3000,
baselinePercentile: 85
}
},
analysisPlan: {
minMessagesThreshold: 1,
summaryPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataMultiPlan: [{key: '<string>', plan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}}],
successEvaluationPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}
},
artifactPlan: {
recordingEnabled: true,
videoRecordingEnabled: false,
pcapEnabled: true,
pcapS3PathPrefix: '/pcaps',
transcriptPlan: {enabled: true, assistantName: '<string>', userName: '<string>'},
recordingPath: '<string>'
},
messagePlan: {
idleMessages: ['<string>'],
idleMessageMaxSpokenCount: 5.5,
idleMessageResetCountOnUserSpeechEnabled: true,
idleTimeoutSeconds: 32.5,
silenceTimeoutMessage: '<string>'
},
startSpeakingPlan: {
waitSeconds: 0.4,
smartEndpointingEnabled: false,
smartEndpointingPlan: {provider: 'cozmox'},
customEndpointingRules: [
{
type: 'assistant',
regex: '<string>',
timeoutSeconds: 7.5,
regexOptions: [{enabled: true}]
}
],
transcriptionEndpointingPlan: {onPunctuationSeconds: 0.1, onNoPunctuationSeconds: 1.5, onNumberSeconds: 0.5}
},
stopSpeakingPlan: {
numWords: 0,
voiceSeconds: 0.2,
backoffSeconds: 1,
acknowledgementPhrases: [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
interruptionPhrases: [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
},
monitorPlan: {
listenEnabled: false,
listenAuthenticationEnabled: false,
controlEnabled: false,
controlAuthenticationEnabled: false
},
credentialIds: ['<string>'],
server: {timeoutSeconds: 20, url: '<string>', headers: {}},
keypadInputPlan: {enabled: true, timeoutSeconds: 5}
},
assistantOverrides: {
transcriber: {
provider: 'assembly-ai',
language: 'en',
confidenceThreshold: 0.4,
enableUniversalStreamingApi: false,
formatTurns: false,
endOfTurnConfidenceThreshold: 0.7,
minEndOfTurnSilenceWhenConfident: 160,
wordFinalizationMaxWaitTime: 160,
maxTurnSilence: 400,
realtimeUrl: '<string>',
wordBoost: ['<string>'],
endUtteranceSilenceThreshold: 123,
disablePartialTranscripts: true
},
model: {
provider: 'anthropic',
messages: [{content: '<string>'}],
tools: [
{
type: 'apiRequest',
url: '<string>',
messages: [
{
type: 'request-start',
contents: ['<unknown>'],
blocking: false,
content: '<string>',
conditions: [{param: '<string>', value: '<string>'}]
}
],
timeoutSeconds: 20,
name: '<string>',
description: '<string>',
variableExtractionPlan: {aliases: [{key: '<string>', value: '<string>'}]}
}
],
toolIds: ['<string>'],
knowledgeBaseId: '<string>',
temperature: 1,
maxTokens: 5025,
emotionRecognitionEnabled: true,
numFastTurns: 1
},
voice: {
provider: 'azure',
cachingEnabled: true,
chunkPlan: {
enabled: true,
minCharacters: 30,
punctuationBoundaries: ['。', ',', '.', '!', '?', ';', '،', '۔', '।', '॥', '|', '||', ',', ':'],
formatPlan: {
enabled: true,
numberToDigitsCutoff: 2025,
replacements: [{type: 'exact', key: '<string>', value: '<string>', replaceAllEnabled: false}]
}
},
speed: 1.25
},
firstMessage: 'Hello! How can I help you today?',
firstMessageInterruptionsEnabled: false,
firstMessageMode: 'assistant-speaks-first',
voicemailDetection: {
provider: 'google',
beepMaxAwaitSeconds: 30,
backoffPlan: {startAtSeconds: 5, frequencySeconds: 5, maxRetries: 6}
},
clientMessages: [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
serverMessages: [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
silenceTimeoutSeconds: 30,
maxDurationSeconds: 600,
backgroundSound: 'office',
backgroundDenoisingEnabled: false,
modelOutputInMessagesEnabled: false,
transportConfigurations: [{provider: 'twilio', timeout: 60, record: false, recordingChannels: 'mono'}],
credentials: [{provider: 'anthropic', apiKey: '<string>', name: '<string>'}],
hooks: [
{
on: 'call.ending',
do: [
{
type: 'transfer',
destination: {
type: 'number',
number: '<string>',
message: '<string>',
numberE164CheckEnabled: true,
extension: '<string>',
callerId: '<string>',
description: '<string>'
}
}
],
filters: [{type: 'oneOf', key: '<string>', oneOf: ['<string>']}]
}
],
variableValues: {},
name: '<string>',
voicemailMessage: '<string>',
endCallMessage: '<string>',
endCallPhrases: ['<string>'],
compliancePlan: {hipaaEnabled: {hipaaEnabled: false}, pciEnabled: {pciEnabled: false}},
metadata: {},
backgroundSpeechDenoisingPlan: {
smartDenoisingPlan: {enabled: false},
fourierDenoisingPlan: {
enabled: false,
mediaDetectionEnabled: true,
staticThreshold: -35,
baselineOffsetDb: -15,
windowSizeMs: 3000,
baselinePercentile: 85
}
},
analysisPlan: {
minMessagesThreshold: 1,
summaryPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataMultiPlan: [{key: '<string>', plan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}}],
successEvaluationPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}
},
artifactPlan: {
recordingEnabled: true,
videoRecordingEnabled: false,
pcapEnabled: true,
pcapS3PathPrefix: '/pcaps',
transcriptPlan: {enabled: true, assistantName: '<string>', userName: '<string>'},
recordingPath: '<string>'
},
messagePlan: {
idleMessages: ['<string>'],
idleMessageMaxSpokenCount: 5.5,
idleMessageResetCountOnUserSpeechEnabled: true,
idleTimeoutSeconds: 32.5,
silenceTimeoutMessage: '<string>'
},
startSpeakingPlan: {
waitSeconds: 0.4,
smartEndpointingEnabled: false,
smartEndpointingPlan: {provider: 'cozmox'},
customEndpointingRules: [
{
type: 'assistant',
regex: '<string>',
timeoutSeconds: 7.5,
regexOptions: [{enabled: true}]
}
],
transcriptionEndpointingPlan: {onPunctuationSeconds: 0.1, onNoPunctuationSeconds: 1.5, onNumberSeconds: 0.5}
},
stopSpeakingPlan: {
numWords: 0,
voiceSeconds: 0.2,
backoffSeconds: 1,
acknowledgementPhrases: [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
interruptionPhrases: [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
},
monitorPlan: {
listenEnabled: false,
listenAuthenticationEnabled: false,
controlEnabled: false,
controlAuthenticationEnabled: false
},
credentialIds: ['<string>'],
server: {timeoutSeconds: 20, url: '<string>', headers: {}},
keypadInputPlan: {enabled: true, timeoutSeconds: 5}
},
squadId: '<string>',
workflowId: '<string>',
workflowOverrides: {variableValues: {}},
phoneNumberId: '<string>',
customerId: '<string>',
customer: {
numberE164CheckEnabled: true,
extension: null,
assistantOverrides: {
transcriber: {
provider: 'assembly-ai',
language: 'en',
confidenceThreshold: 0.4,
enableUniversalStreamingApi: false,
formatTurns: false,
endOfTurnConfidenceThreshold: 0.7,
minEndOfTurnSilenceWhenConfident: 160,
wordFinalizationMaxWaitTime: 160,
maxTurnSilence: 400,
realtimeUrl: '<string>',
wordBoost: ['<string>'],
endUtteranceSilenceThreshold: 123,
disablePartialTranscripts: true
},
model: {
provider: 'anthropic',
messages: [{content: '<string>'}],
tools: [
{
type: 'apiRequest',
url: '<string>',
messages: [
{
type: 'request-start',
contents: ['<unknown>'],
blocking: false,
content: '<string>',
conditions: [{param: '<string>', value: '<string>'}]
}
],
timeoutSeconds: 20,
name: '<string>',
description: '<string>',
variableExtractionPlan: {aliases: [{key: '<string>', value: '<string>'}]}
}
],
toolIds: ['<string>'],
knowledgeBaseId: '<string>',
temperature: 1,
maxTokens: 5025,
emotionRecognitionEnabled: true,
numFastTurns: 1
},
voice: {
provider: 'azure',
cachingEnabled: true,
chunkPlan: {
enabled: true,
minCharacters: 30,
punctuationBoundaries: ['。', ',', '.', '!', '?', ';', '،', '۔', '।', '॥', '|', '||', ',', ':'],
formatPlan: {
enabled: true,
numberToDigitsCutoff: 2025,
replacements: [{type: 'exact', key: '<string>', value: '<string>', replaceAllEnabled: false}]
}
},
speed: 1.25
},
firstMessage: 'Hello! How can I help you today?',
firstMessageInterruptionsEnabled: false,
firstMessageMode: 'assistant-speaks-first',
voicemailDetection: {
provider: 'google',
beepMaxAwaitSeconds: 30,
backoffPlan: {startAtSeconds: 5, frequencySeconds: 5, maxRetries: 6}
},
clientMessages: [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
serverMessages: [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
silenceTimeoutSeconds: 30,
maxDurationSeconds: 600,
backgroundSound: 'office',
backgroundDenoisingEnabled: false,
modelOutputInMessagesEnabled: false,
transportConfigurations: [{provider: 'twilio', timeout: 60, record: false, recordingChannels: 'mono'}],
credentials: [{provider: 'anthropic', apiKey: '<string>', name: '<string>'}],
hooks: [
{
on: 'call.ending',
do: [
{
type: 'transfer',
destination: {
type: 'number',
number: '<string>',
message: '<string>',
numberE164CheckEnabled: true,
extension: '<string>',
callerId: '<string>',
description: '<string>'
}
}
],
filters: [{type: 'oneOf', key: '<string>', oneOf: ['<string>']}]
}
],
variableValues: {},
name: '<string>',
voicemailMessage: '<string>',
endCallMessage: '<string>',
endCallPhrases: ['<string>'],
compliancePlan: {hipaaEnabled: {hipaaEnabled: false}, pciEnabled: {pciEnabled: false}},
metadata: {},
backgroundSpeechDenoisingPlan: {
smartDenoisingPlan: {enabled: false},
fourierDenoisingPlan: {
enabled: false,
mediaDetectionEnabled: true,
staticThreshold: -35,
baselineOffsetDb: -15,
windowSizeMs: 3000,
baselinePercentile: 85
}
},
analysisPlan: {
minMessagesThreshold: 1,
summaryPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5},
structuredDataMultiPlan: [{key: '<string>', plan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}}],
successEvaluationPlan: {messages: [{}], enabled: true, timeoutSeconds: 30.5}
},
artifactPlan: {
recordingEnabled: true,
videoRecordingEnabled: false,
pcapEnabled: true,
pcapS3PathPrefix: '/pcaps',
transcriptPlan: {enabled: true, assistantName: '<string>', userName: '<string>'},
recordingPath: '<string>'
},
messagePlan: {
idleMessages: ['<string>'],
idleMessageMaxSpokenCount: 5.5,
idleMessageResetCountOnUserSpeechEnabled: true,
idleTimeoutSeconds: 32.5,
silenceTimeoutMessage: '<string>'
},
startSpeakingPlan: {
waitSeconds: 0.4,
smartEndpointingEnabled: false,
smartEndpointingPlan: {provider: 'cozmox'},
customEndpointingRules: [
{
type: 'assistant',
regex: '<string>',
timeoutSeconds: 7.5,
regexOptions: [{enabled: true}]
}
],
transcriptionEndpointingPlan: {onPunctuationSeconds: 0.1, onNoPunctuationSeconds: 1.5, onNumberSeconds: 0.5}
},
stopSpeakingPlan: {
numWords: 0,
voiceSeconds: 0.2,
backoffSeconds: 1,
acknowledgementPhrases: [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
interruptionPhrases: [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
},
monitorPlan: {
listenEnabled: false,
listenAuthenticationEnabled: false,
controlEnabled: false,
controlAuthenticationEnabled: false
},
credentialIds: ['<string>'],
server: {timeoutSeconds: 20, url: '<string>', headers: {}},
keypadInputPlan: {enabled: true, timeoutSeconds: 5}
},
number: '<string>',
sipUri: '<string>',
name: '<string>',
email: '<string>',
externalId: '<string>'
}
})
};
fetch('https://api.cozmox.ai/call', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cozmox.ai/call",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customers' => [
[
'numberE164CheckEnabled' => true,
'extension' => null,
'assistantOverrides' => [
'transcriber' => [
'provider' => 'assembly-ai',
'language' => 'en',
'confidenceThreshold' => 0.4,
'enableUniversalStreamingApi' => false,
'formatTurns' => false,
'endOfTurnConfidenceThreshold' => 0.7,
'minEndOfTurnSilenceWhenConfident' => 160,
'wordFinalizationMaxWaitTime' => 160,
'maxTurnSilence' => 400,
'realtimeUrl' => '<string>',
'wordBoost' => [
'<string>'
],
'endUtteranceSilenceThreshold' => 123,
'disablePartialTranscripts' => true
],
'model' => [
'provider' => 'anthropic',
'messages' => [
[
'content' => '<string>'
]
],
'tools' => [
[
'type' => 'apiRequest',
'url' => '<string>',
'messages' => [
[
'type' => 'request-start',
'contents' => [
'<unknown>'
],
'blocking' => false,
'content' => '<string>',
'conditions' => [
[
'param' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutSeconds' => 20,
'name' => '<string>',
'description' => '<string>',
'variableExtractionPlan' => [
'aliases' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
]
]
],
'toolIds' => [
'<string>'
],
'knowledgeBaseId' => '<string>',
'temperature' => 1,
'maxTokens' => 5025,
'emotionRecognitionEnabled' => true,
'numFastTurns' => 1
],
'voice' => [
'provider' => 'azure',
'cachingEnabled' => true,
'chunkPlan' => [
'enabled' => true,
'minCharacters' => 30,
'punctuationBoundaries' => [
'。',
',',
'.',
'!',
'?',
';',
'،',
'۔',
'।',
'॥',
'|',
'||',
',',
':'
],
'formatPlan' => [
'enabled' => true,
'numberToDigitsCutoff' => 2025,
'replacements' => [
[
'type' => 'exact',
'key' => '<string>',
'value' => '<string>',
'replaceAllEnabled' => false
]
]
]
],
'speed' => 1.25
],
'firstMessage' => 'Hello! How can I help you today?',
'firstMessageInterruptionsEnabled' => false,
'firstMessageMode' => 'assistant-speaks-first',
'voicemailDetection' => [
'provider' => 'google',
'beepMaxAwaitSeconds' => 30,
'backoffPlan' => [
'startAtSeconds' => 5,
'frequencySeconds' => 5,
'maxRetries' => 6
]
],
'clientMessages' => [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
'serverMessages' => [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
'silenceTimeoutSeconds' => 30,
'maxDurationSeconds' => 600,
'backgroundSound' => 'office',
'backgroundDenoisingEnabled' => false,
'modelOutputInMessagesEnabled' => false,
'transportConfigurations' => [
[
'provider' => 'twilio',
'timeout' => 60,
'record' => false,
'recordingChannels' => 'mono'
]
],
'credentials' => [
[
'provider' => 'anthropic',
'apiKey' => '<string>',
'name' => '<string>'
]
],
'hooks' => [
[
'on' => 'call.ending',
'do' => [
[
'type' => 'transfer',
'destination' => [
'type' => 'number',
'number' => '<string>',
'message' => '<string>',
'numberE164CheckEnabled' => true,
'extension' => '<string>',
'callerId' => '<string>',
'description' => '<string>'
]
]
],
'filters' => [
[
'type' => 'oneOf',
'key' => '<string>',
'oneOf' => [
'<string>'
]
]
]
]
],
'variableValues' => [
],
'name' => '<string>',
'voicemailMessage' => '<string>',
'endCallMessage' => '<string>',
'endCallPhrases' => [
'<string>'
],
'compliancePlan' => [
'hipaaEnabled' => [
'hipaaEnabled' => false
],
'pciEnabled' => [
'pciEnabled' => false
]
],
'metadata' => [
],
'backgroundSpeechDenoisingPlan' => [
'smartDenoisingPlan' => [
'enabled' => false
],
'fourierDenoisingPlan' => [
'enabled' => false,
'mediaDetectionEnabled' => true,
'staticThreshold' => -35,
'baselineOffsetDb' => -15,
'windowSizeMs' => 3000,
'baselinePercentile' => 85
]
],
'analysisPlan' => [
'minMessagesThreshold' => 1,
'summaryPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataMultiPlan' => [
[
'key' => '<string>',
'plan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
]
],
'successEvaluationPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
],
'artifactPlan' => [
'recordingEnabled' => true,
'videoRecordingEnabled' => false,
'pcapEnabled' => true,
'pcapS3PathPrefix' => '/pcaps',
'transcriptPlan' => [
'enabled' => true,
'assistantName' => '<string>',
'userName' => '<string>'
],
'recordingPath' => '<string>'
],
'messagePlan' => [
'idleMessages' => [
'<string>'
],
'idleMessageMaxSpokenCount' => 5.5,
'idleMessageResetCountOnUserSpeechEnabled' => true,
'idleTimeoutSeconds' => 32.5,
'silenceTimeoutMessage' => '<string>'
],
'startSpeakingPlan' => [
'waitSeconds' => 0.4,
'smartEndpointingEnabled' => false,
'smartEndpointingPlan' => [
'provider' => 'cozmox'
],
'customEndpointingRules' => [
[
'type' => 'assistant',
'regex' => '<string>',
'timeoutSeconds' => 7.5,
'regexOptions' => [
[
'enabled' => true
]
]
]
],
'transcriptionEndpointingPlan' => [
'onPunctuationSeconds' => 0.1,
'onNoPunctuationSeconds' => 1.5,
'onNumberSeconds' => 0.5
]
],
'stopSpeakingPlan' => [
'numWords' => 0,
'voiceSeconds' => 0.2,
'backoffSeconds' => 1,
'acknowledgementPhrases' => [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
'interruptionPhrases' => [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
],
'monitorPlan' => [
'listenEnabled' => false,
'listenAuthenticationEnabled' => false,
'controlEnabled' => false,
'controlAuthenticationEnabled' => false
],
'credentialIds' => [
'<string>'
],
'server' => [
'timeoutSeconds' => 20,
'url' => '<string>',
'headers' => [
]
],
'keypadInputPlan' => [
'enabled' => true,
'timeoutSeconds' => 5
]
],
'number' => '<string>',
'sipUri' => '<string>',
'name' => '<string>',
'email' => '<string>',
'externalId' => '<string>'
]
],
'name' => '<string>',
'transport' => [
],
'assistantId' => '<string>',
'assistant' => [
'transcriber' => [
'provider' => 'assembly-ai',
'language' => 'en',
'confidenceThreshold' => 0.4,
'enableUniversalStreamingApi' => false,
'formatTurns' => false,
'endOfTurnConfidenceThreshold' => 0.7,
'minEndOfTurnSilenceWhenConfident' => 160,
'wordFinalizationMaxWaitTime' => 160,
'maxTurnSilence' => 400,
'realtimeUrl' => '<string>',
'wordBoost' => [
'<string>'
],
'endUtteranceSilenceThreshold' => 123,
'disablePartialTranscripts' => true
],
'model' => [
'provider' => 'anthropic',
'messages' => [
[
'content' => '<string>'
]
],
'tools' => [
[
'type' => 'apiRequest',
'url' => '<string>',
'messages' => [
[
'type' => 'request-start',
'contents' => [
'<unknown>'
],
'blocking' => false,
'content' => '<string>',
'conditions' => [
[
'param' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutSeconds' => 20,
'name' => '<string>',
'description' => '<string>',
'variableExtractionPlan' => [
'aliases' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
]
]
],
'toolIds' => [
'<string>'
],
'knowledgeBaseId' => '<string>',
'temperature' => 1,
'maxTokens' => 5025,
'emotionRecognitionEnabled' => true,
'numFastTurns' => 1
],
'voice' => [
'provider' => 'azure',
'cachingEnabled' => true,
'chunkPlan' => [
'enabled' => true,
'minCharacters' => 30,
'punctuationBoundaries' => [
'。',
',',
'.',
'!',
'?',
';',
'،',
'۔',
'।',
'॥',
'|',
'||',
',',
':'
],
'formatPlan' => [
'enabled' => true,
'numberToDigitsCutoff' => 2025,
'replacements' => [
[
'type' => 'exact',
'key' => '<string>',
'value' => '<string>',
'replaceAllEnabled' => false
]
]
]
],
'speed' => 1.25
],
'firstMessage' => 'Hello! How can I help you today?',
'firstMessageInterruptionsEnabled' => false,
'firstMessageMode' => 'assistant-speaks-first',
'voicemailDetection' => [
'provider' => 'google',
'beepMaxAwaitSeconds' => 30,
'backoffPlan' => [
'startAtSeconds' => 5,
'frequencySeconds' => 5,
'maxRetries' => 6
]
],
'clientMessages' => [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
'serverMessages' => [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
'silenceTimeoutSeconds' => 30,
'maxDurationSeconds' => 600,
'backgroundSound' => 'office',
'backgroundDenoisingEnabled' => false,
'modelOutputInMessagesEnabled' => false,
'transportConfigurations' => [
[
'provider' => 'twilio',
'timeout' => 60,
'record' => false,
'recordingChannels' => 'mono'
]
],
'credentials' => [
[
'provider' => 'anthropic',
'apiKey' => '<string>',
'name' => '<string>'
]
],
'hooks' => [
[
'on' => 'call.ending',
'do' => [
[
'type' => 'transfer',
'destination' => [
'type' => 'number',
'number' => '<string>',
'message' => '<string>',
'numberE164CheckEnabled' => true,
'extension' => '<string>',
'callerId' => '<string>',
'description' => '<string>'
]
]
],
'filters' => [
[
'type' => 'oneOf',
'key' => '<string>',
'oneOf' => [
'<string>'
]
]
]
]
],
'name' => '<string>',
'voicemailMessage' => '<string>',
'endCallMessage' => '<string>',
'endCallPhrases' => [
'<string>'
],
'compliancePlan' => [
'hipaaEnabled' => [
'hipaaEnabled' => false
],
'pciEnabled' => [
'pciEnabled' => false
]
],
'metadata' => [
],
'backgroundSpeechDenoisingPlan' => [
'smartDenoisingPlan' => [
'enabled' => false
],
'fourierDenoisingPlan' => [
'enabled' => false,
'mediaDetectionEnabled' => true,
'staticThreshold' => -35,
'baselineOffsetDb' => -15,
'windowSizeMs' => 3000,
'baselinePercentile' => 85
]
],
'analysisPlan' => [
'minMessagesThreshold' => 1,
'summaryPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataMultiPlan' => [
[
'key' => '<string>',
'plan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
]
],
'successEvaluationPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
],
'artifactPlan' => [
'recordingEnabled' => true,
'videoRecordingEnabled' => false,
'pcapEnabled' => true,
'pcapS3PathPrefix' => '/pcaps',
'transcriptPlan' => [
'enabled' => true,
'assistantName' => '<string>',
'userName' => '<string>'
],
'recordingPath' => '<string>'
],
'messagePlan' => [
'idleMessages' => [
'<string>'
],
'idleMessageMaxSpokenCount' => 5.5,
'idleMessageResetCountOnUserSpeechEnabled' => true,
'idleTimeoutSeconds' => 32.5,
'silenceTimeoutMessage' => '<string>'
],
'startSpeakingPlan' => [
'waitSeconds' => 0.4,
'smartEndpointingEnabled' => false,
'smartEndpointingPlan' => [
'provider' => 'cozmox'
],
'customEndpointingRules' => [
[
'type' => 'assistant',
'regex' => '<string>',
'timeoutSeconds' => 7.5,
'regexOptions' => [
[
'enabled' => true
]
]
]
],
'transcriptionEndpointingPlan' => [
'onPunctuationSeconds' => 0.1,
'onNoPunctuationSeconds' => 1.5,
'onNumberSeconds' => 0.5
]
],
'stopSpeakingPlan' => [
'numWords' => 0,
'voiceSeconds' => 0.2,
'backoffSeconds' => 1,
'acknowledgementPhrases' => [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
'interruptionPhrases' => [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
],
'monitorPlan' => [
'listenEnabled' => false,
'listenAuthenticationEnabled' => false,
'controlEnabled' => false,
'controlAuthenticationEnabled' => false
],
'credentialIds' => [
'<string>'
],
'server' => [
'timeoutSeconds' => 20,
'url' => '<string>',
'headers' => [
]
],
'keypadInputPlan' => [
'enabled' => true,
'timeoutSeconds' => 5
]
],
'assistantOverrides' => [
'transcriber' => [
'provider' => 'assembly-ai',
'language' => 'en',
'confidenceThreshold' => 0.4,
'enableUniversalStreamingApi' => false,
'formatTurns' => false,
'endOfTurnConfidenceThreshold' => 0.7,
'minEndOfTurnSilenceWhenConfident' => 160,
'wordFinalizationMaxWaitTime' => 160,
'maxTurnSilence' => 400,
'realtimeUrl' => '<string>',
'wordBoost' => [
'<string>'
],
'endUtteranceSilenceThreshold' => 123,
'disablePartialTranscripts' => true
],
'model' => [
'provider' => 'anthropic',
'messages' => [
[
'content' => '<string>'
]
],
'tools' => [
[
'type' => 'apiRequest',
'url' => '<string>',
'messages' => [
[
'type' => 'request-start',
'contents' => [
'<unknown>'
],
'blocking' => false,
'content' => '<string>',
'conditions' => [
[
'param' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutSeconds' => 20,
'name' => '<string>',
'description' => '<string>',
'variableExtractionPlan' => [
'aliases' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
]
]
],
'toolIds' => [
'<string>'
],
'knowledgeBaseId' => '<string>',
'temperature' => 1,
'maxTokens' => 5025,
'emotionRecognitionEnabled' => true,
'numFastTurns' => 1
],
'voice' => [
'provider' => 'azure',
'cachingEnabled' => true,
'chunkPlan' => [
'enabled' => true,
'minCharacters' => 30,
'punctuationBoundaries' => [
'。',
',',
'.',
'!',
'?',
';',
'،',
'۔',
'।',
'॥',
'|',
'||',
',',
':'
],
'formatPlan' => [
'enabled' => true,
'numberToDigitsCutoff' => 2025,
'replacements' => [
[
'type' => 'exact',
'key' => '<string>',
'value' => '<string>',
'replaceAllEnabled' => false
]
]
]
],
'speed' => 1.25
],
'firstMessage' => 'Hello! How can I help you today?',
'firstMessageInterruptionsEnabled' => false,
'firstMessageMode' => 'assistant-speaks-first',
'voicemailDetection' => [
'provider' => 'google',
'beepMaxAwaitSeconds' => 30,
'backoffPlan' => [
'startAtSeconds' => 5,
'frequencySeconds' => 5,
'maxRetries' => 6
]
],
'clientMessages' => [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
'serverMessages' => [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
'silenceTimeoutSeconds' => 30,
'maxDurationSeconds' => 600,
'backgroundSound' => 'office',
'backgroundDenoisingEnabled' => false,
'modelOutputInMessagesEnabled' => false,
'transportConfigurations' => [
[
'provider' => 'twilio',
'timeout' => 60,
'record' => false,
'recordingChannels' => 'mono'
]
],
'credentials' => [
[
'provider' => 'anthropic',
'apiKey' => '<string>',
'name' => '<string>'
]
],
'hooks' => [
[
'on' => 'call.ending',
'do' => [
[
'type' => 'transfer',
'destination' => [
'type' => 'number',
'number' => '<string>',
'message' => '<string>',
'numberE164CheckEnabled' => true,
'extension' => '<string>',
'callerId' => '<string>',
'description' => '<string>'
]
]
],
'filters' => [
[
'type' => 'oneOf',
'key' => '<string>',
'oneOf' => [
'<string>'
]
]
]
]
],
'variableValues' => [
],
'name' => '<string>',
'voicemailMessage' => '<string>',
'endCallMessage' => '<string>',
'endCallPhrases' => [
'<string>'
],
'compliancePlan' => [
'hipaaEnabled' => [
'hipaaEnabled' => false
],
'pciEnabled' => [
'pciEnabled' => false
]
],
'metadata' => [
],
'backgroundSpeechDenoisingPlan' => [
'smartDenoisingPlan' => [
'enabled' => false
],
'fourierDenoisingPlan' => [
'enabled' => false,
'mediaDetectionEnabled' => true,
'staticThreshold' => -35,
'baselineOffsetDb' => -15,
'windowSizeMs' => 3000,
'baselinePercentile' => 85
]
],
'analysisPlan' => [
'minMessagesThreshold' => 1,
'summaryPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataMultiPlan' => [
[
'key' => '<string>',
'plan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
]
],
'successEvaluationPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
],
'artifactPlan' => [
'recordingEnabled' => true,
'videoRecordingEnabled' => false,
'pcapEnabled' => true,
'pcapS3PathPrefix' => '/pcaps',
'transcriptPlan' => [
'enabled' => true,
'assistantName' => '<string>',
'userName' => '<string>'
],
'recordingPath' => '<string>'
],
'messagePlan' => [
'idleMessages' => [
'<string>'
],
'idleMessageMaxSpokenCount' => 5.5,
'idleMessageResetCountOnUserSpeechEnabled' => true,
'idleTimeoutSeconds' => 32.5,
'silenceTimeoutMessage' => '<string>'
],
'startSpeakingPlan' => [
'waitSeconds' => 0.4,
'smartEndpointingEnabled' => false,
'smartEndpointingPlan' => [
'provider' => 'cozmox'
],
'customEndpointingRules' => [
[
'type' => 'assistant',
'regex' => '<string>',
'timeoutSeconds' => 7.5,
'regexOptions' => [
[
'enabled' => true
]
]
]
],
'transcriptionEndpointingPlan' => [
'onPunctuationSeconds' => 0.1,
'onNoPunctuationSeconds' => 1.5,
'onNumberSeconds' => 0.5
]
],
'stopSpeakingPlan' => [
'numWords' => 0,
'voiceSeconds' => 0.2,
'backoffSeconds' => 1,
'acknowledgementPhrases' => [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
'interruptionPhrases' => [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
],
'monitorPlan' => [
'listenEnabled' => false,
'listenAuthenticationEnabled' => false,
'controlEnabled' => false,
'controlAuthenticationEnabled' => false
],
'credentialIds' => [
'<string>'
],
'server' => [
'timeoutSeconds' => 20,
'url' => '<string>',
'headers' => [
]
],
'keypadInputPlan' => [
'enabled' => true,
'timeoutSeconds' => 5
]
],
'squadId' => '<string>',
'workflowId' => '<string>',
'workflowOverrides' => [
'variableValues' => [
]
],
'phoneNumberId' => '<string>',
'customerId' => '<string>',
'customer' => [
'numberE164CheckEnabled' => true,
'extension' => null,
'assistantOverrides' => [
'transcriber' => [
'provider' => 'assembly-ai',
'language' => 'en',
'confidenceThreshold' => 0.4,
'enableUniversalStreamingApi' => false,
'formatTurns' => false,
'endOfTurnConfidenceThreshold' => 0.7,
'minEndOfTurnSilenceWhenConfident' => 160,
'wordFinalizationMaxWaitTime' => 160,
'maxTurnSilence' => 400,
'realtimeUrl' => '<string>',
'wordBoost' => [
'<string>'
],
'endUtteranceSilenceThreshold' => 123,
'disablePartialTranscripts' => true
],
'model' => [
'provider' => 'anthropic',
'messages' => [
[
'content' => '<string>'
]
],
'tools' => [
[
'type' => 'apiRequest',
'url' => '<string>',
'messages' => [
[
'type' => 'request-start',
'contents' => [
'<unknown>'
],
'blocking' => false,
'content' => '<string>',
'conditions' => [
[
'param' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutSeconds' => 20,
'name' => '<string>',
'description' => '<string>',
'variableExtractionPlan' => [
'aliases' => [
[
'key' => '<string>',
'value' => '<string>'
]
]
]
]
],
'toolIds' => [
'<string>'
],
'knowledgeBaseId' => '<string>',
'temperature' => 1,
'maxTokens' => 5025,
'emotionRecognitionEnabled' => true,
'numFastTurns' => 1
],
'voice' => [
'provider' => 'azure',
'cachingEnabled' => true,
'chunkPlan' => [
'enabled' => true,
'minCharacters' => 30,
'punctuationBoundaries' => [
'。',
',',
'.',
'!',
'?',
';',
'،',
'۔',
'।',
'॥',
'|',
'||',
',',
':'
],
'formatPlan' => [
'enabled' => true,
'numberToDigitsCutoff' => 2025,
'replacements' => [
[
'type' => 'exact',
'key' => '<string>',
'value' => '<string>',
'replaceAllEnabled' => false
]
]
]
],
'speed' => 1.25
],
'firstMessage' => 'Hello! How can I help you today?',
'firstMessageInterruptionsEnabled' => false,
'firstMessageMode' => 'assistant-speaks-first',
'voicemailDetection' => [
'provider' => 'google',
'beepMaxAwaitSeconds' => 30,
'backoffPlan' => [
'startAtSeconds' => 5,
'frequencySeconds' => 5,
'maxRetries' => 6
]
],
'clientMessages' => [
'conversation-update',
'function-call',
'hang',
'model-output',
'speech-update',
'status-update',
'transfer-update',
'transcript',
'tool-calls',
'user-interrupted',
'voice-input',
'workflow.node.started'
],
'serverMessages' => [
'conversation-update',
'end-of-call-report',
'function-call',
'hang',
'speech-update',
'status-update',
'tool-calls',
'transfer-destination-request',
'user-interrupted'
],
'silenceTimeoutSeconds' => 30,
'maxDurationSeconds' => 600,
'backgroundSound' => 'office',
'backgroundDenoisingEnabled' => false,
'modelOutputInMessagesEnabled' => false,
'transportConfigurations' => [
[
'provider' => 'twilio',
'timeout' => 60,
'record' => false,
'recordingChannels' => 'mono'
]
],
'credentials' => [
[
'provider' => 'anthropic',
'apiKey' => '<string>',
'name' => '<string>'
]
],
'hooks' => [
[
'on' => 'call.ending',
'do' => [
[
'type' => 'transfer',
'destination' => [
'type' => 'number',
'number' => '<string>',
'message' => '<string>',
'numberE164CheckEnabled' => true,
'extension' => '<string>',
'callerId' => '<string>',
'description' => '<string>'
]
]
],
'filters' => [
[
'type' => 'oneOf',
'key' => '<string>',
'oneOf' => [
'<string>'
]
]
]
]
],
'variableValues' => [
],
'name' => '<string>',
'voicemailMessage' => '<string>',
'endCallMessage' => '<string>',
'endCallPhrases' => [
'<string>'
],
'compliancePlan' => [
'hipaaEnabled' => [
'hipaaEnabled' => false
],
'pciEnabled' => [
'pciEnabled' => false
]
],
'metadata' => [
],
'backgroundSpeechDenoisingPlan' => [
'smartDenoisingPlan' => [
'enabled' => false
],
'fourierDenoisingPlan' => [
'enabled' => false,
'mediaDetectionEnabled' => true,
'staticThreshold' => -35,
'baselineOffsetDb' => -15,
'windowSizeMs' => 3000,
'baselinePercentile' => 85
]
],
'analysisPlan' => [
'minMessagesThreshold' => 1,
'summaryPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
],
'structuredDataMultiPlan' => [
[
'key' => '<string>',
'plan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
]
],
'successEvaluationPlan' => [
'messages' => [
[
]
],
'enabled' => true,
'timeoutSeconds' => 30.5
]
],
'artifactPlan' => [
'recordingEnabled' => true,
'videoRecordingEnabled' => false,
'pcapEnabled' => true,
'pcapS3PathPrefix' => '/pcaps',
'transcriptPlan' => [
'enabled' => true,
'assistantName' => '<string>',
'userName' => '<string>'
],
'recordingPath' => '<string>'
],
'messagePlan' => [
'idleMessages' => [
'<string>'
],
'idleMessageMaxSpokenCount' => 5.5,
'idleMessageResetCountOnUserSpeechEnabled' => true,
'idleTimeoutSeconds' => 32.5,
'silenceTimeoutMessage' => '<string>'
],
'startSpeakingPlan' => [
'waitSeconds' => 0.4,
'smartEndpointingEnabled' => false,
'smartEndpointingPlan' => [
'provider' => 'cozmox'
],
'customEndpointingRules' => [
[
'type' => 'assistant',
'regex' => '<string>',
'timeoutSeconds' => 7.5,
'regexOptions' => [
[
'enabled' => true
]
]
]
],
'transcriptionEndpointingPlan' => [
'onPunctuationSeconds' => 0.1,
'onNoPunctuationSeconds' => 1.5,
'onNumberSeconds' => 0.5
]
],
'stopSpeakingPlan' => [
'numWords' => 0,
'voiceSeconds' => 0.2,
'backoffSeconds' => 1,
'acknowledgementPhrases' => [
'i understand',
'i see',
'i got it',
'i hear you',
'im listening',
'im with you',
'right',
'okay',
'ok',
'sure',
'alright',
'got it',
'understood',
'yeah',
'yes',
'uh-huh',
'mm-hmm',
'gotcha',
'mhmm',
'ah',
'yeah okay',
'yeah sure'
],
'interruptionPhrases' => [
'stop',
'shut',
'up',
'enough',
'quiet',
'silence',
'but',
'dont',
'not',
'no',
'hold',
'wait',
'cut',
'pause',
'nope',
'nah',
'nevermind',
'never',
'bad',
'actually'
]
],
'monitorPlan' => [
'listenEnabled' => false,
'listenAuthenticationEnabled' => false,
'controlEnabled' => false,
'controlAuthenticationEnabled' => false
],
'credentialIds' => [
'<string>'
],
'server' => [
'timeoutSeconds' => 20,
'url' => '<string>',
'headers' => [
]
],
'keypadInputPlan' => [
'enabled' => true,
'timeoutSeconds' => 5
]
],
'number' => '<string>',
'sipUri' => '<string>',
'name' => '<string>',
'email' => '<string>',
'externalId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cozmox.ai/call"
payload := strings.NewReader("{\n \"customers\": [\n {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n ],\n \"name\": \"<string>\",\n \"transport\": {},\n \"assistantId\": \"<string>\",\n \"assistant\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"squadId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowOverrides\": {\n \"variableValues\": {}\n },\n \"phoneNumberId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"customer\": {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cozmox.ai/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customers\": [\n {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n ],\n \"name\": \"<string>\",\n \"transport\": {},\n \"assistantId\": \"<string>\",\n \"assistant\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"squadId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowOverrides\": {\n \"variableValues\": {}\n },\n \"phoneNumberId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"customer\": {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cozmox.ai/call")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customers\": [\n {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n ],\n \"name\": \"<string>\",\n \"transport\": {},\n \"assistantId\": \"<string>\",\n \"assistant\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"squadId\": \"<string>\",\n \"workflowId\": \"<string>\",\n \"workflowOverrides\": {\n \"variableValues\": {}\n },\n \"phoneNumberId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"customer\": {\n \"numberE164CheckEnabled\": true,\n \"extension\": null,\n \"assistantOverrides\": {\n \"transcriber\": {\n \"provider\": \"assembly-ai\",\n \"language\": \"en\",\n \"confidenceThreshold\": 0.4,\n \"enableUniversalStreamingApi\": false,\n \"formatTurns\": false,\n \"endOfTurnConfidenceThreshold\": 0.7,\n \"minEndOfTurnSilenceWhenConfident\": 160,\n \"wordFinalizationMaxWaitTime\": 160,\n \"maxTurnSilence\": 400,\n \"realtimeUrl\": \"<string>\",\n \"wordBoost\": [\n \"<string>\"\n ],\n \"endUtteranceSilenceThreshold\": 123,\n \"disablePartialTranscripts\": true\n },\n \"model\": {\n \"provider\": \"anthropic\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"apiRequest\",\n \"url\": \"<string>\",\n \"messages\": [\n {\n \"type\": \"request-start\",\n \"contents\": [\n \"<unknown>\"\n ],\n \"blocking\": false,\n \"content\": \"<string>\",\n \"conditions\": [\n {\n \"param\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutSeconds\": 20,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"variableExtractionPlan\": {\n \"aliases\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n }\n ],\n \"toolIds\": [\n \"<string>\"\n ],\n \"knowledgeBaseId\": \"<string>\",\n \"temperature\": 1,\n \"maxTokens\": 5025,\n \"emotionRecognitionEnabled\": true,\n \"numFastTurns\": 1\n },\n \"voice\": {\n \"provider\": \"azure\",\n \"cachingEnabled\": true,\n \"chunkPlan\": {\n \"enabled\": true,\n \"minCharacters\": 30,\n \"punctuationBoundaries\": [\n \"。\",\n \",\",\n \".\",\n \"!\",\n \"?\",\n \";\",\n \"،\",\n \"۔\",\n \"।\",\n \"॥\",\n \"|\",\n \"||\",\n \",\",\n \":\"\n ],\n \"formatPlan\": {\n \"enabled\": true,\n \"numberToDigitsCutoff\": 2025,\n \"replacements\": [\n {\n \"type\": \"exact\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"replaceAllEnabled\": false\n }\n ]\n }\n },\n \"speed\": 1.25\n },\n \"firstMessage\": \"Hello! How can I help you today?\",\n \"firstMessageInterruptionsEnabled\": false,\n \"firstMessageMode\": \"assistant-speaks-first\",\n \"voicemailDetection\": {\n \"provider\": \"google\",\n \"beepMaxAwaitSeconds\": 30,\n \"backoffPlan\": {\n \"startAtSeconds\": 5,\n \"frequencySeconds\": 5,\n \"maxRetries\": 6\n }\n },\n \"clientMessages\": [\n \"conversation-update\",\n \"function-call\",\n \"hang\",\n \"model-output\",\n \"speech-update\",\n \"status-update\",\n \"transfer-update\",\n \"transcript\",\n \"tool-calls\",\n \"user-interrupted\",\n \"voice-input\",\n \"workflow.node.started\"\n ],\n \"serverMessages\": [\n \"conversation-update\",\n \"end-of-call-report\",\n \"function-call\",\n \"hang\",\n \"speech-update\",\n \"status-update\",\n \"tool-calls\",\n \"transfer-destination-request\",\n \"user-interrupted\"\n ],\n \"silenceTimeoutSeconds\": 30,\n \"maxDurationSeconds\": 600,\n \"backgroundSound\": \"office\",\n \"backgroundDenoisingEnabled\": false,\n \"modelOutputInMessagesEnabled\": false,\n \"transportConfigurations\": [\n {\n \"provider\": \"twilio\",\n \"timeout\": 60,\n \"record\": false,\n \"recordingChannels\": \"mono\"\n }\n ],\n \"credentials\": [\n {\n \"provider\": \"anthropic\",\n \"apiKey\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"hooks\": [\n {\n \"on\": \"call.ending\",\n \"do\": [\n {\n \"type\": \"transfer\",\n \"destination\": {\n \"type\": \"number\",\n \"number\": \"<string>\",\n \"message\": \"<string>\",\n \"numberE164CheckEnabled\": true,\n \"extension\": \"<string>\",\n \"callerId\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n ],\n \"filters\": [\n {\n \"type\": \"oneOf\",\n \"key\": \"<string>\",\n \"oneOf\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"variableValues\": {},\n \"name\": \"<string>\",\n \"voicemailMessage\": \"<string>\",\n \"endCallMessage\": \"<string>\",\n \"endCallPhrases\": [\n \"<string>\"\n ],\n \"compliancePlan\": {\n \"hipaaEnabled\": {\n \"hipaaEnabled\": false\n },\n \"pciEnabled\": {\n \"pciEnabled\": false\n }\n },\n \"metadata\": {},\n \"backgroundSpeechDenoisingPlan\": {\n \"smartDenoisingPlan\": {\n \"enabled\": false\n },\n \"fourierDenoisingPlan\": {\n \"enabled\": false,\n \"mediaDetectionEnabled\": true,\n \"staticThreshold\": -35,\n \"baselineOffsetDb\": -15,\n \"windowSizeMs\": 3000,\n \"baselinePercentile\": 85\n }\n },\n \"analysisPlan\": {\n \"minMessagesThreshold\": 1,\n \"summaryPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n },\n \"structuredDataMultiPlan\": [\n {\n \"key\": \"<string>\",\n \"plan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n }\n ],\n \"successEvaluationPlan\": {\n \"messages\": [\n {}\n ],\n \"enabled\": true,\n \"timeoutSeconds\": 30.5\n }\n },\n \"artifactPlan\": {\n \"recordingEnabled\": true,\n \"videoRecordingEnabled\": false,\n \"pcapEnabled\": true,\n \"pcapS3PathPrefix\": \"/pcaps\",\n \"transcriptPlan\": {\n \"enabled\": true,\n \"assistantName\": \"<string>\",\n \"userName\": \"<string>\"\n },\n \"recordingPath\": \"<string>\"\n },\n \"messagePlan\": {\n \"idleMessages\": [\n \"<string>\"\n ],\n \"idleMessageMaxSpokenCount\": 5.5,\n \"idleMessageResetCountOnUserSpeechEnabled\": true,\n \"idleTimeoutSeconds\": 32.5,\n \"silenceTimeoutMessage\": \"<string>\"\n },\n \"startSpeakingPlan\": {\n \"waitSeconds\": 0.4,\n \"smartEndpointingEnabled\": false,\n \"smartEndpointingPlan\": {\n \"provider\": \"cozmox\"\n },\n \"customEndpointingRules\": [\n {\n \"type\": \"assistant\",\n \"regex\": \"<string>\",\n \"timeoutSeconds\": 7.5,\n \"regexOptions\": [\n {\n \"enabled\": true\n }\n ]\n }\n ],\n \"transcriptionEndpointingPlan\": {\n \"onPunctuationSeconds\": 0.1,\n \"onNoPunctuationSeconds\": 1.5,\n \"onNumberSeconds\": 0.5\n }\n },\n \"stopSpeakingPlan\": {\n \"numWords\": 0,\n \"voiceSeconds\": 0.2,\n \"backoffSeconds\": 1,\n \"acknowledgementPhrases\": [\n \"i understand\",\n \"i see\",\n \"i got it\",\n \"i hear you\",\n \"im listening\",\n \"im with you\",\n \"right\",\n \"okay\",\n \"ok\",\n \"sure\",\n \"alright\",\n \"got it\",\n \"understood\",\n \"yeah\",\n \"yes\",\n \"uh-huh\",\n \"mm-hmm\",\n \"gotcha\",\n \"mhmm\",\n \"ah\",\n \"yeah okay\",\n \"yeah sure\"\n ],\n \"interruptionPhrases\": [\n \"stop\",\n \"shut\",\n \"up\",\n \"enough\",\n \"quiet\",\n \"silence\",\n \"but\",\n \"dont\",\n \"not\",\n \"no\",\n \"hold\",\n \"wait\",\n \"cut\",\n \"pause\",\n \"nope\",\n \"nah\",\n \"nevermind\",\n \"never\",\n \"bad\",\n \"actually\"\n ]\n },\n \"monitorPlan\": {\n \"listenEnabled\": false,\n \"listenAuthenticationEnabled\": false,\n \"controlEnabled\": false,\n \"controlAuthenticationEnabled\": false\n },\n \"credentialIds\": [\n \"<string>\"\n ],\n \"server\": {\n \"timeoutSeconds\": 20,\n \"url\": \"<string>\",\n \"headers\": {}\n },\n \"keypadInputPlan\": {\n \"enabled\": true,\n \"timeoutSeconds\": 5\n }\n },\n \"number\": \"<string>\",\n \"sipUri\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"externalId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"costs": [
{
"type": "transport",
"minutes": 123,
"cost": 123
}
],
"messages": [
{
"role": "<string>",
"message": "<string>",
"time": 123,
"endTime": 123,
"secondsFromStart": 123,
"duration": 123
}
],
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
},
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"cost": 123,
"costBreakdown": {
"transport": 123,
"stt": 123,
"llm": 123,
"tts": 123,
"cozmox": 123,
"chat": 123,
"total": 123,
"llmPromptTokens": 123,
"llmCompletionTokens": 123,
"ttsCharacters": 123,
"analysisCostBreakdown": {
"summary": 123,
"summaryPromptTokens": 123,
"summaryCompletionTokens": 123,
"structuredData": 123,
"structuredDataPromptTokens": 123,
"structuredDataCompletionTokens": 123,
"successEvaluation": 123,
"successEvaluationPromptTokens": 123,
"successEvaluationCompletionTokens": 123
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"analysis": {
"summary": "<string>",
"structuredData": {},
"structuredDataMulti": [
{}
],
"successEvaluation": "<string>"
},
"monitor": {
"listenUrl": "<string>",
"controlUrl": "<string>"
},
"artifact": {
"messages": [
{
"role": "<string>",
"message": "<string>",
"time": 123,
"endTime": 123,
"secondsFromStart": 123,
"duration": 123
}
],
"messagesOpenAIFormatted": [
{
"content": "<string>"
}
],
"recordingUrl": "<string>",
"stereoRecordingUrl": "<string>",
"videoRecordingUrl": "<string>",
"videoRecordingStartDelaySeconds": 123,
"recording": {
"stereoUrl": "<string>",
"videoUrl": "<string>",
"videoRecordingStartDelaySeconds": 123,
"mono": {
"combinedUrl": "<string>",
"assistantUrl": "<string>",
"customerUrl": "<string>"
}
},
"transcript": "<string>",
"pcapUrl": "<string>",
"nodes": [
{
"messages": [
{
"role": "<string>",
"message": "<string>",
"time": 123,
"endTime": 123,
"secondsFromStart": 123,
"duration": 123
}
],
"nodeName": "<string>",
"variableValues": {}
}
],
"variableValues": {}
},
"phoneCallProviderId": "<string>",
"campaignId": "<string>",
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"squadId": "<string>",
"squad": {
"members": [
{
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"assistantDestinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
]
}
],
"name": "<string>",
"membersOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
}
},
"workflowId": "<string>",
"workflow": {
"nodes": [
{
"type": "conversation",
"name": "<string>",
"model": {
"provider": "openai",
"temperature": 1,
"maxTokens": 5025
},
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"voiceId": "<unknown>",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": "<unknown>"
}
]
}
},
"prompt": "<string>",
"globalNodePlan": {
"enabled": false,
"enterCondition": ""
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"isStart": true,
"metadata": {}
}
],
"name": "<string>",
"edges": [
{
"from": "<string>",
"to": "<string>",
"condition": {
"type": "ai",
"prompt": "<string>"
},
"metadata": {}
}
],
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"backgroundSound": "office",
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"globalPrompt": "<string>",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"credentialIds": [
"<string>"
]
},
"workflowOverrides": {
"variableValues": {}
},
"phoneNumberId": "<string>",
"phoneNumber": {
"twilioPhoneNumber": "<string>",
"twilioAccountSid": "<string>",
"fallbackDestination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
},
"hooks": [
{
"on": "call.ringing",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
]
}
],
"smsEnabled": true,
"twilioAuthToken": "<string>",
"twilioApiKey": "<string>",
"twilioApiSecret": "<string>",
"name": "<string>",
"assistantId": "<string>",
"workflowId": "<string>",
"squadId": "<string>",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"customerId": "<string>",
"customer": {
"numberE164CheckEnabled": true,
"extension": null,
"assistantOverrides": {
"transcriber": {
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true,
"fallbackPlan": {
"transcribers": [
{
"provider": "assembly-ai",
"language": "en",
"confidenceThreshold": 0.4,
"enableUniversalStreamingApi": false,
"formatTurns": false,
"endOfTurnConfidenceThreshold": 0.7,
"minEndOfTurnSilenceWhenConfident": 160,
"wordFinalizationMaxWaitTime": 160,
"maxTurnSilence": 400,
"realtimeUrl": "<string>",
"wordBoost": [
"<string>"
],
"endUtteranceSilenceThreshold": 123,
"disablePartialTranscripts": true
}
]
}
},
"model": {
"provider": "anthropic",
"messages": [
{
"content": "<string>"
}
],
"tools": [
{
"type": "apiRequest",
"url": "<string>",
"messages": [
{
"type": "request-start",
"contents": [
"<unknown>"
],
"blocking": false,
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": "<string>"
}
]
}
],
"timeoutSeconds": 20,
"name": "<string>",
"description": "<string>",
"body": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"headers": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
},
"variableExtractionPlan": {
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"aliases": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"function": {
"name": "<string>",
"strict": false,
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
],
"toolIds": [
"<string>"
],
"knowledgeBase": {
"provider": "custom-knowledge-base",
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
}
},
"knowledgeBaseId": "<string>",
"thinking": {
"type": "enabled",
"budgetTokens": 50512
},
"temperature": 1,
"maxTokens": 5025,
"emotionRecognitionEnabled": true,
"numFastTurns": 1
},
"voice": {
"provider": "azure",
"cachingEnabled": true,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
},
"speed": 1.25,
"fallbackPlan": {
"voices": [
{
"provider": "azure",
"cachingEnabled": true,
"speed": 1.25,
"chunkPlan": {
"enabled": true,
"minCharacters": 30,
"punctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"formatPlan": {
"enabled": true,
"numberToDigitsCutoff": 2025,
"replacements": [
{
"type": "exact",
"key": "<string>",
"value": "<string>",
"replaceAllEnabled": false
}
]
}
}
}
]
}
},
"firstMessage": "Hello! How can I help you today?",
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"voicemailDetection": {
"provider": "google",
"beepMaxAwaitSeconds": 30,
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
}
},
"clientMessages": [
"conversation-update",
"function-call",
"hang",
"model-output",
"speech-update",
"status-update",
"transfer-update",
"transcript",
"tool-calls",
"user-interrupted",
"voice-input",
"workflow.node.started"
],
"serverMessages": [
"conversation-update",
"end-of-call-report",
"function-call",
"hang",
"speech-update",
"status-update",
"tool-calls",
"transfer-destination-request",
"user-interrupted"
],
"silenceTimeoutSeconds": 30,
"maxDurationSeconds": 600,
"backgroundSound": "office",
"backgroundDenoisingEnabled": false,
"modelOutputInMessagesEnabled": false,
"transportConfigurations": [
{
"provider": "twilio",
"timeout": 60,
"record": false,
"recordingChannels": "mono"
}
],
"observabilityPlan": {
"provider": "langfuse",
"tags": [
"<string>"
],
"metadata": {}
},
"credentials": [
{
"provider": "anthropic",
"apiKey": "<string>",
"name": "<string>"
}
],
"hooks": [
{
"on": "call.ending",
"do": [
{
"type": "transfer",
"destination": {
"type": "number",
"number": "<string>",
"message": "<string>",
"numberE164CheckEnabled": true,
"extension": "<string>",
"callerId": "<string>",
"transferPlan": {
"message": "<string>",
"timeout": 60,
"sipVerb": "refer",
"holdAudioUrl": "<string>",
"transferCompleteAudioUrl": "<string>",
"twiml": "<string>",
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"sipHeadersInReferToEnabled": true,
"fallbackPlan": {
"message": "<string>",
"endCallEnabled": true
}
},
"description": "<string>"
}
}
],
"filters": [
{
"type": "oneOf",
"key": "<string>",
"oneOf": [
"<string>"
]
}
]
}
],
"variableValues": {},
"name": "<string>",
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"compliancePlan": {
"hipaaEnabled": {
"hipaaEnabled": false
},
"pciEnabled": {
"pciEnabled": false
}
},
"metadata": {},
"backgroundSpeechDenoisingPlan": {
"smartDenoisingPlan": {
"enabled": false
},
"fourierDenoisingPlan": {
"enabled": false,
"mediaDetectionEnabled": true,
"staticThreshold": -35,
"baselineOffsetDb": -15,
"windowSizeMs": 3000,
"baselinePercentile": 85
}
},
"analysisPlan": {
"minMessagesThreshold": 1,
"summaryPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
},
"structuredDataPlan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
},
"structuredDataMultiPlan": [
{
"key": "<string>",
"plan": {
"messages": [
{}
],
"enabled": true,
"schema": {
"items": {},
"properties": {},
"description": "<string>",
"pattern": "<string>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"title": "<string>"
},
"timeoutSeconds": 30.5
}
}
],
"successEvaluationPlan": {
"messages": [
{}
],
"enabled": true,
"timeoutSeconds": 30.5
}
},
"artifactPlan": {
"recordingEnabled": true,
"videoRecordingEnabled": false,
"pcapEnabled": true,
"pcapS3PathPrefix": "/pcaps",
"transcriptPlan": {
"enabled": true,
"assistantName": "<string>",
"userName": "<string>"
},
"recordingPath": "<string>"
},
"messagePlan": {
"idleMessages": [
"<string>"
],
"idleMessageMaxSpokenCount": 5.5,
"idleMessageResetCountOnUserSpeechEnabled": true,
"idleTimeoutSeconds": 32.5,
"silenceTimeoutMessage": "<string>"
},
"startSpeakingPlan": {
"waitSeconds": 0.4,
"smartEndpointingEnabled": false,
"smartEndpointingPlan": {
"provider": "cozmox"
},
"customEndpointingRules": [
{
"type": "assistant",
"regex": "<string>",
"timeoutSeconds": 7.5,
"regexOptions": [
{
"enabled": true
}
]
}
],
"transcriptionEndpointingPlan": {
"onPunctuationSeconds": 0.1,
"onNoPunctuationSeconds": 1.5,
"onNumberSeconds": 0.5
}
},
"stopSpeakingPlan": {
"numWords": 0,
"voiceSeconds": 0.2,
"backoffSeconds": 1,
"acknowledgementPhrases": [
"i understand",
"i see",
"i got it",
"i hear you",
"im listening",
"im with you",
"right",
"okay",
"ok",
"sure",
"alright",
"got it",
"understood",
"yeah",
"yes",
"uh-huh",
"mm-hmm",
"gotcha",
"mhmm",
"ah",
"yeah okay",
"yeah sure"
],
"interruptionPhrases": [
"stop",
"shut",
"up",
"enough",
"quiet",
"silence",
"but",
"dont",
"not",
"no",
"hold",
"wait",
"cut",
"pause",
"nope",
"nah",
"nevermind",
"never",
"bad",
"actually"
]
},
"monitorPlan": {
"listenEnabled": false,
"listenAuthenticationEnabled": false,
"controlEnabled": false,
"controlAuthenticationEnabled": false
},
"credentialIds": [
"<string>"
],
"server": {
"timeoutSeconds": 20,
"url": "<string>",
"headers": {},
"backoffPlan": {
"type": "fixed",
"maxRetries": 0,
"baseDelaySeconds": 1
}
},
"keypadInputPlan": {
"enabled": true,
"timeoutSeconds": 5
}
},
"number": "<string>",
"sipUri": "<string>",
"name": "<string>",
"email": "<string>",
"externalId": "<string>"
},
"name": "<string>",
"schedulePlan": {
"earliestAt": "2023-11-07T05:31:56Z",
"latestAt": "2023-11-07T05:31:56Z"
},
"transport": {}
}Authorizations
Retrieve your API Key from Dashboard [blocked].
Body
This is used to issue batch calls to multiple customers.
Only relevant for outboundPhoneCall. To call a single customer, use customer instead.
Show child attributes
Show child attributes
This is the name of the call. This is just for your own reference.
40This is the schedule plan of the call.
Show child attributes
Show child attributes
This is the transport of the call.
This is the assistant ID that will be used for the call. To use a transient assistant, use assistant instead.
To start a call with:
- Assistant, use
assistantIdorassistant - Squad, use
squadIdorsquad - Workflow, use
workflowIdorworkflow
This is the assistant that will be used for the call. To use an existing assistant, use assistantId instead.
To start a call with:
- Assistant, use
assistant - Squad, use
squad - Workflow, use
workflow
Show child attributes
Show child attributes
These are the overrides for the assistant or assistantId's settings and template variables.
Show child attributes
Show child attributes
This is the squad that will be used for the call. To use a transient squad, use squad instead.
To start a call with:
- Assistant, use
assistantorassistantId - Squad, use
squadorsquadId - Workflow, use
workfloworworkflowId
This is a squad that will be used for the call. To use an existing squad, use squadId instead.
To start a call with:
- Assistant, use
assistantorassistantId - Squad, use
squadorsquadId - Workflow, use
workfloworworkflowId
Show child attributes
Show child attributes
This is the workflow that will be used for the call. To use a transient workflow, use workflow instead.
To start a call with:
- Assistant, use
assistantorassistantId - Squad, use
squadorsquadId - Workflow, use
workfloworworkflowId
This is a workflow that will be used for the call. To use an existing workflow, use workflowId instead.
To start a call with:
- Assistant, use
assistantorassistantId - Squad, use
squadorsquadId - Workflow, use
workfloworworkflowId
Show child attributes
Show child attributes
These are the overrides for the workflow or workflowId's settings and template variables.
Show child attributes
Show child attributes
This is the phone number that will be used for the call. To use a transient number, use phoneNumber instead.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
This is the phone number that will be used for the call. To use an existing number, use phoneNumberId instead.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
Show child attributes
Show child attributes
This is the customer that will be called. To call a transient customer , use customer instead.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
This is the customer that will be called. To call an existing customer, use customerId instead.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
Show child attributes
Show child attributes
Response
- Option 1
- Option 2
This is the unique identifier for the call.
This is the unique identifier for the org that this call belongs to.
This is the ISO 8601 date-time string of when the call was created.
This is the ISO 8601 date-time string of when the call was last updated.
This is the type of call.
inboundPhoneCall, outboundPhoneCall, webCall, cozmox.websocketCall These are the costs of individual components of the call in USD.
- TransportCost
- TranscriberCost
- ModelCost
- VoiceCost
- cozmoxCost
- VoicemailDetectionCost
- AnalysisCost
- KnowledgeBaseCost
Show child attributes
Show child attributes
- UserMessage
- SystemMessage
- BotMessage
- ToolCallMessage
- ToolCallResultMessage
Show child attributes
Show child attributes
This is the provider of the call.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
twilio, vonage, cozmox, telnyx This is the transport of the phone call.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
sip, pstn This is the status of the call.
scheduled, queued, ringing, in-progress, forwarding, ended This is the explanation for how the call ended.
call-start-error-neither-assistant-nor-server-set, assistant-request-failed, assistant-request-returned-error, assistant-request-returned-unspeakable-error, assistant-request-returned-invalid-assistant, assistant-request-returned-no-assistant, assistant-request-returned-forwarding-phone-number, scheduled-call-deleted, call.start.error-cozmoxfault-get-org, call.start.error-cozmoxfault-get-subscription, call.start.error-get-assistant, call.start.error-get-phone-number, call.start.error-get-customer, call.start.error-get-resources-validation, call.start.error-cozmox-number-international, call.start.error-cozmox-number-outbound-daily-limit, call.start.error-get-transport, call.start.error-subscription-wallet-does-not-exist, call.start.error-subscription-frozen, call.start.error-subscription-insufficient-credits, call.start.error-subscription-upgrade-failed, call.start.error-subscription-concurrency-limit-reached, assistant-not-valid, database-error, assistant-not-found, pipeline-error-openai-voice-failed, pipeline-error-cartesia-voice-failed, pipeline-error-deepgram-voice-failed, pipeline-error-eleven-labs-voice-failed, pipeline-error-playht-voice-failed, pipeline-error-lmnt-voice-failed, pipeline-error-azure-voice-failed, pipeline-error-rime-ai-voice-failed, pipeline-error-smallest-ai-voice-failed, pipeline-error-neuphonic-voice-failed, pipeline-error-hume-voice-failed, pipeline-error-sesame-voice-failed, pipeline-error-inworld-voice-failed, pipeline-error-tavus-video-failed, call.in-progress.error-cozmoxfault-openai-voice-failed, call.in-progress.error-cozmoxfault-cartesia-voice-failed, call.in-progress.error-cozmoxfault-deepgram-voice-failed, call.in-progress.error-cozmoxfault-eleven-labs-voice-failed, call.in-progress.error-cozmoxfault-playht-voice-failed, call.in-progress.error-cozmoxfault-lmnt-voice-failed, call.in-progress.error-cozmoxfault-azure-voice-failed, call.in-progress.error-cozmoxfault-rime-ai-voice-failed, call.in-progress.error-cozmoxfault-smallest-ai-voice-failed, call.in-progress.error-cozmoxfault-neuphonic-voice-failed, call.in-progress.error-cozmoxfault-hume-voice-failed, call.in-progress.error-cozmoxfault-sesame-voice-failed, call.in-progress.error-cozmoxfault-inworld-voice-failed, call.in-progress.error-cozmoxfault-tavus-video-failed, pipeline-error-cozmox-llm-failed, pipeline-error-cozmox-400-bad-request-validation-failed, pipeline-error-cozmox-401-unauthorized, pipeline-error-cozmox-403-model-access-denied, pipeline-error-cozmox-429-exceeded-quota, pipeline-error-cozmox-500-server-error, pipeline-error-cozmox-503-server-overloaded-error, call.in-progress.error-cozmoxfault-cozmox-llm-failed, call.in-progress.error-cozmoxfault-cozmox-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-cozmox-401-unauthorized, call.in-progress.error-cozmoxfault-cozmox-403-model-access-denied, call.in-progress.error-cozmoxfault-cozmox-429-exceeded-quota, call.in-progress.error-providerfault-cozmox-500-server-error, call.in-progress.error-providerfault-cozmox-503-server-overloaded-error, pipeline-error-deepgram-transcriber-failed, call.in-progress.error-cozmoxfault-deepgram-transcriber-failed, pipeline-error-gladia-transcriber-failed, call.in-progress.error-cozmoxfault-gladia-transcriber-failed, pipeline-error-speechmatics-transcriber-failed, call.in-progress.error-cozmoxfault-speechmatics-transcriber-failed, pipeline-error-assembly-ai-transcriber-failed, pipeline-error-assembly-ai-returning-400-insufficent-funds, pipeline-error-assembly-ai-returning-400-paid-only-feature, pipeline-error-assembly-ai-returning-401-invalid-credentials, pipeline-error-assembly-ai-returning-500-invalid-schema, pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed, call.in-progress.error-cozmoxfault-assembly-ai-transcriber-failed, call.in-progress.error-cozmoxfault-assembly-ai-returning-400-insufficent-funds, call.in-progress.error-cozmoxfault-assembly-ai-returning-400-paid-only-feature, call.in-progress.error-cozmoxfault-assembly-ai-returning-401-invalid-credentials, call.in-progress.error-cozmoxfault-assembly-ai-returning-500-invalid-schema, call.in-progress.error-cozmoxfault-assembly-ai-returning-500-word-boost-parsing-failed, pipeline-error-talkscriber-transcriber-failed, call.in-progress.error-cozmoxfault-talkscriber-transcriber-failed, pipeline-error-azure-speech-transcriber-failed, call.in-progress.error-cozmoxfault-azure-speech-transcriber-failed, call.in-progress.error-pipeline-no-available-llm-model, worker-shutdown, vonage-disconnected, vonage-failed-to-connect-call, vonage-completed, phone-call-provider-bypass-enabled-but-no-call-received, call.in-progress.error-providerfault-transport-never-connected, call.in-progress.error-cozmoxfault-worker-not-available, call.in-progress.error-cozmoxfault-transport-never-connected, call.in-progress.error-cozmoxfault-transport-connected-but-call-not-active, call.in-progress.error-cozmoxfault-call-started-but-connection-to-transport-missing, call.in-progress.error-cozmoxfault-worker-died, call.in-progress.twilio-completed-call, call.in-progress.sip-completed-call, call.in-progress.error-cozmoxfault-openai-llm-failed, call.in-progress.error-cozmoxfault-azure-openai-llm-failed, call.in-progress.error-cozmoxfault-groq-llm-failed, call.in-progress.error-cozmoxfault-google-llm-failed, call.in-progress.error-cozmoxfault-xai-llm-failed, call.in-progress.error-cozmoxfault-mistral-llm-failed, call.in-progress.error-cozmoxfault-inflection-ai-llm-failed, call.in-progress.error-cozmoxfault-cerebras-llm-failed, call.in-progress.error-cozmoxfault-deep-seek-llm-failed, call.in-progress.error-cozmoxfault-chat-pipeline-failed-to-start, pipeline-error-openai-400-bad-request-validation-failed, pipeline-error-openai-401-unauthorized, pipeline-error-openai-401-incorrect-api-key, pipeline-error-openai-401-account-not-in-organization, pipeline-error-openai-403-model-access-denied, pipeline-error-openai-429-exceeded-quota, pipeline-error-openai-429-rate-limit-reached, pipeline-error-openai-500-server-error, pipeline-error-openai-503-server-overloaded-error, pipeline-error-openai-llm-failed, call.in-progress.error-cozmoxfault-openai-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-openai-401-unauthorized, call.in-progress.error-cozmoxfault-openai-401-incorrect-api-key, call.in-progress.error-cozmoxfault-openai-401-account-not-in-organization, call.in-progress.error-cozmoxfault-openai-403-model-access-denied, call.in-progress.error-cozmoxfault-openai-429-exceeded-quota, call.in-progress.error-cozmoxfault-openai-429-rate-limit-reached, call.in-progress.error-providerfault-openai-500-server-error, call.in-progress.error-providerfault-openai-503-server-overloaded-error, pipeline-error-azure-openai-400-bad-request-validation-failed, pipeline-error-azure-openai-401-unauthorized, pipeline-error-azure-openai-403-model-access-denied, pipeline-error-azure-openai-429-exceeded-quota, pipeline-error-azure-openai-500-server-error, pipeline-error-azure-openai-503-server-overloaded-error, pipeline-error-azure-openai-llm-failed, call.in-progress.error-cozmoxfault-azure-openai-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-azure-openai-401-unauthorized, call.in-progress.error-cozmoxfault-azure-openai-403-model-access-denied, call.in-progress.error-cozmoxfault-azure-openai-429-exceeded-quota, call.in-progress.error-providerfault-azure-openai-500-server-error, call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error, pipeline-error-google-400-bad-request-validation-failed, pipeline-error-google-401-unauthorized, pipeline-error-google-403-model-access-denied, pipeline-error-google-429-exceeded-quota, pipeline-error-google-500-server-error, pipeline-error-google-503-server-overloaded-error, pipeline-error-google-llm-failed, call.in-progress.error-cozmoxfault-google-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-google-401-unauthorized, call.in-progress.error-cozmoxfault-google-403-model-access-denied, call.in-progress.error-cozmoxfault-google-429-exceeded-quota, call.in-progress.error-providerfault-google-500-server-error, call.in-progress.error-providerfault-google-503-server-overloaded-error, pipeline-error-xai-400-bad-request-validation-failed, pipeline-error-xai-401-unauthorized, pipeline-error-xai-403-model-access-denied, pipeline-error-xai-429-exceeded-quota, pipeline-error-xai-500-server-error, pipeline-error-xai-503-server-overloaded-error, pipeline-error-xai-llm-failed, call.in-progress.error-cozmoxfault-xai-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-xai-401-unauthorized, call.in-progress.error-cozmoxfault-xai-403-model-access-denied, call.in-progress.error-cozmoxfault-xai-429-exceeded-quota, call.in-progress.error-providerfault-xai-500-server-error, call.in-progress.error-providerfault-xai-503-server-overloaded-error, pipeline-error-mistral-400-bad-request-validation-failed, pipeline-error-mistral-401-unauthorized, pipeline-error-mistral-403-model-access-denied, pipeline-error-mistral-429-exceeded-quota, pipeline-error-mistral-500-server-error, pipeline-error-mistral-503-server-overloaded-error, pipeline-error-mistral-llm-failed, call.in-progress.error-cozmoxfault-mistral-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-mistral-401-unauthorized, call.in-progress.error-cozmoxfault-mistral-403-model-access-denied, call.in-progress.error-cozmoxfault-mistral-429-exceeded-quota, call.in-progress.error-providerfault-mistral-500-server-error, call.in-progress.error-providerfault-mistral-503-server-overloaded-error, pipeline-error-inflection-ai-400-bad-request-validation-failed, pipeline-error-inflection-ai-401-unauthorized, pipeline-error-inflection-ai-403-model-access-denied, pipeline-error-inflection-ai-429-exceeded-quota, pipeline-error-inflection-ai-500-server-error, pipeline-error-inflection-ai-503-server-overloaded-error, pipeline-error-inflection-ai-llm-failed, call.in-progress.error-cozmoxfault-inflection-ai-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-inflection-ai-401-unauthorized, call.in-progress.error-cozmoxfault-inflection-ai-403-model-access-denied, call.in-progress.error-cozmoxfault-inflection-ai-429-exceeded-quota, call.in-progress.error-providerfault-inflection-ai-500-server-error, call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error, pipeline-error-deep-seek-400-bad-request-validation-failed, pipeline-error-deep-seek-401-unauthorized, pipeline-error-deep-seek-403-model-access-denied, pipeline-error-deep-seek-429-exceeded-quota, pipeline-error-deep-seek-500-server-error, pipeline-error-deep-seek-503-server-overloaded-error, pipeline-error-deep-seek-llm-failed, call.in-progress.error-cozmoxfault-deep-seek-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-deep-seek-401-unauthorized, call.in-progress.error-cozmoxfault-deep-seek-403-model-access-denied, call.in-progress.error-cozmoxfault-deep-seek-429-exceeded-quota, call.in-progress.error-providerfault-deep-seek-500-server-error, call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error, pipeline-error-groq-400-bad-request-validation-failed, pipeline-error-groq-401-unauthorized, pipeline-error-groq-403-model-access-denied, pipeline-error-groq-429-exceeded-quota, pipeline-error-groq-500-server-error, pipeline-error-groq-503-server-overloaded-error, pipeline-error-groq-llm-failed, call.in-progress.error-cozmoxfault-groq-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-groq-401-unauthorized, call.in-progress.error-cozmoxfault-groq-403-model-access-denied, call.in-progress.error-cozmoxfault-groq-429-exceeded-quota, call.in-progress.error-providerfault-groq-500-server-error, call.in-progress.error-providerfault-groq-503-server-overloaded-error, pipeline-error-cerebras-400-bad-request-validation-failed, pipeline-error-cerebras-401-unauthorized, pipeline-error-cerebras-403-model-access-denied, pipeline-error-cerebras-429-exceeded-quota, pipeline-error-cerebras-500-server-error, pipeline-error-cerebras-503-server-overloaded-error, pipeline-error-cerebras-llm-failed, call.in-progress.error-cozmoxfault-cerebras-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-cerebras-401-unauthorized, call.in-progress.error-cozmoxfault-cerebras-403-model-access-denied, call.in-progress.error-cozmoxfault-cerebras-429-exceeded-quota, call.in-progress.error-providerfault-cerebras-500-server-error, call.in-progress.error-providerfault-cerebras-503-server-overloaded-error, pipeline-error-anthropic-400-bad-request-validation-failed, pipeline-error-anthropic-401-unauthorized, pipeline-error-anthropic-403-model-access-denied, pipeline-error-anthropic-429-exceeded-quota, pipeline-error-anthropic-500-server-error, pipeline-error-anthropic-503-server-overloaded-error, pipeline-error-anthropic-llm-failed, call.in-progress.error-cozmoxfault-anthropic-llm-failed, call.in-progress.error-cozmoxfault-anthropic-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-anthropic-401-unauthorized, call.in-progress.error-cozmoxfault-anthropic-403-model-access-denied, call.in-progress.error-cozmoxfault-anthropic-429-exceeded-quota, call.in-progress.error-providerfault-anthropic-500-server-error, call.in-progress.error-providerfault-anthropic-503-server-overloaded-error, pipeline-error-anthropic-bedrock-400-bad-request-validation-failed, pipeline-error-anthropic-bedrock-401-unauthorized, pipeline-error-anthropic-bedrock-403-model-access-denied, pipeline-error-anthropic-bedrock-429-exceeded-quota, pipeline-error-anthropic-bedrock-500-server-error, pipeline-error-anthropic-bedrock-503-server-overloaded-error, pipeline-error-anthropic-bedrock-llm-failed, call.in-progress.error-cozmoxfault-anthropic-bedrock-llm-failed, call.in-progress.error-cozmoxfault-anthropic-bedrock-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-anthropic-bedrock-401-unauthorized, call.in-progress.error-cozmoxfault-anthropic-bedrock-403-model-access-denied, call.in-progress.error-cozmoxfault-anthropic-bedrock-429-exceeded-quota, call.in-progress.error-providerfault-anthropic-bedrock-500-server-error, call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error, pipeline-error-anthropic-vertex-400-bad-request-validation-failed, pipeline-error-anthropic-vertex-401-unauthorized, pipeline-error-anthropic-vertex-403-model-access-denied, pipeline-error-anthropic-vertex-429-exceeded-quota, pipeline-error-anthropic-vertex-500-server-error, pipeline-error-anthropic-vertex-503-server-overloaded-error, pipeline-error-anthropic-vertex-llm-failed, call.in-progress.error-cozmoxfault-anthropic-vertex-llm-failed, call.in-progress.error-cozmoxfault-anthropic-vertex-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-anthropic-vertex-401-unauthorized, call.in-progress.error-cozmoxfault-anthropic-vertex-403-model-access-denied, call.in-progress.error-cozmoxfault-anthropic-vertex-429-exceeded-quota, call.in-progress.error-providerfault-anthropic-vertex-500-server-error, call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error, pipeline-error-together-ai-400-bad-request-validation-failed, pipeline-error-together-ai-401-unauthorized, pipeline-error-together-ai-403-model-access-denied, pipeline-error-together-ai-429-exceeded-quota, pipeline-error-together-ai-500-server-error, pipeline-error-together-ai-503-server-overloaded-error, pipeline-error-together-ai-llm-failed, call.in-progress.error-cozmoxfault-together-ai-llm-failed, call.in-progress.error-cozmoxfault-together-ai-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-together-ai-401-unauthorized, call.in-progress.error-cozmoxfault-together-ai-403-model-access-denied, call.in-progress.error-cozmoxfault-together-ai-429-exceeded-quota, call.in-progress.error-providerfault-together-ai-500-server-error, call.in-progress.error-providerfault-together-ai-503-server-overloaded-error, pipeline-error-anyscale-400-bad-request-validation-failed, pipeline-error-anyscale-401-unauthorized, pipeline-error-anyscale-403-model-access-denied, pipeline-error-anyscale-429-exceeded-quota, pipeline-error-anyscale-500-server-error, pipeline-error-anyscale-503-server-overloaded-error, pipeline-error-anyscale-llm-failed, call.in-progress.error-cozmoxfault-anyscale-llm-failed, call.in-progress.error-cozmoxfault-anyscale-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-anyscale-401-unauthorized, call.in-progress.error-cozmoxfault-anyscale-403-model-access-denied, call.in-progress.error-cozmoxfault-anyscale-429-exceeded-quota, call.in-progress.error-providerfault-anyscale-500-server-error, call.in-progress.error-providerfault-anyscale-503-server-overloaded-error, pipeline-error-openrouter-400-bad-request-validation-failed, pipeline-error-openrouter-401-unauthorized, pipeline-error-openrouter-403-model-access-denied, pipeline-error-openrouter-429-exceeded-quota, pipeline-error-openrouter-500-server-error, pipeline-error-openrouter-503-server-overloaded-error, pipeline-error-openrouter-llm-failed, call.in-progress.error-cozmoxfault-openrouter-llm-failed, call.in-progress.error-cozmoxfault-openrouter-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-openrouter-401-unauthorized, call.in-progress.error-cozmoxfault-openrouter-403-model-access-denied, call.in-progress.error-cozmoxfault-openrouter-429-exceeded-quota, call.in-progress.error-providerfault-openrouter-500-server-error, call.in-progress.error-providerfault-openrouter-503-server-overloaded-error, pipeline-error-perplexity-ai-400-bad-request-validation-failed, pipeline-error-perplexity-ai-401-unauthorized, pipeline-error-perplexity-ai-403-model-access-denied, pipeline-error-perplexity-ai-429-exceeded-quota, pipeline-error-perplexity-ai-500-server-error, pipeline-error-perplexity-ai-503-server-overloaded-error, pipeline-error-perplexity-ai-llm-failed, call.in-progress.error-cozmoxfault-perplexity-ai-llm-failed, call.in-progress.error-cozmoxfault-perplexity-ai-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-perplexity-ai-401-unauthorized, call.in-progress.error-cozmoxfault-perplexity-ai-403-model-access-denied, call.in-progress.error-cozmoxfault-perplexity-ai-429-exceeded-quota, call.in-progress.error-providerfault-perplexity-ai-500-server-error, call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error, pipeline-error-deepinfra-400-bad-request-validation-failed, pipeline-error-deepinfra-401-unauthorized, pipeline-error-deepinfra-403-model-access-denied, pipeline-error-deepinfra-429-exceeded-quota, pipeline-error-deepinfra-500-server-error, pipeline-error-deepinfra-503-server-overloaded-error, pipeline-error-deepinfra-llm-failed, call.in-progress.error-cozmoxfault-deepinfra-llm-failed, call.in-progress.error-cozmoxfault-deepinfra-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-deepinfra-401-unauthorized, call.in-progress.error-cozmoxfault-deepinfra-403-model-access-denied, call.in-progress.error-cozmoxfault-deepinfra-429-exceeded-quota, call.in-progress.error-providerfault-deepinfra-500-server-error, call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error, pipeline-error-runpod-400-bad-request-validation-failed, pipeline-error-runpod-401-unauthorized, pipeline-error-runpod-403-model-access-denied, pipeline-error-runpod-429-exceeded-quota, pipeline-error-runpod-500-server-error, pipeline-error-runpod-503-server-overloaded-error, pipeline-error-runpod-llm-failed, call.in-progress.error-cozmoxfault-runpod-llm-failed, call.in-progress.error-cozmoxfault-runpod-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-runpod-401-unauthorized, call.in-progress.error-cozmoxfault-runpod-403-model-access-denied, call.in-progress.error-cozmoxfault-runpod-429-exceeded-quota, call.in-progress.error-providerfault-runpod-500-server-error, call.in-progress.error-providerfault-runpod-503-server-overloaded-error, pipeline-error-custom-llm-400-bad-request-validation-failed, pipeline-error-custom-llm-401-unauthorized, pipeline-error-custom-llm-403-model-access-denied, pipeline-error-custom-llm-429-exceeded-quota, pipeline-error-custom-llm-500-server-error, pipeline-error-custom-llm-503-server-overloaded-error, pipeline-error-custom-llm-llm-failed, call.in-progress.error-cozmoxfault-custom-llm-llm-failed, call.in-progress.error-cozmoxfault-custom-llm-400-bad-request-validation-failed, call.in-progress.error-cozmoxfault-custom-llm-401-unauthorized, call.in-progress.error-cozmoxfault-custom-llm-403-model-access-denied, call.in-progress.error-cozmoxfault-custom-llm-429-exceeded-quota, call.in-progress.error-providerfault-custom-llm-500-server-error, call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error, pipeline-error-custom-voice-failed, pipeline-error-cartesia-socket-hang-up, pipeline-error-cartesia-requested-payment, pipeline-error-cartesia-500-server-error, pipeline-error-cartesia-502-server-error, pipeline-error-cartesia-503-server-error, pipeline-error-cartesia-522-server-error, call.in-progress.error-cozmoxfault-cartesia-socket-hang-up, call.in-progress.error-cozmoxfault-cartesia-requested-payment, call.in-progress.error-providerfault-cartesia-500-server-error, call.in-progress.error-providerfault-cartesia-503-server-error, call.in-progress.error-providerfault-cartesia-522-server-error, pipeline-error-eleven-labs-voice-not-found, pipeline-error-eleven-labs-quota-exceeded, pipeline-error-eleven-labs-unauthorized-access, pipeline-error-eleven-labs-unauthorized-to-access-model, pipeline-error-eleven-labs-professional-voices-only-for-creator-plus, pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade, pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade, pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade, pipeline-error-eleven-labs-system-busy-and-requested-upgrade, pipeline-error-eleven-labs-voice-not-fine-tuned, pipeline-error-eleven-labs-invalid-api-key, pipeline-error-eleven-labs-invalid-voice-samples, pipeline-error-eleven-labs-voice-disabled-by-owner, pipeline-error-eleven-labs-cozmox-voice-disabled-by-owner, pipeline-error-eleven-labs-blocked-account-in-probation, pipeline-error-eleven-labs-blocked-content-against-their-policy, pipeline-error-eleven-labs-missing-samples-for-voice-clone, pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used, pipeline-error-eleven-labs-voice-not-allowed-for-free-users, pipeline-error-eleven-labs-max-character-limit-exceeded, pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification, pipeline-error-eleven-labs-500-server-error, pipeline-error-eleven-labs-503-server-error, call.in-progress.error-cozmoxfault-eleven-labs-voice-not-found, call.in-progress.error-cozmoxfault-eleven-labs-quota-exceeded, call.in-progress.error-cozmoxfault-eleven-labs-unauthorized-access, call.in-progress.error-cozmoxfault-eleven-labs-unauthorized-to-access-model, call.in-progress.error-cozmoxfault-eleven-labs-professional-voices-only-for-creator-plus, call.in-progress.error-cozmoxfault-eleven-labs-blocked-free-plan-and-requested-upgrade, call.in-progress.error-cozmoxfault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade, call.in-progress.error-cozmoxfault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade, call.in-progress.error-cozmoxfault-eleven-labs-system-busy-and-requested-upgrade, call.in-progress.error-cozmoxfault-eleven-labs-voice-not-fine-tuned, call.in-progress.error-cozmoxfault-eleven-labs-invalid-api-key, call.in-progress.error-cozmoxfault-eleven-labs-invalid-voice-samples, call.in-progress.error-cozmoxfault-eleven-labs-voice-disabled-by-owner, call.in-progress.error-cozmoxfault-eleven-labs-blocked-account-in-probation, call.in-progress.error-cozmoxfault-eleven-labs-blocked-content-against-their-policy, call.in-progress.error-cozmoxfault-eleven-labs-missing-samples-for-voice-clone, call.in-progress.error-cozmoxfault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used, call.in-progress.error-cozmoxfault-eleven-labs-voice-not-allowed-for-free-users, call.in-progress.error-cozmoxfault-eleven-labs-max-character-limit-exceeded, call.in-progress.error-cozmoxfault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification, call.in-progress.error-providerfault-eleven-labs-500-server-error, call.in-progress.error-providerfault-eleven-labs-503-server-error, pipeline-error-playht-request-timed-out, pipeline-error-playht-invalid-voice, pipeline-error-playht-unexpected-error, pipeline-error-playht-out-of-credits, pipeline-error-playht-invalid-emotion, pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri, pipeline-error-playht-401-unauthorized, pipeline-error-playht-403-forbidden-out-of-characters, pipeline-error-playht-403-forbidden-api-access-not-available, pipeline-error-playht-429-exceeded-quota, pipeline-error-playht-502-gateway-error, pipeline-error-playht-504-gateway-error, call.in-progress.error-cozmoxfault-playht-request-timed-out, call.in-progress.error-cozmoxfault-playht-invalid-voice, call.in-progress.error-cozmoxfault-playht-unexpected-error, call.in-progress.error-cozmoxfault-playht-out-of-credits, call.in-progress.error-cozmoxfault-playht-invalid-emotion, call.in-progress.error-cozmoxfault-playht-voice-must-be-a-valid-voice-manifest-uri, call.in-progress.error-cozmoxfault-playht-401-unauthorized, call.in-progress.error-cozmoxfault-playht-403-forbidden-out-of-characters, call.in-progress.error-cozmoxfault-playht-403-forbidden-api-access-not-available, call.in-progress.error-cozmoxfault-playht-429-exceeded-quota, call.in-progress.error-providerfault-playht-502-gateway-error, call.in-progress.error-providerfault-playht-504-gateway-error, pipeline-error-custom-transcriber-failed, call.in-progress.error-cozmoxfault-custom-transcriber-failed, pipeline-error-eleven-labs-transcriber-failed, call.in-progress.error-cozmoxfault-eleven-labs-transcriber-failed, pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination, pipeline-error-deepgram-returning-401-invalid-credentials, pipeline-error-deepgram-returning-403-model-access-denied, pipeline-error-deepgram-returning-404-not-found, pipeline-error-deepgram-returning-500-invalid-json, pipeline-error-deepgram-returning-502-network-error, pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach, pipeline-error-deepgram-returning-econnreset, call.in-progress.error-cozmoxfault-deepgram-returning-400-no-such-model-language-tier-combination, call.in-progress.error-cozmoxfault-deepgram-returning-401-invalid-credentials, call.in-progress.error-cozmoxfault-deepgram-returning-404-not-found, call.in-progress.error-cozmoxfault-deepgram-returning-403-model-access-denied, call.in-progress.error-providerfault-deepgram-returning-500-invalid-json, call.in-progress.error-providerfault-deepgram-returning-502-network-error, call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach, pipeline-error-google-transcriber-failed, call.in-progress.error-cozmoxfault-google-transcriber-failed, pipeline-error-openai-transcriber-failed, call.in-progress.error-cozmoxfault-openai-transcriber-failed, assistant-ended-call, assistant-said-end-call-phrase, assistant-ended-call-with-hangup-task, assistant-ended-call-after-message-spoken, assistant-forwarded-call, assistant-join-timed-out, call.in-progress.error-assistant-did-not-receive-customer-audio, call.in-progress.error-transfer-failed, customer-busy, customer-ended-call, customer-did-not-answer, customer-did-not-give-microphone-permission, exceeded-max-duration, manually-canceled, phone-call-provider-closed-websocket, call.forwarding.operator-busy, silence-timed-out, call.in-progress.error-sip-inbound-call-failed-to-connect, call.in-progress.error-providerfault-outbound-sip-403-forbidden, call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required, call.in-progress.error-providerfault-outbound-sip-503-service-unavailable, call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable, call.in-progress.error-sip-outbound-call-failed-to-connect, call.ringing.hook-executed-say, call.ringing.hook-executed-transfer, call.ringing.sip-inbound-caller-hungup-before-call-connect, call.ringing.error-sip-inbound-call-failed-to-connect, twilio-failed-to-connect-call, twilio-reported-customer-misdialed, vonage-rejected, voicemail This is the destination where the call ended up being transferred to. If the call was not transferred, this will be empty.
- NumberTransferDestination
- SipTransferDestination
Show child attributes
Show child attributes
This is the ISO 8601 date-time string of when the call was started.
This is the ISO 8601 date-time string of when the call was ended.
This is the cost of the call in USD.
This is the cost of the call in USD.
Show child attributes
Show child attributes
This is a copy of assistant artifact plan. This isn't actually stored on the call but rather just returned in POST /call/web to enable artifact creation client side.
Show child attributes
Show child attributes
This is the analysis of the call. Configure in assistant.analysisPlan.
Show child attributes
Show child attributes
This is to real-time monitor the call. Configure in assistant.monitorPlan.
Show child attributes
Show child attributes
These are the artifacts created from the call. Configure in assistant.artifactPlan.
Show child attributes
Show child attributes
The ID of the call as provided by the phone number service. callSid in Twilio. conversationUuid in Vonage. callControlId in Telnyx.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
This is the campaign ID that the call belongs to.
This is the assistant ID that will be used for the call. To use a transient assistant, use assistant instead.
To start a call with:
- Assistant, use
assistantIdorassistant - Squad, use
squadIdorsquad - Workflow, use
workflowIdorworkflow
This is the assistant that will be used for the call. To use an existing assistant, use assistantId instead.
To start a call with:
- Assistant, use
assistant - Squad, use
squad - Workflow, use
workflow
Show child attributes
Show child attributes
These are the overrides for the assistant or assistantId's settings and template variables.
Show child attributes
Show child attributes
This is the squad that will be used for the call. To use a transient squad, use squad instead.
To start a call with:
- Assistant, use
assistantorassistantId - Squad, use
squadorsquadId - Workflow, use
workfloworworkflowId
This is a squad that will be used for the call. To use an existing squad, use squadId instead.
To start a call with:
- Assistant, use
assistantorassistantId - Squad, use
squadorsquadId - Workflow, use
workfloworworkflowId
Show child attributes
Show child attributes
This is the workflow that will be used for the call. To use a transient workflow, use workflow instead.
To start a call with:
- Assistant, use
assistantorassistantId - Squad, use
squadorsquadId - Workflow, use
workfloworworkflowId
This is a workflow that will be used for the call. To use an existing workflow, use workflowId instead.
To start a call with:
- Assistant, use
assistantorassistantId - Squad, use
squadorsquadId - Workflow, use
workfloworworkflowId
Show child attributes
Show child attributes
These are the overrides for the workflow or workflowId's settings and template variables.
Show child attributes
Show child attributes
This is the phone number that will be used for the call. To use a transient number, use phoneNumber instead.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
This is the phone number that will be used for the call. To use an existing number, use phoneNumberId instead.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
Show child attributes
Show child attributes
This is the customer that will be called. To call a transient customer , use customer instead.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
This is the customer that will be called. To call an existing customer, use customerId instead.
Only relevant for outboundPhoneCall and inboundPhoneCall type.
Show child attributes
Show child attributes
This is the name of the call. This is just for your own reference.
40This is the schedule plan of the call.
Show child attributes
Show child attributes
This is the transport of the call.