From 8d48bc254a69dbb478112cf0849ffd7a62cdfa20 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Sat, 26 Sep 2026 01:35:24 +0000
Subject: [PATCH 1/3] [fern-generated] Update SDK
Generated by Fern
CLI Version: unknown
Generators:
- fernapi/fern-typescript-sdk: 3.63.0
---
.fern/metadata.json | 6 +-
package.json | 2 +-
pnpm-lock.yaml | 8 +-
reference.md | 4 +-
src/BaseClient.ts | 4 +-
src/api/errors/ForbiddenError.ts | 21 ++
src/api/errors/index.ts | 1 +
.../calls/client/requests/CreateCallDto.ts | 5 +
src/api/resources/eval/client/Client.ts | 169 +++++++++++-----
.../EvalControllerGetRunsPaginatedRequest.ts | 13 +-
...ControllerGetRunsPaginatedRequestSortBy.ts | 2 -
src/api/resources/files/client/Client.ts | 10 +-
.../files/client/requests/ListFilesRequest.ts | 9 +-
.../files/types/ListFilesRequestPurpose.ts | 8 +
src/api/resources/files/types/index.ts | 1 +
.../requests/UpdateStructuredOutputDto.ts | 9 +
src/api/resources/tools/client/Client.ts | 17 +-
src/api/types/AnthropicBedrockModel.ts | 2 +
...AnthropicBedrockModelFallbackModelsItem.ts | 21 ++
src/api/types/AssemblyAiTranscriber.ts | 25 ++-
.../AssemblyAiTranscriberLanguageCodesItem.ts | 14 ++
src/api/types/AssemblyAiTranscriberMode.ts | 2 +-
.../types/AssemblyAiTranscriberSpeechModel.ts | 5 +-
src/api/types/Assistant.ts | 2 +
src/api/types/AssistantActivation.ts | 9 +-
src/api/types/AssistantDraft.ts | 2 +
src/api/types/AssistantVersion.ts | 2 +
src/api/types/AudioFormat.ts | 2 +-
src/api/types/AudioFormatFormat.ts | 12 ++
src/api/types/Call.ts | 5 +
src/api/types/CallEndedReason.ts | 3 +
.../ClientInboundMessageAppendContext.ts | 13 ++
.../ClientInboundMessageAppendContextKind.ts | 14 ++
src/api/types/ClientInboundMessageMessage.ts | 5 +
src/api/types/ConflictErrorBody.ts | 15 ++
src/api/types/CreateOutboundCallDto.ts | 5 +
src/api/types/CreateStructuredOutputDto.ts | 9 +
src/api/types/CreateWebCallDto.ts | 5 +
src/api/types/DeepgramTranscriber.ts | 2 +-
src/api/types/DeepgramVoice.ts | 16 +-
src/api/types/DeepgramVoiceId.ts | 36 ++++
src/api/types/DeepgramVoiceModel.ts | 3 +-
src/api/types/EvalRun.ts | 9 +-
.../types/FallbackAssemblyAiTranscriber.ts | 25 ++-
...kAssemblyAiTranscriberLanguageCodesItem.ts | 14 ++
.../FallbackAssemblyAiTranscriberMode.ts | 2 +-
...allbackAssemblyAiTranscriberSpeechModel.ts | 5 +-
src/api/types/FallbackDeepgramTranscriber.ts | 2 +-
src/api/types/FallbackDeepgramVoice.ts | 16 +-
src/api/types/FallbackDeepgramVoiceId.ts | 36 ++++
src/api/types/FallbackDeepgramVoiceModel.ts | 3 +-
src/api/types/FallbackOpenAiVoice.ts | 6 +-
src/api/types/FallbackOpenAiVoiceId.ts | 9 -
src/api/types/FallbackOpenAiVoiceIdEnum.ts | 13 --
src/api/types/FallbackRimeAiVoiceId.ts | 2 +-
src/api/types/FallbackRimeAiVoiceIdEnum.ts | 9 +-
src/api/types/FallbackRimeAiVoiceModel.ts | 2 +
src/api/types/FilePaginatedResponse.ts | 8 +
src/api/types/GetEvalRunPaginatedDto.ts | 13 +-
src/api/types/GetEvalRunPaginatedDtoSortBy.ts | 3 -
src/api/types/InviteUserDtoRoleZero.ts | 1 +
src/api/types/JsonQueryOnEventsTableOn.ts | 2 +
src/api/types/ModelCost.ts | 4 +
src/api/types/ModelDeprecationNotice.ts | 29 +++
src/api/types/OpenAiModel.ts | 17 ++
src/api/types/OpenAiModelModel.ts | 2 +
src/api/types/OpenAiModelServiceTier.ts | 20 ++
src/api/types/OpenAiReasoner.ts | 18 ++
src/api/types/OpenAiReasonerModel.ts | 9 +
src/api/types/OpenAiReasonerProvider.ts | 7 +
.../types/OpenAiReasonerReasoningEffort.ts | 13 ++
src/api/types/OpenAiSpeaker.ts | 10 +
.../OpenAiSpeakerPersonalityPacksItem.ts | 10 +
src/api/types/OpenAiVoice.ts | 6 +-
src/api/types/OpenAiVoiceId.ts | 9 -
src/api/types/OpenAiVoiceIdEnum.ts | 13 --
src/api/types/OrgApiLimitsDto.ts | 8 +
src/api/types/OrgConcurrencyLimitsDto.ts | 10 +
src/api/types/OrgLimitsResponseDto.ts | 10 +
src/api/types/RimeAiVoiceId.ts | 2 +-
src/api/types/RimeAiVoiceIdEnum.ts | 9 +-
src/api/types/RimeAiVoiceModel.ts | 2 +
...ServerMessageEndOfCallReportEndedReason.ts | 3 +
.../ServerMessageStatusUpdateEndedReason.ts | 3 +
src/api/types/Squad.ts | 8 +
src/api/types/SquadVersion.ts | 50 +++++
.../types/SquadVersionPaginatedMetadata.ts | 7 +
.../types/SquadVersionPaginatedResponse.ts | 8 +
src/api/types/StructuredOutput.ts | 9 +
src/api/types/Subscription.ts | 5 +
.../SubscriptionBillingCollectionMethod.ts | 12 ++
.../types/ToolPinnedConflictResponseDto.ts | 3 -
.../ToolPinnedConflictResponseDtoError.ts | 7 -
src/api/types/ToolWriteConflictResponseDto.ts | 9 +
.../ToolWriteConflictResponseDtoError.ts | 7 +
src/api/types/UpdateUserRoleDtoRoleZero.ts | 1 +
src/api/types/VapiWebsocketTransport.ts | 8 +-
.../types/VersionPinReferenceSourceType.ts | 1 +
src/api/types/index.ts | 28 ++-
src/version.ts | 2 +-
tests/wire/assistants.test.ts | 110 +++++++++++
tests/wire/calls.test.ts | 51 +++--
tests/wire/campaigns.test.ts | 32 ++-
tests/wire/chats.test.ts | 24 +++
tests/wire/eval.test.ts | 185 +++++++++++++++++-
tests/wire/files.test.ts | 4 +-
tests/wire/sessions.test.ts | 32 +++
tests/wire/simulationPersonalities.test.ts | 8 +
tests/wire/simulationScenarios.test.ts | 8 +
tests/wire/squads.test.ts | 118 +++++++++++
tests/wire/tools.test.ts | 27 ++-
111 files changed, 1427 insertions(+), 249 deletions(-)
create mode 100644 src/api/errors/ForbiddenError.ts
create mode 100644 src/api/resources/files/types/ListFilesRequestPurpose.ts
create mode 100644 src/api/types/AnthropicBedrockModelFallbackModelsItem.ts
create mode 100644 src/api/types/AudioFormatFormat.ts
create mode 100644 src/api/types/ClientInboundMessageAppendContext.ts
create mode 100644 src/api/types/ClientInboundMessageAppendContextKind.ts
create mode 100644 src/api/types/ConflictErrorBody.ts
delete mode 100644 src/api/types/FallbackOpenAiVoiceId.ts
delete mode 100644 src/api/types/FallbackOpenAiVoiceIdEnum.ts
create mode 100644 src/api/types/FilePaginatedResponse.ts
create mode 100644 src/api/types/ModelDeprecationNotice.ts
create mode 100644 src/api/types/OpenAiModelServiceTier.ts
create mode 100644 src/api/types/OpenAiReasoner.ts
create mode 100644 src/api/types/OpenAiReasonerModel.ts
create mode 100644 src/api/types/OpenAiReasonerProvider.ts
create mode 100644 src/api/types/OpenAiReasonerReasoningEffort.ts
create mode 100644 src/api/types/OpenAiSpeaker.ts
create mode 100644 src/api/types/OpenAiSpeakerPersonalityPacksItem.ts
delete mode 100644 src/api/types/OpenAiVoiceId.ts
delete mode 100644 src/api/types/OpenAiVoiceIdEnum.ts
create mode 100644 src/api/types/OrgApiLimitsDto.ts
create mode 100644 src/api/types/OrgConcurrencyLimitsDto.ts
create mode 100644 src/api/types/OrgLimitsResponseDto.ts
create mode 100644 src/api/types/SquadVersion.ts
create mode 100644 src/api/types/SquadVersionPaginatedMetadata.ts
create mode 100644 src/api/types/SquadVersionPaginatedResponse.ts
create mode 100644 src/api/types/SubscriptionBillingCollectionMethod.ts
delete mode 100644 src/api/types/ToolPinnedConflictResponseDtoError.ts
create mode 100644 src/api/types/ToolWriteConflictResponseDto.ts
create mode 100644 src/api/types/ToolWriteConflictResponseDtoError.ts
diff --git a/.fern/metadata.json b/.fern/metadata.json
index 9d704c2e..0ebde6ef 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -1,5 +1,5 @@
{
- "cliVersion": "5.119.2",
+ "cliVersion": "5.139.0",
"generatorName": "fernapi/fern-typescript-sdk",
"generatorVersion": "3.63.0",
"generatorConfig": {
@@ -11,10 +11,10 @@
"omitUndefined": true,
"enableInlineTypes": false
},
- "originGitCommit": "ca6a646c295c707d5b6dff2fceab26c86c9137d5",
+ "originGitCommit": "b749d47278ed14216300b72e04e2dfaeea4bf2c2",
"originGitCommitIsDirty": true,
"invokedBy": "ci",
"requestedVersion": "AUTO",
"ciProvider": "unknown",
- "sdkVersion": "2.0.1"
+ "sdkVersion": "0.0.0-fern-placeholder"
}
diff --git a/package.json b/package.json
index 5ebe74c5..fa9425b9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@vapi-ai/server-sdk",
- "version": "2.0.1",
+ "version": "0.0.0-fern-placeholder",
"private": false,
"repository": {
"type": "git",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 07b5e068..3d168465 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -279,8 +279,8 @@ packages:
'@standard-schema/spec@1.1.0':
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
- '@tybys/wasm-util@0.10.3':
- resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==}
+ '@tybys/wasm-util@0.10.4':
+ resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==}
'@types/chai@5.2.3':
resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
@@ -1153,7 +1153,7 @@ snapshots:
dependencies:
'@emnapi/core': 1.11.3
'@emnapi/runtime': 1.11.3
- '@tybys/wasm-util': 0.10.3
+ '@tybys/wasm-util': 0.10.4
optional: true
'@open-draft/deferred-promise@2.2.0': {}
@@ -1221,7 +1221,7 @@ snapshots:
'@standard-schema/spec@1.1.0': {}
- '@tybys/wasm-util@0.10.3':
+ '@tybys/wasm-util@0.10.4':
dependencies:
tslib: 2.8.1
optional: true
diff --git a/reference.md b/reference.md
index 62fb2411..edd194bc 100644
--- a/reference.md
+++ b/reference.md
@@ -3279,9 +3279,7 @@ Returns files uploaded to the authenticated organization.
```typescript
-await client.files.list({
- purpose: "purpose"
-});
+await client.files.list();
```
diff --git a/src/BaseClient.ts b/src/BaseClient.ts
index 57a9cccf..0cbc606c 100644
--- a/src/BaseClient.ts
+++ b/src/BaseClient.ts
@@ -52,8 +52,8 @@ export function normalizeClientOptions> {
const {
- id,
- page,
- sortOrder,
sortBy,
+ search,
+ id,
limit,
createdAtGt,
createdAtLt,
@@ -511,12 +561,13 @@ export class EvalClient {
updatedAtLt,
updatedAtGe,
updatedAtLe,
+ page,
+ sortOrder,
} = request;
const _queryParams: Record = {
- id,
- page,
- sortOrder: sortOrder != null ? sortOrder : undefined,
sortBy: sortBy != null ? sortBy : undefined,
+ search,
+ id,
limit,
createdAtGt: createdAtGt != null ? createdAtGt : undefined,
createdAtLt: createdAtLt != null ? createdAtLt : undefined,
@@ -526,6 +577,8 @@ export class EvalClient {
updatedAtLt: updatedAtLt != null ? updatedAtLt : undefined,
updatedAtGe: updatedAtGe != null ? updatedAtGe : undefined,
updatedAtLe: updatedAtLe != null ? updatedAtLe : undefined,
+ page,
+ sortOrder: sortOrder != null ? sortOrder : undefined,
};
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
@@ -554,11 +607,16 @@ export class EvalClient {
}
if (_response.error.reason === "status-code") {
- throw new errors.VapiError({
- statusCode: _response.error.statusCode,
- body: _response.error.body,
- rawResponse: _response.rawResponse,
- });
+ switch (_response.error.statusCode) {
+ case 403:
+ throw new Vapi.ForbiddenError(_response.error.body as unknown, _response.rawResponse);
+ default:
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
}
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/eval/run");
@@ -570,6 +628,8 @@ export class EvalClient {
* @param {Vapi.CreateEvalRunDto} request
* @param {EvalClient.RequestOptions} requestOptions - Request-specific configuration.
*
+ * @throws {@link Vapi.ForbiddenError}
+ *
* @example
* await client.eval.evalControllerRun({
* target: {
@@ -619,11 +679,16 @@ export class EvalClient {
}
if (_response.error.reason === "status-code") {
- throw new errors.VapiError({
- statusCode: _response.error.statusCode,
- body: _response.error.body,
- rawResponse: _response.rawResponse,
- });
+ switch (_response.error.statusCode) {
+ case 403:
+ throw new Vapi.ForbiddenError(_response.error.body as unknown, _response.rawResponse);
+ default:
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
}
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/eval/run");
diff --git a/src/api/resources/eval/client/requests/EvalControllerGetRunsPaginatedRequest.ts b/src/api/resources/eval/client/requests/EvalControllerGetRunsPaginatedRequest.ts
index a9957a74..0ba3c81b 100644
--- a/src/api/resources/eval/client/requests/EvalControllerGetRunsPaginatedRequest.ts
+++ b/src/api/resources/eval/client/requests/EvalControllerGetRunsPaginatedRequest.ts
@@ -7,14 +7,11 @@ import type * as Vapi from "../../../../index.js";
* {}
*/
export interface EvalControllerGetRunsPaginatedRequest {
+ sortBy?: Vapi.EvalControllerGetRunsPaginatedRequestSortBy;
+ /** Literal, case-insensitive search across eval and assistant names. */
+ search?: string;
/** Filters eval runs by ID. */
id?: string;
- /** This is the page number to return. Defaults to 1. */
- page?: number;
- /** This is the sort order for pagination. Defaults to 'DESC'. */
- sortOrder?: Vapi.EvalControllerGetRunsPaginatedRequestSortOrder;
- /** This is the column to sort by. Defaults to 'createdAt'. */
- sortBy?: Vapi.EvalControllerGetRunsPaginatedRequestSortBy;
/** This is the maximum number of items to return. Defaults to 100. */
limit?: number;
/** This will return items where the createdAt is greater than the specified value. */
@@ -33,4 +30,8 @@ export interface EvalControllerGetRunsPaginatedRequest {
updatedAtGe?: string;
/** This will return items where the updatedAt is less than or equal to the specified value. */
updatedAtLe?: string;
+ /** This is the page number to return. Defaults to 1. */
+ page?: number;
+ /** This is the sort order for pagination. Defaults to 'DESC'. */
+ sortOrder?: Vapi.EvalControllerGetRunsPaginatedRequestSortOrder;
}
diff --git a/src/api/resources/eval/types/EvalControllerGetRunsPaginatedRequestSortBy.ts b/src/api/resources/eval/types/EvalControllerGetRunsPaginatedRequestSortBy.ts
index d9ca453f..bd656983 100644
--- a/src/api/resources/eval/types/EvalControllerGetRunsPaginatedRequestSortBy.ts
+++ b/src/api/resources/eval/types/EvalControllerGetRunsPaginatedRequestSortBy.ts
@@ -2,8 +2,6 @@
export const EvalControllerGetRunsPaginatedRequestSortBy = {
CreatedAt: "createdAt",
- Duration: "duration",
- Cost: "cost",
} as const;
export type EvalControllerGetRunsPaginatedRequestSortBy =
(typeof EvalControllerGetRunsPaginatedRequestSortBy)[keyof typeof EvalControllerGetRunsPaginatedRequestSortBy];
diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts
index 2085f038..901a9753 100644
--- a/src/api/resources/files/client/Client.ts
+++ b/src/api/resources/files/client/Client.ts
@@ -29,24 +29,22 @@ export class FilesClient {
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
- * await client.files.list({
- * purpose: "purpose"
- * })
+ * await client.files.list()
*/
public list(
- request: Vapi.ListFilesRequest,
+ request: Vapi.ListFilesRequest = {},
requestOptions?: FilesClient.RequestOptions,
): core.HttpResponsePromise {
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
}
private async __list(
- request: Vapi.ListFilesRequest,
+ request: Vapi.ListFilesRequest = {},
requestOptions?: FilesClient.RequestOptions,
): Promise> {
const { purpose } = request;
const _queryParams: Record = {
- purpose,
+ purpose: purpose != null ? purpose : undefined,
};
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
diff --git a/src/api/resources/files/client/requests/ListFilesRequest.ts b/src/api/resources/files/client/requests/ListFilesRequest.ts
index 8c767c49..f8d9a4b8 100644
--- a/src/api/resources/files/client/requests/ListFilesRequest.ts
+++ b/src/api/resources/files/client/requests/ListFilesRequest.ts
@@ -1,11 +1,12 @@
// This file was auto-generated by Fern from our API Definition.
+import type * as Vapi from "../../../../index.js";
+
/**
* @example
- * {
- * purpose: "purpose"
- * }
+ * {}
*/
export interface ListFilesRequest {
- purpose: string;
+ /** Only return files with this purpose. When omitted, files of every purpose except composer attachments are returned. */
+ purpose?: Vapi.ListFilesRequestPurpose;
}
diff --git a/src/api/resources/files/types/ListFilesRequestPurpose.ts b/src/api/resources/files/types/ListFilesRequestPurpose.ts
new file mode 100644
index 00000000..36914c81
--- /dev/null
+++ b/src/api/resources/files/types/ListFilesRequestPurpose.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export const ListFilesRequestPurpose = {
+ Assistant: "assistant",
+ ComposerAttachment: "composer-attachment",
+ KnowledgeBaseV2: "knowledge-base-v2",
+} as const;
+export type ListFilesRequestPurpose = (typeof ListFilesRequestPurpose)[keyof typeof ListFilesRequestPurpose];
diff --git a/src/api/resources/files/types/index.ts b/src/api/resources/files/types/index.ts
index ed57d2c7..626e2f29 100644
--- a/src/api/resources/files/types/index.ts
+++ b/src/api/resources/files/types/index.ts
@@ -1 +1,2 @@
export * from "./CreateFilesRequestPurpose.js";
+export * from "./ListFilesRequestPurpose.js";
diff --git a/src/api/resources/structuredOutputs/client/requests/UpdateStructuredOutputDto.ts b/src/api/resources/structuredOutputs/client/requests/UpdateStructuredOutputDto.ts
index 1b39ca23..a5a00b71 100644
--- a/src/api/resources/structuredOutputs/client/requests/UpdateStructuredOutputDto.ts
+++ b/src/api/resources/structuredOutputs/client/requests/UpdateStructuredOutputDto.ts
@@ -24,6 +24,15 @@ export interface UpdateStructuredOutputDto {
/**
* This is the regex pattern to match against the transcript.
*
+ * Simulation evaluations use a canonical transcript built from recorded messages:
+ * User: and AI: dialogue, AI: tool_calls: JSON name/arguments records, and
+ * AI: tool_call_results: JSON results. System messages are excluded. These
+ * fixed labels apply even when custom artifact transcript labels are configured.
+ * Tool payloads participate in first-match and all-match extraction in event order.
+ * An empty message array falls back to the supplied transcript verbatim.
+ * Production-call extraction and call preview use their existing transcripts,
+ * so previewing the same output on a simulation's call can return a different result.
+ *
* Only used when type is 'regex'. Supports both raw patterns (e.g. '\d+') and
* regex literal format (e.g. '/\d+/gi'). Uses RE2 syntax for safety.
*
diff --git a/src/api/resources/tools/client/Client.ts b/src/api/resources/tools/client/Client.ts
index 67398118..a02c9d3b 100644
--- a/src/api/resources/tools/client/Client.ts
+++ b/src/api/resources/tools/client/Client.ts
@@ -298,6 +298,8 @@ export class ToolsClient {
* @param {Vapi.UpdateToolsRequest} request
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
*
+ * @throws {@link Vapi.ConflictError}
+ *
* @example
* await client.tools.update({
* id: "id",
@@ -348,11 +350,16 @@ export class ToolsClient {
}
if (_response.error.reason === "status-code") {
- throw new errors.VapiError({
- statusCode: _response.error.statusCode,
- body: _response.error.body,
- rawResponse: _response.rawResponse,
- });
+ switch (_response.error.statusCode) {
+ case 409:
+ throw new Vapi.ConflictError(_response.error.body as unknown, _response.rawResponse);
+ default:
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
}
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/tool/{id}");
diff --git a/src/api/types/AnthropicBedrockModel.ts b/src/api/types/AnthropicBedrockModel.ts
index c9a984f7..a4663ec8 100644
--- a/src/api/types/AnthropicBedrockModel.ts
+++ b/src/api/types/AnthropicBedrockModel.ts
@@ -31,6 +31,8 @@ export interface AnthropicBedrockModel {
knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto | undefined;
/** The specific Anthropic/Claude model that will be used via Bedrock. */
model: Vapi.AnthropicBedrockModelModel;
+ /** At most one same-provider Bedrock fallback model, tried if the primary fails. Cannot be combined with thinking in this release. Resolution uses the call's Bedrock credential region (or ANTHROPIC_BEDROCK_AWS_REGION). Names with no inference profile in that region are skipped and warned, never remapped to US or global. On Vapi EU, fallback names without an EU inference profile are rejected at write time. */
+ fallbackModels?: Vapi.AnthropicBedrockModelFallbackModelsItem[] | undefined;
/**
* Optional configuration for Anthropic's thinking feature.
* Only applicable for claude-3-7-sonnet-20250219 model.
diff --git a/src/api/types/AnthropicBedrockModelFallbackModelsItem.ts b/src/api/types/AnthropicBedrockModelFallbackModelsItem.ts
new file mode 100644
index 00000000..80301423
--- /dev/null
+++ b/src/api/types/AnthropicBedrockModelFallbackModelsItem.ts
@@ -0,0 +1,21 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export const AnthropicBedrockModelFallbackModelsItem = {
+ Claude3Opus20240229: "claude-3-opus-20240229",
+ Claude3Sonnet20240229: "claude-3-sonnet-20240229",
+ Claude3Haiku20240307: "claude-3-haiku-20240307",
+ Claude35Sonnet20240620: "claude-3-5-sonnet-20240620",
+ Claude35Sonnet20241022: "claude-3-5-sonnet-20241022",
+ Claude35Haiku20241022: "claude-3-5-haiku-20241022",
+ Claude37Sonnet20250219: "claude-3-7-sonnet-20250219",
+ ClaudeOpus420250514: "claude-opus-4-20250514",
+ ClaudeOpus4520251101: "claude-opus-4-5-20251101",
+ ClaudeOpus46: "claude-opus-4-6",
+ ClaudeSonnet420250514: "claude-sonnet-4-20250514",
+ ClaudeSonnet4520250929: "claude-sonnet-4-5-20250929",
+ ClaudeSonnet46: "claude-sonnet-4-6",
+ ClaudeHaiku4520251001: "claude-haiku-4-5-20251001",
+ GlobalAnthropicClaudeHaiku4520251001V10: "global.anthropic.claude-haiku-4-5-20251001-v1:0",
+} as const;
+export type AnthropicBedrockModelFallbackModelsItem =
+ (typeof AnthropicBedrockModelFallbackModelsItem)[keyof typeof AnthropicBedrockModelFallbackModelsItem];
diff --git a/src/api/types/AssemblyAiTranscriber.ts b/src/api/types/AssemblyAiTranscriber.ts
index 350f4b5e..c4dde3d0 100644
--- a/src/api/types/AssemblyAiTranscriber.ts
+++ b/src/api/types/AssemblyAiTranscriber.ts
@@ -51,21 +51,32 @@ export interface AssemblyAiTranscriber {
*/
vadAssistedEndpointingEnabled?: boolean | undefined;
/**
- * This is the transcription mode used by the `universal-3-5-pro` speech model. Only applies to the `universal-3-5-pro` speech model.
+ * This is the transcription mode used by the Universal Pro speech models. Only applies to `universal-3-5-pro` and `universal-3-6-pro`.
*
* @default 'balanced'
*/
mode?: Vapi.AssemblyAiTranscriberMode | undefined;
- /** This is a prompt that provides additional context to the transcription model. Only applies to the `universal-3-5-pro` speech model. */
+ /** This is a prompt that provides additional context to the transcription model. Only applies to `universal-3-5-pro` and `universal-3-6-pro`. */
prompt?: string | undefined;
- /** This is context about the voice agent that guides the transcription model. Only applies to the `universal-3-5-pro` speech model. */
+ /** This is context about the voice agent that guides the transcription model. Only applies to `universal-3-5-pro` and `universal-3-6-pro`. */
agentContext?: string | undefined;
- /** These are language codes used to steer automatic language detection. Only applies to the `universal-3-5-pro` speech model. */
+ /**
+ * When true, the text the assistant just spoke is sent to AssemblyAI as `agent_context` after every assistant turn, replacing the previous value, so the user's reply is transcribed in the context of the question it answers.
+ * `agentContext` still seeds the first turn. Text longer than 1750 characters keeps its last 1750 characters. Turns the user interrupted are not sent when the interruption is detected by voice activity (the default, `stopSpeakingPlan.numWords: 0`).
+ * Only applies to `universal-3-5-pro` and `universal-3-6-pro`.
+ *
+ * @default false
+ */
+ agentContextAutoUpdateEnabled?: boolean | undefined;
+ /**
+ * These are language codes used to steer automatic language detection. Only applies to `universal-3-5-pro` and `universal-3-6-pro`.
+ * `ur`, `ru`, `ko`, `ca`, `gl`, `ro`, `et`, `fa`, `yue`, `af`, `mr`, `zu`, `xh` and `nn` were added with `universal-3-6-pro`.
+ */
languageCodes?: Vapi.AssemblyAiTranscriberLanguageCodesItem[] | undefined;
/**
* This is the speech model used for the streaming session.
- * Keyterms prompting is supported on universal-streaming-english and universal-3-5-pro.
- * universal-3-5-pro is AssemblyAI's most accurate voice-agent model.
+ * Keyterms prompting is supported on universal-streaming-english, universal-3-5-pro and universal-3-6-pro.
+ * universal-3-6-pro is AssemblyAI's newest and most accurate voice-agent model.
* @default 'universal-streaming-english'
*/
speechModel?: Vapi.AssemblyAiTranscriberSpeechModel | undefined;
@@ -76,7 +87,7 @@ export interface AssemblyAiTranscriber {
/**
* Keyterms prompting improves recognition accuracy for specific words and phrases.
* Can include up to 100 keyterms, each up to 50 characters.
- * Costs an additional $0.04/hour on universal-streaming-english and is included at no extra cost on universal-3-5-pro.
+ * Costs an additional $0.04/hour on universal-streaming-english and is included at no extra cost on the Universal Pro models (universal-3-5-pro, universal-3-6-pro).
*/
keytermsPrompt?: string[] | undefined;
/** The duration of the end utterance silence threshold in milliseconds. */
diff --git a/src/api/types/AssemblyAiTranscriberLanguageCodesItem.ts b/src/api/types/AssemblyAiTranscriberLanguageCodesItem.ts
index 5d623a18..20be1e02 100644
--- a/src/api/types/AssemblyAiTranscriberLanguageCodesItem.ts
+++ b/src/api/types/AssemblyAiTranscriberLanguageCodesItem.ts
@@ -19,6 +19,20 @@ export const AssemblyAiTranscriberLanguageCodesItem = {
He: "he",
Ja: "ja",
Zh: "zh",
+ Ur: "ur",
+ Ru: "ru",
+ Ko: "ko",
+ Ca: "ca",
+ Gl: "gl",
+ Ro: "ro",
+ Et: "et",
+ Fa: "fa",
+ Yue: "yue",
+ Af: "af",
+ Mr: "mr",
+ Zu: "zu",
+ Xh: "xh",
+ Nn: "nn",
} as const;
export type AssemblyAiTranscriberLanguageCodesItem =
(typeof AssemblyAiTranscriberLanguageCodesItem)[keyof typeof AssemblyAiTranscriberLanguageCodesItem];
diff --git a/src/api/types/AssemblyAiTranscriberMode.ts b/src/api/types/AssemblyAiTranscriberMode.ts
index 02b87774..b8148f6c 100644
--- a/src/api/types/AssemblyAiTranscriberMode.ts
+++ b/src/api/types/AssemblyAiTranscriberMode.ts
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.
/**
- * This is the transcription mode used by the `universal-3-5-pro` speech model. Only applies to the `universal-3-5-pro` speech model.
+ * This is the transcription mode used by the Universal Pro speech models. Only applies to `universal-3-5-pro` and `universal-3-6-pro`.
*
* @default 'balanced'
*/
diff --git a/src/api/types/AssemblyAiTranscriberSpeechModel.ts b/src/api/types/AssemblyAiTranscriberSpeechModel.ts
index 99791199..bfd3e350 100644
--- a/src/api/types/AssemblyAiTranscriberSpeechModel.ts
+++ b/src/api/types/AssemblyAiTranscriberSpeechModel.ts
@@ -2,14 +2,15 @@
/**
* This is the speech model used for the streaming session.
- * Keyterms prompting is supported on universal-streaming-english and universal-3-5-pro.
- * universal-3-5-pro is AssemblyAI's most accurate voice-agent model.
+ * Keyterms prompting is supported on universal-streaming-english, universal-3-5-pro and universal-3-6-pro.
+ * universal-3-6-pro is AssemblyAI's newest and most accurate voice-agent model.
* @default 'universal-streaming-english'
*/
export const AssemblyAiTranscriberSpeechModel = {
UniversalStreamingEnglish: "universal-streaming-english",
UniversalStreamingMultilingual: "universal-streaming-multilingual",
Universal35Pro: "universal-3-5-pro",
+ Universal36Pro: "universal-3-6-pro",
} as const;
export type AssemblyAiTranscriberSpeechModel =
(typeof AssemblyAiTranscriberSpeechModel)[keyof typeof AssemblyAiTranscriberSpeechModel];
diff --git a/src/api/types/Assistant.ts b/src/api/types/Assistant.ts
index f603787d..53c73b44 100644
--- a/src/api/types/Assistant.ts
+++ b/src/api/types/Assistant.ts
@@ -76,6 +76,8 @@ export interface Assistant {
* published under it.
*/
latestVersion?: (string | null) | undefined;
+ /** Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot that carries the model (for example `model` or `model.fallbackModels[1]`), the deprecation and retirement dates as `YYYY-MM-DD` in UTC, and the recommended replacement model: the registry's replacement, followed through any further retirements as of the response date, so it names a model that is alive on that day. Ignored if sent back in a create or update request. */
+ modelDeprecations?: Vapi.ModelDeprecationNotice[] | undefined;
/**
* This is the name of the assistant.
*
diff --git a/src/api/types/AssistantActivation.ts b/src/api/types/AssistantActivation.ts
index 2864d525..6e88bb5d 100644
--- a/src/api/types/AssistantActivation.ts
+++ b/src/api/types/AssistantActivation.ts
@@ -6,11 +6,18 @@
export interface AssistantActivation {
/**
* This is the version label (e.g. `v3`) of the assistant active when
- * the activation row was recorded. `null` for inline assistants,
+ * the activation row was recorded. Absent for inline assistants,
* orgs not on assistant versioning, and parent assistants that have
* not yet been published under it.
*/
assistantVersion?: (string | null) | undefined;
+ /**
+ * This is the version label (e.g. `v3`) of the squad that was governing the
+ * call when this activation was recorded. Absent for activations that no
+ * squad version governs: standalone-assistant calls, flag-off orgs, squads
+ * with no published version, and hops to an assistant outside the squad.
+ */
+ squadVersion?: (string | null) | undefined;
/** This is the name of the assistant that was active during the call. */
assistantName: string;
/** This is the ID of the assistant that was active during the call. */
diff --git a/src/api/types/AssistantDraft.ts b/src/api/types/AssistantDraft.ts
index 0b4a0a3a..98d4552b 100644
--- a/src/api/types/AssistantDraft.ts
+++ b/src/api/types/AssistantDraft.ts
@@ -65,6 +65,8 @@ export interface AssistantDraft {
credentials?: Vapi.AssistantDraftCredentialsItem[] | undefined;
/** This is a set of actions that will be performed on certain events. */
hooks?: Vapi.AssistantDraftHooksItem[] | undefined;
+ /** Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot that carries the model (for example `model` or `model.fallbackModels[1]`), the deprecation and retirement dates as `YYYY-MM-DD` in UTC, and the recommended replacement model: the registry's replacement, followed through any further retirements as of the response date, so it names a model that is alive on that day. Ignored if sent back in a create or update request. */
+ modelDeprecations?: Vapi.ModelDeprecationNotice[] | undefined;
/**
* This is the name of the assistant.
*
diff --git a/src/api/types/AssistantVersion.ts b/src/api/types/AssistantVersion.ts
index c1d1cb9d..3ebc0bfb 100644
--- a/src/api/types/AssistantVersion.ts
+++ b/src/api/types/AssistantVersion.ts
@@ -92,6 +92,8 @@ export interface AssistantVersion {
deletedAt?: (string | null) | undefined;
/** This is the ISO 8601 date-time string of when the version was created. */
createdAt: string;
+ /** Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot that carries the model (for example `model` or `model.fallbackModels[1]`), the deprecation and retirement dates as `YYYY-MM-DD` in UTC, and the recommended replacement model: the registry's replacement, followed through any further retirements as of the response date, so it names a model that is alive on that day. Ignored if sent back in a create or update request. */
+ modelDeprecations?: Vapi.ModelDeprecationNotice[] | undefined;
/**
* This is the name of the assistant.
*
diff --git a/src/api/types/AudioFormat.ts b/src/api/types/AudioFormat.ts
index 009af6d0..7d60983b 100644
--- a/src/api/types/AudioFormat.ts
+++ b/src/api/types/AudioFormat.ts
@@ -14,7 +14,7 @@ export interface AudioFormat {
*
* @default 'pcm_s16le'
*/
- format: Record;
+ format: Vapi.AudioFormatFormat;
/**
* This is the container format of the call.
*
diff --git a/src/api/types/AudioFormatFormat.ts b/src/api/types/AudioFormatFormat.ts
new file mode 100644
index 00000000..31d96d5c
--- /dev/null
+++ b/src/api/types/AudioFormatFormat.ts
@@ -0,0 +1,12 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * This is the audio format of the call.
+ *
+ * @default 'pcm_s16le'
+ */
+export const AudioFormatFormat = {
+ PcmS16Le: "pcm_s16le",
+ Mulaw: "mulaw",
+} as const;
+export type AudioFormatFormat = (typeof AudioFormatFormat)[keyof typeof AudioFormatFormat];
diff --git a/src/api/types/Call.ts b/src/api/types/Call.ts
index 8896a4e4..06c05677 100644
--- a/src/api/types/Call.ts
+++ b/src/api/types/Call.ts
@@ -37,6 +37,11 @@ export interface Call {
* direct `assistantId`. Omit to follow the latest version.
*/
assistantVersion?: (string | null) | undefined;
+ /**
+ * This is the squad version to use for this call. Supported only with
+ * direct `squadId`. Omit to follow the latest version.
+ */
+ squadVersion?: (string | null) | undefined;
/** This is the transport of the call. */
transport?: Vapi.CallTransport | undefined;
/** This is the unique identifier for the call. */
diff --git a/src/api/types/CallEndedReason.ts b/src/api/types/CallEndedReason.ts
index 49234e59..3e9523cd 100644
--- a/src/api/types/CallEndedReason.ts
+++ b/src/api/types/CallEndedReason.ts
@@ -28,6 +28,7 @@ export const CallEndedReason = {
CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent:
"call.start.error-enterprise-feature-not-available-recording-consent",
CallStartAssistantVersionErrorValidation: "call.start.assistant-version-error-validation",
+ CallStartSquadVersionErrorValidation: "call.start.squad-version-error-validation",
AssistantNotValid: "assistant-not-valid",
CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error",
AssistantNotFound: "assistant-not-found",
@@ -792,6 +793,8 @@ export const CallEndedReason = {
"call.in-progress.error-providerfault-outbound-sip-408-request-timeout",
CallInProgressErrorProviderfaultOutboundSip480TemporarilyUnavailable:
"call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable",
+ SipOutboundUnallocatedNumber: "sip-outbound-unallocated-number",
+ SipOutboundCarrierReleasedCall: "sip-outbound-carrier-released-call",
CallRingingHookExecutedSay: "call.ringing.hook-executed-say",
CallRingingHookExecutedTransfer: "call.ringing.hook-executed-transfer",
CallEndingHookExecutedSay: "call.ending.hook-executed-say",
diff --git a/src/api/types/ClientInboundMessageAppendContext.ts b/src/api/types/ClientInboundMessageAppendContext.ts
new file mode 100644
index 00000000..94ee5293
--- /dev/null
+++ b/src/api/types/ClientInboundMessageAppendContext.ts
@@ -0,0 +1,13 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Vapi from "../index.js";
+
+export interface ClientInboundMessageAppendContext {
+ /**
+ * Commentary is spoken in the model's own words; thinking is silent context;
+ * instructions steer the speaker, including requests to try saying something.
+ * Acceptance does not guarantee exact wording or speech completion.
+ */
+ kind: Vapi.ClientInboundMessageAppendContextKind;
+ content: string;
+}
diff --git a/src/api/types/ClientInboundMessageAppendContextKind.ts b/src/api/types/ClientInboundMessageAppendContextKind.ts
new file mode 100644
index 00000000..1ef73893
--- /dev/null
+++ b/src/api/types/ClientInboundMessageAppendContextKind.ts
@@ -0,0 +1,14 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Commentary is spoken in the model's own words; thinking is silent context;
+ * instructions steer the speaker, including requests to try saying something.
+ * Acceptance does not guarantee exact wording or speech completion.
+ */
+export const ClientInboundMessageAppendContextKind = {
+ Commentary: "commentary",
+ Thinking: "thinking",
+ Instructions: "instructions",
+} as const;
+export type ClientInboundMessageAppendContextKind =
+ (typeof ClientInboundMessageAppendContextKind)[keyof typeof ClientInboundMessageAppendContextKind];
diff --git a/src/api/types/ClientInboundMessageMessage.ts b/src/api/types/ClientInboundMessageMessage.ts
index 29ad5102..d4b08b2d 100644
--- a/src/api/types/ClientInboundMessageMessage.ts
+++ b/src/api/types/ClientInboundMessageMessage.ts
@@ -7,6 +7,7 @@ import type * as Vapi from "../index.js";
*/
export type ClientInboundMessageMessage =
| Vapi.ClientInboundMessageMessage.AddMessage
+ | Vapi.ClientInboundMessageMessage.AppendContext
| Vapi.ClientInboundMessageMessage.Control
| Vapi.ClientInboundMessageMessage.Say
| Vapi.ClientInboundMessageMessage.EndCall
@@ -18,6 +19,10 @@ export namespace ClientInboundMessageMessage {
type: "add-message";
}
+ export interface AppendContext extends Vapi.ClientInboundMessageAppendContext {
+ type: "append-context";
+ }
+
export interface Control extends Vapi.ClientInboundMessageControl {
type: "control";
}
diff --git a/src/api/types/ConflictErrorBody.ts b/src/api/types/ConflictErrorBody.ts
new file mode 100644
index 00000000..e70472ec
--- /dev/null
+++ b/src/api/types/ConflictErrorBody.ts
@@ -0,0 +1,15 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Vapi from "../index.js";
+
+export type ConflictErrorBody = Vapi.ConflictErrorBody.ToolPinned | Vapi.ConflictErrorBody.ToolWriteConflict;
+
+export namespace ConflictErrorBody {
+ export interface ToolPinned extends Vapi.ToolPinnedConflictResponseDto {
+ error: "tool_pinned";
+ }
+
+ export interface ToolWriteConflict extends Vapi.ToolWriteConflictResponseDto {
+ error: "tool_write_conflict";
+ }
+}
diff --git a/src/api/types/CreateOutboundCallDto.ts b/src/api/types/CreateOutboundCallDto.ts
index 8610342d..e96b15a0 100644
--- a/src/api/types/CreateOutboundCallDto.ts
+++ b/src/api/types/CreateOutboundCallDto.ts
@@ -8,6 +8,11 @@ export interface CreateOutboundCallDto {
* direct `assistantId`. Omit to follow the latest version.
*/
assistantVersion?: (string | null) | undefined;
+ /**
+ * This is the squad version to use for this call. Supported only with
+ * direct `squadId`. Omit to follow the latest version.
+ */
+ squadVersion?: (string | null) | undefined;
/** This is the transport of the call. */
transport?: Vapi.CreateOutboundCallDtoTransport | undefined;
/**
diff --git a/src/api/types/CreateStructuredOutputDto.ts b/src/api/types/CreateStructuredOutputDto.ts
index f08e2aa3..890964fb 100644
--- a/src/api/types/CreateStructuredOutputDto.ts
+++ b/src/api/types/CreateStructuredOutputDto.ts
@@ -18,6 +18,15 @@ export interface CreateStructuredOutputDto {
/**
* This is the regex pattern to match against the transcript.
*
+ * Simulation evaluations use a canonical transcript built from recorded messages:
+ * User: and AI: dialogue, AI: tool_calls: JSON name/arguments records, and
+ * AI: tool_call_results: JSON results. System messages are excluded. These
+ * fixed labels apply even when custom artifact transcript labels are configured.
+ * Tool payloads participate in first-match and all-match extraction in event order.
+ * An empty message array falls back to the supplied transcript verbatim.
+ * Production-call extraction and call preview use their existing transcripts,
+ * so previewing the same output on a simulation's call can return a different result.
+ *
* Only used when type is 'regex'. Supports both raw patterns (e.g. '\d+') and
* regex literal format (e.g. '/\d+/gi'). Uses RE2 syntax for safety.
*
diff --git a/src/api/types/CreateWebCallDto.ts b/src/api/types/CreateWebCallDto.ts
index f3d73618..35d7a6d4 100644
--- a/src/api/types/CreateWebCallDto.ts
+++ b/src/api/types/CreateWebCallDto.ts
@@ -8,6 +8,11 @@ export interface CreateWebCallDto {
* direct `assistantId`. Omit to follow the latest version.
*/
assistantVersion?: (string | null) | undefined;
+ /**
+ * This is the squad version to use for this call. Supported only with
+ * direct `squadId`. Omit to follow the latest version.
+ */
+ squadVersion?: (string | null) | undefined;
roomDeleteOnUserLeaveEnabled?: boolean | undefined;
/**
* This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.
diff --git a/src/api/types/DeepgramTranscriber.ts b/src/api/types/DeepgramTranscriber.ts
index 5c02023e..6a1dd4fe 100644
--- a/src/api/types/DeepgramTranscriber.ts
+++ b/src/api/types/DeepgramTranscriber.ts
@@ -15,7 +15,7 @@ export interface DeepgramTranscriber {
/**
* If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out
*
- * This will only be used if you are using your own Deepgram API key.
+ * This only applies to your own Deepgram API key. Requests on Vapi's key always opt out, whatever this is set to.
*
* @default false
*/
diff --git a/src/api/types/DeepgramVoice.ts b/src/api/types/DeepgramVoice.ts
index db48fd8d..65ffea30 100644
--- a/src/api/types/DeepgramVoice.ts
+++ b/src/api/types/DeepgramVoice.ts
@@ -10,16 +10,28 @@ export interface DeepgramVoice {
cachingEnabled?: boolean | undefined;
/** This is the provider-specific ID that will be used. */
voiceId: Vapi.DeepgramVoiceId;
- /** This is the model that will be used. Defaults to 'aura-2' when not specified. */
+ /** This is the model that will be used. Defaults to 'aura' when not specified. */
model?: Vapi.DeepgramVoiceModel | undefined;
/**
* If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out
*
- * This will only be used if you are using your own Deepgram API key.
+ * This only applies to your own Deepgram API key. Requests on Vapi's key always opt out, whatever this is set to.
*
* @default false
*/
mipOptOut?: boolean | undefined;
+ /**
+ * This is the speed multiplier that will be used. Aura-2 accepts 0.7 to 1.5; Flux accepts 0.5 to 1.5 in steps of 0.05. Aura does not support speed.
+ *
+ * @default 1
+ */
+ speed?: number | undefined;
+ /**
+ * This is the expressivity level for Flux voices, from -2 (flat) to 2 (lively). Deepgram marks this control as beta and may retune the scale. Aura and Aura-2 do not support it.
+ *
+ * @default 0
+ */
+ expressivity?: number | undefined;
/** This is the plan for chunking the model output before it is sent to the voice provider. */
chunkPlan?: Vapi.ChunkPlan | undefined;
/** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */
diff --git a/src/api/types/DeepgramVoiceId.ts b/src/api/types/DeepgramVoiceId.ts
index f11d18ad..bf1bcc35 100644
--- a/src/api/types/DeepgramVoiceId.ts
+++ b/src/api/types/DeepgramVoiceId.ts
@@ -64,5 +64,41 @@ export const DeepgramVoiceId = {
Lara: "lara",
Elara: "elara",
Aurelia: "aurelia",
+ Hannah: "hannah",
+ Kit: "kit",
+ Alexis: "alexis",
+ Cliff: "cliff",
+ Sienna: "sienna",
+ Cole: "cole",
+ Brooke: "brooke",
+ Colin: "colin",
+ Gemma: "gemma",
+ Haley: "haley",
+ Heather: "heather",
+ Miles: "miles",
+ Sean: "sean",
+ Bree: "bree",
+ Brittany: "brittany",
+ Bruce: "bruce",
+ Conor: "conor",
+ Donovan: "donovan",
+ Drew: "drew",
+ Elise: "elise",
+ Jack: "jack",
+ Kai: "kai",
+ Kelsey: "kelsey",
+ Maeve: "maeve",
+ Marcelo: "marcelo",
+ Marcus: "marcus",
+ Meena: "meena",
+ Meghan: "meghan",
+ Naveen: "naveen",
+ Paige: "paige",
+ Priya: "priya",
+ Rufus: "rufus",
+ Sharon: "sharon",
+ Tanner: "tanner",
+ Wade: "wade",
+ Wes: "wes",
} as const;
export type DeepgramVoiceId = (typeof DeepgramVoiceId)[keyof typeof DeepgramVoiceId];
diff --git a/src/api/types/DeepgramVoiceModel.ts b/src/api/types/DeepgramVoiceModel.ts
index b0117ed3..2bbe2e26 100644
--- a/src/api/types/DeepgramVoiceModel.ts
+++ b/src/api/types/DeepgramVoiceModel.ts
@@ -1,8 +1,9 @@
// This file was auto-generated by Fern from our API Definition.
-/** This is the model that will be used. Defaults to 'aura-2' when not specified. */
+/** This is the model that will be used. Defaults to 'aura' when not specified. */
export const DeepgramVoiceModel = {
Aura: "aura",
Aura2: "aura-2",
+ Flux: "flux",
} as const;
export type DeepgramVoiceModel = (typeof DeepgramVoiceModel)[keyof typeof DeepgramVoiceModel];
diff --git a/src/api/types/EvalRun.ts b/src/api/types/EvalRun.ts
index 3c62654a..f6835b5c 100644
--- a/src/api/types/EvalRun.ts
+++ b/src/api/types/EvalRun.ts
@@ -36,14 +36,11 @@ export interface EvalRun {
endedAt: string;
/** This is the ended message when the eval run ended for any reason apart from mockConversation.done */
endedMessage?: string | undefined;
- /**
- * This is the results of the eval or suite run.
- * The array will have a single item for an eval run, and multiple items each corresponding to the an eval in a suite run in the same order as the evals in the suite.
- */
+ /** Results for this individual Eval. Check them after status is ended. An Eval that finishes normally contains one result; it passes only when all judged checkpoints pass. Grouping multiple Evals requires your own orchestration, not an Eval suite. */
results: Vapi.EvalRunResult[];
- /** This is the cost of the eval or suite run in USD. */
+ /** The cost of this Eval run in USD. */
cost: number;
- /** This is the break up of costs of the eval or suite run. */
+ /** The cost breakdown for this Eval run. */
costs: Record[];
/**
* This is the type of the run.
diff --git a/src/api/types/FallbackAssemblyAiTranscriber.ts b/src/api/types/FallbackAssemblyAiTranscriber.ts
index 22317d49..cd8ccb69 100644
--- a/src/api/types/FallbackAssemblyAiTranscriber.ts
+++ b/src/api/types/FallbackAssemblyAiTranscriber.ts
@@ -51,21 +51,32 @@ export interface FallbackAssemblyAiTranscriber {
*/
vadAssistedEndpointingEnabled?: boolean | undefined;
/**
- * This is the transcription mode used by the `universal-3-5-pro` speech model. Only applies to the `universal-3-5-pro` speech model.
+ * This is the transcription mode used by the Universal Pro speech models. Only applies to `universal-3-5-pro` and `universal-3-6-pro`.
*
* @default 'balanced'
*/
mode?: Vapi.FallbackAssemblyAiTranscriberMode | undefined;
- /** This is a prompt that provides additional context to the transcription model. Only applies to the `universal-3-5-pro` speech model. */
+ /** This is a prompt that provides additional context to the transcription model. Only applies to `universal-3-5-pro` and `universal-3-6-pro`. */
prompt?: string | undefined;
- /** This is context about the voice agent that guides the transcription model. Only applies to the `universal-3-5-pro` speech model. */
+ /** This is context about the voice agent that guides the transcription model. Only applies to `universal-3-5-pro` and `universal-3-6-pro`. */
agentContext?: string | undefined;
- /** These are language codes used to steer automatic language detection. Only applies to the `universal-3-5-pro` speech model. */
+ /**
+ * When true, the text the assistant just spoke is sent to AssemblyAI as `agent_context` after every assistant turn, replacing the previous value, so the user's reply is transcribed in the context of the question it answers.
+ * `agentContext` still seeds the first turn. Text longer than 1750 characters keeps its last 1750 characters. Turns the user interrupted are not sent when the interruption is detected by voice activity (the default, `stopSpeakingPlan.numWords: 0`).
+ * Only applies to `universal-3-5-pro` and `universal-3-6-pro`.
+ *
+ * @default false
+ */
+ agentContextAutoUpdateEnabled?: boolean | undefined;
+ /**
+ * These are language codes used to steer automatic language detection. Only applies to `universal-3-5-pro` and `universal-3-6-pro`.
+ * `ur`, `ru`, `ko`, `ca`, `gl`, `ro`, `et`, `fa`, `yue`, `af`, `mr`, `zu`, `xh` and `nn` were added with `universal-3-6-pro`.
+ */
languageCodes?: Vapi.FallbackAssemblyAiTranscriberLanguageCodesItem[] | undefined;
/**
* This is the speech model used for the streaming session.
- * Keyterms prompting is supported on universal-streaming-english and universal-3-5-pro.
- * universal-3-5-pro is AssemblyAI's most accurate voice-agent model.
+ * Keyterms prompting is supported on universal-streaming-english, universal-3-5-pro and universal-3-6-pro.
+ * universal-3-6-pro is AssemblyAI's newest and most accurate voice-agent model.
* @default 'universal-streaming-english'
*/
speechModel?: Vapi.FallbackAssemblyAiTranscriberSpeechModel | undefined;
@@ -76,7 +87,7 @@ export interface FallbackAssemblyAiTranscriber {
/**
* Keyterms prompting improves recognition accuracy for specific words and phrases.
* Can include up to 100 keyterms, each up to 50 characters.
- * Costs an additional $0.04/hour on universal-streaming-english and is included at no extra cost on universal-3-5-pro.
+ * Costs an additional $0.04/hour on universal-streaming-english and is included at no extra cost on the Universal Pro models (universal-3-5-pro, universal-3-6-pro).
*/
keytermsPrompt?: string[] | undefined;
/** The duration of the end utterance silence threshold in milliseconds. */
diff --git a/src/api/types/FallbackAssemblyAiTranscriberLanguageCodesItem.ts b/src/api/types/FallbackAssemblyAiTranscriberLanguageCodesItem.ts
index 86b7dbac..f3ef1846 100644
--- a/src/api/types/FallbackAssemblyAiTranscriberLanguageCodesItem.ts
+++ b/src/api/types/FallbackAssemblyAiTranscriberLanguageCodesItem.ts
@@ -19,6 +19,20 @@ export const FallbackAssemblyAiTranscriberLanguageCodesItem = {
He: "he",
Ja: "ja",
Zh: "zh",
+ Ur: "ur",
+ Ru: "ru",
+ Ko: "ko",
+ Ca: "ca",
+ Gl: "gl",
+ Ro: "ro",
+ Et: "et",
+ Fa: "fa",
+ Yue: "yue",
+ Af: "af",
+ Mr: "mr",
+ Zu: "zu",
+ Xh: "xh",
+ Nn: "nn",
} as const;
export type FallbackAssemblyAiTranscriberLanguageCodesItem =
(typeof FallbackAssemblyAiTranscriberLanguageCodesItem)[keyof typeof FallbackAssemblyAiTranscriberLanguageCodesItem];
diff --git a/src/api/types/FallbackAssemblyAiTranscriberMode.ts b/src/api/types/FallbackAssemblyAiTranscriberMode.ts
index b2793b04..a31d9975 100644
--- a/src/api/types/FallbackAssemblyAiTranscriberMode.ts
+++ b/src/api/types/FallbackAssemblyAiTranscriberMode.ts
@@ -1,7 +1,7 @@
// This file was auto-generated by Fern from our API Definition.
/**
- * This is the transcription mode used by the `universal-3-5-pro` speech model. Only applies to the `universal-3-5-pro` speech model.
+ * This is the transcription mode used by the Universal Pro speech models. Only applies to `universal-3-5-pro` and `universal-3-6-pro`.
*
* @default 'balanced'
*/
diff --git a/src/api/types/FallbackAssemblyAiTranscriberSpeechModel.ts b/src/api/types/FallbackAssemblyAiTranscriberSpeechModel.ts
index 83d847e4..2f577c99 100644
--- a/src/api/types/FallbackAssemblyAiTranscriberSpeechModel.ts
+++ b/src/api/types/FallbackAssemblyAiTranscriberSpeechModel.ts
@@ -2,14 +2,15 @@
/**
* This is the speech model used for the streaming session.
- * Keyterms prompting is supported on universal-streaming-english and universal-3-5-pro.
- * universal-3-5-pro is AssemblyAI's most accurate voice-agent model.
+ * Keyterms prompting is supported on universal-streaming-english, universal-3-5-pro and universal-3-6-pro.
+ * universal-3-6-pro is AssemblyAI's newest and most accurate voice-agent model.
* @default 'universal-streaming-english'
*/
export const FallbackAssemblyAiTranscriberSpeechModel = {
UniversalStreamingEnglish: "universal-streaming-english",
UniversalStreamingMultilingual: "universal-streaming-multilingual",
Universal35Pro: "universal-3-5-pro",
+ Universal36Pro: "universal-3-6-pro",
} as const;
export type FallbackAssemblyAiTranscriberSpeechModel =
(typeof FallbackAssemblyAiTranscriberSpeechModel)[keyof typeof FallbackAssemblyAiTranscriberSpeechModel];
diff --git a/src/api/types/FallbackDeepgramTranscriber.ts b/src/api/types/FallbackDeepgramTranscriber.ts
index f7f03207..279421e8 100644
--- a/src/api/types/FallbackDeepgramTranscriber.ts
+++ b/src/api/types/FallbackDeepgramTranscriber.ts
@@ -15,7 +15,7 @@ export interface FallbackDeepgramTranscriber {
/**
* If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out
*
- * This will only be used if you are using your own Deepgram API key.
+ * This only applies to your own Deepgram API key. Requests on Vapi's key always opt out, whatever this is set to.
*
* @default false
*/
diff --git a/src/api/types/FallbackDeepgramVoice.ts b/src/api/types/FallbackDeepgramVoice.ts
index 63c9b903..0493790e 100644
--- a/src/api/types/FallbackDeepgramVoice.ts
+++ b/src/api/types/FallbackDeepgramVoice.ts
@@ -10,16 +10,28 @@ export interface FallbackDeepgramVoice {
cachingEnabled?: boolean | undefined;
/** This is the provider-specific ID that will be used. */
voiceId: Vapi.FallbackDeepgramVoiceId;
- /** This is the model that will be used. Defaults to 'aura-2' when not specified. */
+ /** This is the model that will be used. Defaults to 'aura' when not specified. */
model?: Vapi.FallbackDeepgramVoiceModel | undefined;
/**
* If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out
*
- * This will only be used if you are using your own Deepgram API key.
+ * This only applies to your own Deepgram API key. Requests on Vapi's key always opt out, whatever this is set to.
*
* @default false
*/
mipOptOut?: boolean | undefined;
+ /**
+ * This is the speed multiplier that will be used. Aura-2 accepts 0.7 to 1.5; Flux accepts 0.5 to 1.5 in steps of 0.05. Aura does not support speed.
+ *
+ * @default 1
+ */
+ speed?: number | undefined;
+ /**
+ * This is the expressivity level for Flux voices, from -2 (flat) to 2 (lively). Deepgram marks this control as beta and may retune the scale. Aura and Aura-2 do not support it.
+ *
+ * @default 0
+ */
+ expressivity?: number | undefined;
/** This is the plan for chunking the model output before it is sent to the voice provider. */
chunkPlan?: Vapi.ChunkPlan | undefined;
}
diff --git a/src/api/types/FallbackDeepgramVoiceId.ts b/src/api/types/FallbackDeepgramVoiceId.ts
index a15e71c3..1c29ee4e 100644
--- a/src/api/types/FallbackDeepgramVoiceId.ts
+++ b/src/api/types/FallbackDeepgramVoiceId.ts
@@ -64,5 +64,41 @@ export const FallbackDeepgramVoiceId = {
Lara: "lara",
Elara: "elara",
Aurelia: "aurelia",
+ Hannah: "hannah",
+ Kit: "kit",
+ Alexis: "alexis",
+ Cliff: "cliff",
+ Sienna: "sienna",
+ Cole: "cole",
+ Brooke: "brooke",
+ Colin: "colin",
+ Gemma: "gemma",
+ Haley: "haley",
+ Heather: "heather",
+ Miles: "miles",
+ Sean: "sean",
+ Bree: "bree",
+ Brittany: "brittany",
+ Bruce: "bruce",
+ Conor: "conor",
+ Donovan: "donovan",
+ Drew: "drew",
+ Elise: "elise",
+ Jack: "jack",
+ Kai: "kai",
+ Kelsey: "kelsey",
+ Maeve: "maeve",
+ Marcelo: "marcelo",
+ Marcus: "marcus",
+ Meena: "meena",
+ Meghan: "meghan",
+ Naveen: "naveen",
+ Paige: "paige",
+ Priya: "priya",
+ Rufus: "rufus",
+ Sharon: "sharon",
+ Tanner: "tanner",
+ Wade: "wade",
+ Wes: "wes",
} as const;
export type FallbackDeepgramVoiceId = (typeof FallbackDeepgramVoiceId)[keyof typeof FallbackDeepgramVoiceId];
diff --git a/src/api/types/FallbackDeepgramVoiceModel.ts b/src/api/types/FallbackDeepgramVoiceModel.ts
index 91b08a35..96f05e51 100644
--- a/src/api/types/FallbackDeepgramVoiceModel.ts
+++ b/src/api/types/FallbackDeepgramVoiceModel.ts
@@ -1,8 +1,9 @@
// This file was auto-generated by Fern from our API Definition.
-/** This is the model that will be used. Defaults to 'aura-2' when not specified. */
+/** This is the model that will be used. Defaults to 'aura' when not specified. */
export const FallbackDeepgramVoiceModel = {
Aura: "aura",
Aura2: "aura-2",
+ Flux: "flux",
} as const;
export type FallbackDeepgramVoiceModel = (typeof FallbackDeepgramVoiceModel)[keyof typeof FallbackDeepgramVoiceModel];
diff --git a/src/api/types/FallbackOpenAiVoice.ts b/src/api/types/FallbackOpenAiVoice.ts
index 9fd598d5..24ee5fff 100644
--- a/src/api/types/FallbackOpenAiVoice.ts
+++ b/src/api/types/FallbackOpenAiVoice.ts
@@ -8,11 +8,7 @@ import type * as Vapi from "../index.js";
export interface FallbackOpenAiVoice {
/** This is the flag to toggle voice caching for the assistant. */
cachingEnabled?: boolean | undefined;
- /**
- * This is the provider-specific ID that will be used.
- * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models.
- */
- voiceId: Vapi.FallbackOpenAiVoiceId;
+ voiceId?: unknown | undefined;
/** This is the model that will be used for text-to-speech. */
model?: Vapi.FallbackOpenAiVoiceModel | undefined;
/**
diff --git a/src/api/types/FallbackOpenAiVoiceId.ts b/src/api/types/FallbackOpenAiVoiceId.ts
deleted file mode 100644
index d9ef3151..00000000
--- a/src/api/types/FallbackOpenAiVoiceId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-import type * as Vapi from "../index.js";
-
-/**
- * This is the provider-specific ID that will be used.
- * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models.
- */
-export type FallbackOpenAiVoiceId = Vapi.FallbackOpenAiVoiceIdEnum | string;
diff --git a/src/api/types/FallbackOpenAiVoiceIdEnum.ts b/src/api/types/FallbackOpenAiVoiceIdEnum.ts
deleted file mode 100644
index 66222d82..00000000
--- a/src/api/types/FallbackOpenAiVoiceIdEnum.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-export const FallbackOpenAiVoiceIdEnum = {
- Alloy: "alloy",
- Echo: "echo",
- Fable: "fable",
- Onyx: "onyx",
- Nova: "nova",
- Shimmer: "shimmer",
- Marin: "marin",
- Cedar: "cedar",
-} as const;
-export type FallbackOpenAiVoiceIdEnum = (typeof FallbackOpenAiVoiceIdEnum)[keyof typeof FallbackOpenAiVoiceIdEnum];
diff --git a/src/api/types/FallbackRimeAiVoiceId.ts b/src/api/types/FallbackRimeAiVoiceId.ts
index 799eee73..cc4c0302 100644
--- a/src/api/types/FallbackRimeAiVoiceId.ts
+++ b/src/api/types/FallbackRimeAiVoiceId.ts
@@ -7,7 +7,7 @@ import type * as Vapi from "../index.js";
*/
export type FallbackRimeAiVoiceId =
/**
- * Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions. */
+ * Popular Rime AI voices across mist, mistv2, mistv3, arcana, and coda models. Any valid Rime AI voice ID is accepted, not just these suggestions. */
| Vapi.FallbackRimeAiVoiceIdEnum
/**
* Any valid Rime AI voice ID. See https://docs.rime.ai/docs/voices for the full catalog. */
diff --git a/src/api/types/FallbackRimeAiVoiceIdEnum.ts b/src/api/types/FallbackRimeAiVoiceIdEnum.ts
index 47b79861..1ce1e6df 100644
--- a/src/api/types/FallbackRimeAiVoiceIdEnum.ts
+++ b/src/api/types/FallbackRimeAiVoiceIdEnum.ts
@@ -1,6 +1,6 @@
// This file was auto-generated by Fern from our API Definition.
-/** Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions. */
+/** Popular Rime AI voices across mist, mistv2, mistv3, arcana, and coda models. Any valid Rime AI voice ID is accepted, not just these suggestions. */
export const FallbackRimeAiVoiceIdEnum = {
Cove: "cove",
Moon: "moon",
@@ -52,5 +52,12 @@ export const FallbackRimeAiVoiceIdEnum = {
Masonry: "masonry",
Albion: "albion",
Parapet: "parapet",
+ Clementine: "clementine",
+ Walnut: "walnut",
+ Eyre: "eyre",
+ Bancroft: "bancroft",
+ Hesse: "hesse",
+ Beatty: "beatty",
+ Godfrey: "godfrey",
} as const;
export type FallbackRimeAiVoiceIdEnum = (typeof FallbackRimeAiVoiceIdEnum)[keyof typeof FallbackRimeAiVoiceIdEnum];
diff --git a/src/api/types/FallbackRimeAiVoiceModel.ts b/src/api/types/FallbackRimeAiVoiceModel.ts
index f2e70d56..b950403c 100644
--- a/src/api/types/FallbackRimeAiVoiceModel.ts
+++ b/src/api/types/FallbackRimeAiVoiceModel.ts
@@ -3,7 +3,9 @@
/** This is the model that will be used. Defaults to 'arcana' when not specified. */
export const FallbackRimeAiVoiceModel = {
Arcana: "arcana",
+ Coda: "coda",
Mistv2: "mistv2",
+ Mistv3: "mistv3",
Mist: "mist",
} as const;
export type FallbackRimeAiVoiceModel = (typeof FallbackRimeAiVoiceModel)[keyof typeof FallbackRimeAiVoiceModel];
diff --git a/src/api/types/FilePaginatedResponse.ts b/src/api/types/FilePaginatedResponse.ts
new file mode 100644
index 00000000..255cc909
--- /dev/null
+++ b/src/api/types/FilePaginatedResponse.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Vapi from "../index.js";
+
+export interface FilePaginatedResponse {
+ results: Vapi.File_[];
+ metadata: Vapi.PaginationMeta;
+}
diff --git a/src/api/types/GetEvalRunPaginatedDto.ts b/src/api/types/GetEvalRunPaginatedDto.ts
index 1c78dd6d..75f0bc83 100644
--- a/src/api/types/GetEvalRunPaginatedDto.ts
+++ b/src/api/types/GetEvalRunPaginatedDto.ts
@@ -3,13 +3,10 @@
import type * as Vapi from "../index.js";
export interface GetEvalRunPaginatedDto {
- id?: string | undefined;
- /** This is the page number to return. Defaults to 1. */
- page?: number | undefined;
- /** This is the sort order for pagination. Defaults to 'DESC'. */
- sortOrder?: Vapi.GetEvalRunPaginatedDtoSortOrder | undefined;
- /** This is the column to sort by. Defaults to 'createdAt'. */
sortBy?: Vapi.GetEvalRunPaginatedDtoSortBy | undefined;
+ /** Literal, case-insensitive search across eval and assistant names. */
+ search?: string | undefined;
+ id?: string | undefined;
/** This is the maximum number of items to return. Defaults to 100. */
limit?: number | undefined;
/** This will return items where the createdAt is greater than the specified value. */
@@ -28,4 +25,8 @@ export interface GetEvalRunPaginatedDto {
updatedAtGe?: string | undefined;
/** This will return items where the updatedAt is less than or equal to the specified value. */
updatedAtLe?: string | undefined;
+ /** This is the page number to return. Defaults to 1. */
+ page?: number | undefined;
+ /** This is the sort order for pagination. Defaults to 'DESC'. */
+ sortOrder?: Vapi.GetEvalRunPaginatedDtoSortOrder | undefined;
}
diff --git a/src/api/types/GetEvalRunPaginatedDtoSortBy.ts b/src/api/types/GetEvalRunPaginatedDtoSortBy.ts
index ab9cbd26..eb68cf4a 100644
--- a/src/api/types/GetEvalRunPaginatedDtoSortBy.ts
+++ b/src/api/types/GetEvalRunPaginatedDtoSortBy.ts
@@ -1,10 +1,7 @@
// This file was auto-generated by Fern from our API Definition.
-/** This is the column to sort by. Defaults to 'createdAt'. */
export const GetEvalRunPaginatedDtoSortBy = {
CreatedAt: "createdAt",
- Duration: "duration",
- Cost: "cost",
} as const;
export type GetEvalRunPaginatedDtoSortBy =
(typeof GetEvalRunPaginatedDtoSortBy)[keyof typeof GetEvalRunPaginatedDtoSortBy];
diff --git a/src/api/types/InviteUserDtoRoleZero.ts b/src/api/types/InviteUserDtoRoleZero.ts
index 0276a9ec..29746339 100644
--- a/src/api/types/InviteUserDtoRoleZero.ts
+++ b/src/api/types/InviteUserDtoRoleZero.ts
@@ -4,5 +4,6 @@ export const InviteUserDtoRoleZero = {
Admin: "admin",
Editor: "editor",
Viewer: "viewer",
+ HipaaSpecial: "hipaa-special",
} as const;
export type InviteUserDtoRoleZero = (typeof InviteUserDtoRoleZero)[keyof typeof InviteUserDtoRoleZero];
diff --git a/src/api/types/JsonQueryOnEventsTableOn.ts b/src/api/types/JsonQueryOnEventsTableOn.ts
index a6ec0f47..8b99231c 100644
--- a/src/api/types/JsonQueryOnEventsTableOn.ts
+++ b/src/api/types/JsonQueryOnEventsTableOn.ts
@@ -57,12 +57,14 @@ export const JsonQueryOnEventsTableOn = {
AssistantModelRequestAttemptStarted: "assistant.model.requestAttemptStarted",
AssistantModelRequestAttemptSucceeded: "assistant.model.requestAttemptSucceeded",
AssistantModelRequestAttemptFailed: "assistant.model.requestAttemptFailed",
+ AssistantKnowledgeBaseRequestSucceeded: "assistant.knowledgeBase.requestSucceeded",
AssistantModelConnectionOpened: "assistant.model.connectionOpened",
AssistantModelConnectionClosed: "assistant.model.connectionClosed",
AssistantModelFirstTokenReceived: "assistant.model.firstTokenReceived",
AssistantModelTokenReceived: "assistant.model.tokenReceived",
AssistantModelResponseSucceeded: "assistant.model.responseSucceeded",
AssistantModelResponseFailed: "assistant.model.responseFailed",
+ AssistantModelResponseEmpty: "assistant.model.responseEmpty",
AssistantModelToolCallsReceived: "assistant.model.toolCallsReceived",
AssistantModelReconnecting: "assistant.model.reconnecting",
AssistantModelCleanup: "assistant.model.cleanup",
diff --git a/src/api/types/ModelCost.ts b/src/api/types/ModelCost.ts
index b0c086a3..7b35f1bb 100644
--- a/src/api/types/ModelCost.ts
+++ b/src/api/types/ModelCost.ts
@@ -4,6 +4,10 @@
* Language-model cost for a call, including model, token usage, and amount.
*/
export interface ModelCost {
+ /** Provider-reported billable duration in seconds. Currently supplied for GPT-Live; omitted for token-billed models. */
+ seconds?: number | undefined;
+ /** Whether the reported usage is complete. False means the cost reflects missing or partial usage and may understate provider spend. Omitted when the provider integration does not report completeness. */
+ usageComplete?: boolean | undefined;
/**
* This is the model that was used during the call.
*
diff --git a/src/api/types/ModelDeprecationNotice.ts b/src/api/types/ModelDeprecationNotice.ts
new file mode 100644
index 00000000..de875d67
--- /dev/null
+++ b/src/api/types/ModelDeprecationNotice.ts
@@ -0,0 +1,29 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface ModelDeprecationNotice {
+ /**
+ * Path of the slot that carries the model, relative to the response root,
+ * e.g. `model`, `model.fallbackModels[1]`, `transcriber`, `voice`, or
+ * `members[2].assistantOverrides.model` on a squad.
+ */
+ slot: string;
+ /** Provider as stored on the slot. */
+ provider: string;
+ /** Model name as stored on the slot. */
+ model: string;
+ /** Day the model became deprecated, `YYYY-MM-DD` in UTC. */
+ deprecationDate: string;
+ /**
+ * Day the model is or was retired, `YYYY-MM-DD` in UTC. On and after this
+ * day Vapi no longer runs the model as configured.
+ */
+ retirementDate: string;
+ /**
+ * The recommended migration target for the slot's model: the registry's
+ * replacement, followed through any further retirements as of the response
+ * date, so it names a model that is alive on that day. A `:`
+ * pin on the slot's model is kept on the target when the pinned name is
+ * itself a settable model; otherwise the bare replacement is named.
+ */
+ replacementModel: string;
+}
diff --git a/src/api/types/OpenAiModel.ts b/src/api/types/OpenAiModel.ts
index ba4541a1..65f5ec6f 100644
--- a/src/api/types/OpenAiModel.ts
+++ b/src/api/types/OpenAiModel.ts
@@ -29,8 +29,13 @@ export interface OpenAiModel {
toolRefs?: Vapi.ToolRef[] | undefined;
/** These are the options for the knowledge base. */
knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto | undefined;
+ /** Configuration for the GPT-Live speaker. */
+ speaker?: Vapi.OpenAiSpeaker | undefined;
+ /** Configuration for the reasoner supporting the GPT-Live speaker. */
+ reasoner?: Vapi.OpenAiReasoner | undefined;
/**
* This is the OpenAI model that will be used.
+ * For GPT-Live configuration and supported settings, see https://docs.vapi.ai/gpt-live/overview.
*
* When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.
* This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.
@@ -68,6 +73,18 @@ export interface OpenAiModel {
* @default undefined
*/
promptCacheKey?: string | undefined;
+ /**
+ * This is the OpenAI service tier used for chat completions requests.
+ *
+ * - `fast`: OpenAI's fast processing tier (renamed from `priority` on 2026-07-30; both values are accepted and billed identically) — up to ~2.5x faster inference at 2x the standard token rates. OpenAI may silently downgrade a fast request to standard processing under ramp limits; when that happens the response reports the served tier and the request is billed at standard rates.
+ * - `auto`: uses the service tier configured for the OpenAI project.
+ * - `default`: standard processing and billing.
+ *
+ * Only applies to models that support fast processing: gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5. Ignored for other models.
+ *
+ * @default undefined (uses the service tier configured for the OpenAI project)
+ */
+ serviceTier?: Vapi.OpenAiModelServiceTier | undefined;
/**
* Reasoning effort for reasoning-capable OpenAI models.
* For `gpt-realtime-2`: forwarded to V2 stream's session.update as `reasoning.effort`.
diff --git a/src/api/types/OpenAiModelModel.ts b/src/api/types/OpenAiModelModel.ts
index 5fc529b7..badf0be9 100644
--- a/src/api/types/OpenAiModelModel.ts
+++ b/src/api/types/OpenAiModelModel.ts
@@ -2,6 +2,7 @@
/**
* This is the OpenAI model that will be used.
+ * For GPT-Live configuration and supported settings, see https://docs.vapi.ai/gpt-live/overview.
*
* When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.
* This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.
@@ -165,5 +166,6 @@ export const OpenAiModelModel = {
Gpt41Australiaeast: "gpt-4.1:australiaeast",
Gpt4OAustraliaeast: "gpt-4o:australiaeast",
Gpt54MiniAustraliaeast: "gpt-5.4-mini:australiaeast",
+ GptLive1: "gpt-live-1",
} as const;
export type OpenAiModelModel = (typeof OpenAiModelModel)[keyof typeof OpenAiModelModel];
diff --git a/src/api/types/OpenAiModelServiceTier.ts b/src/api/types/OpenAiModelServiceTier.ts
new file mode 100644
index 00000000..bdae06b6
--- /dev/null
+++ b/src/api/types/OpenAiModelServiceTier.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * This is the OpenAI service tier used for chat completions requests.
+ *
+ * - `fast`: OpenAI's fast processing tier (renamed from `priority` on 2026-07-30; both values are accepted and billed identically) — up to ~2.5x faster inference at 2x the standard token rates. OpenAI may silently downgrade a fast request to standard processing under ramp limits; when that happens the response reports the served tier and the request is billed at standard rates.
+ * - `auto`: uses the service tier configured for the OpenAI project.
+ * - `default`: standard processing and billing.
+ *
+ * Only applies to models that support fast processing: gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5. Ignored for other models.
+ *
+ * @default undefined (uses the service tier configured for the OpenAI project)
+ */
+export const OpenAiModelServiceTier = {
+ Auto: "auto",
+ Default: "default",
+ Fast: "fast",
+ Priority: "priority",
+} as const;
+export type OpenAiModelServiceTier = (typeof OpenAiModelServiceTier)[keyof typeof OpenAiModelServiceTier];
diff --git a/src/api/types/OpenAiReasoner.ts b/src/api/types/OpenAiReasoner.ts
new file mode 100644
index 00000000..cdccac71
--- /dev/null
+++ b/src/api/types/OpenAiReasoner.ts
@@ -0,0 +1,18 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Vapi from "../index.js";
+
+export interface OpenAiReasoner {
+ /** The reasoner uses OpenAI. Omit to use OpenAI. */
+ provider?: Vapi.OpenAiReasonerProvider | undefined;
+ /** The delegated reasoning model. Omit to use GPT-5.6 Terra. */
+ model?: Vapi.OpenAiReasonerModel | undefined;
+ /** Higher effort can increase response time. Omit to use low. */
+ reasoningEffort?: Vapi.OpenAiReasonerReasoningEffort | undefined;
+ /**
+ * Complete reasoner instructions. An explicit empty string is preserved.
+ * Omit to use Vapi's default reasoner instructions. No behavioral instructions
+ * are appended to a custom prompt.
+ */
+ instructions?: string | undefined;
+}
diff --git a/src/api/types/OpenAiReasonerModel.ts b/src/api/types/OpenAiReasonerModel.ts
new file mode 100644
index 00000000..c22ade91
--- /dev/null
+++ b/src/api/types/OpenAiReasonerModel.ts
@@ -0,0 +1,9 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** The delegated reasoning model. Omit to use GPT-5.6 Terra. */
+export const OpenAiReasonerModel = {
+ Gpt56Sol: "gpt-5.6-sol",
+ Gpt56Terra: "gpt-5.6-terra",
+ Gpt56Luna: "gpt-5.6-luna",
+} as const;
+export type OpenAiReasonerModel = (typeof OpenAiReasonerModel)[keyof typeof OpenAiReasonerModel];
diff --git a/src/api/types/OpenAiReasonerProvider.ts b/src/api/types/OpenAiReasonerProvider.ts
new file mode 100644
index 00000000..26c79512
--- /dev/null
+++ b/src/api/types/OpenAiReasonerProvider.ts
@@ -0,0 +1,7 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** The reasoner uses OpenAI. Omit to use OpenAI. */
+export const OpenAiReasonerProvider = {
+ Openai: "openai",
+} as const;
+export type OpenAiReasonerProvider = (typeof OpenAiReasonerProvider)[keyof typeof OpenAiReasonerProvider];
diff --git a/src/api/types/OpenAiReasonerReasoningEffort.ts b/src/api/types/OpenAiReasonerReasoningEffort.ts
new file mode 100644
index 00000000..cfa19c95
--- /dev/null
+++ b/src/api/types/OpenAiReasonerReasoningEffort.ts
@@ -0,0 +1,13 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** Higher effort can increase response time. Omit to use low. */
+export const OpenAiReasonerReasoningEffort = {
+ None: "none",
+ Low: "low",
+ Medium: "medium",
+ High: "high",
+ Xhigh: "xhigh",
+ Max: "max",
+} as const;
+export type OpenAiReasonerReasoningEffort =
+ (typeof OpenAiReasonerReasoningEffort)[keyof typeof OpenAiReasonerReasoningEffort];
diff --git a/src/api/types/OpenAiSpeaker.ts b/src/api/types/OpenAiSpeaker.ts
new file mode 100644
index 00000000..86ce04a2
--- /dev/null
+++ b/src/api/types/OpenAiSpeaker.ts
@@ -0,0 +1,10 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Vapi from "../index.js";
+
+export interface OpenAiSpeaker {
+ /** Omit to use model.systemPrompt, or system-role messages when systemPrompt is absent. An explicit empty string is preserved. */
+ instructions?: string | undefined;
+ /** Personality packs append speaking-style guidance to the speaker prompt. Set to an array of pack IDs and test one pack at a time. These are prompt instructions, not fixed speed controls. */
+ personalityPacks?: Vapi.OpenAiSpeakerPersonalityPacksItem[] | undefined;
+}
diff --git a/src/api/types/OpenAiSpeakerPersonalityPacksItem.ts b/src/api/types/OpenAiSpeakerPersonalityPacksItem.ts
new file mode 100644
index 00000000..b3ea0d4d
--- /dev/null
+++ b/src/api/types/OpenAiSpeakerPersonalityPacksItem.ts
@@ -0,0 +1,10 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export const OpenAiSpeakerPersonalityPacksItem = {
+ EagerListener: "eager-listener",
+ IdleHummer: "idle-hummer",
+ Bouncy: "bouncy",
+ Unhurried: "unhurried",
+} as const;
+export type OpenAiSpeakerPersonalityPacksItem =
+ (typeof OpenAiSpeakerPersonalityPacksItem)[keyof typeof OpenAiSpeakerPersonalityPacksItem];
diff --git a/src/api/types/OpenAiVoice.ts b/src/api/types/OpenAiVoice.ts
index f593e657..c86932d7 100644
--- a/src/api/types/OpenAiVoice.ts
+++ b/src/api/types/OpenAiVoice.ts
@@ -8,11 +8,7 @@ import type * as Vapi from "../index.js";
export interface OpenAiVoice {
/** This is the flag to toggle voice caching for the assistant. */
cachingEnabled?: boolean | undefined;
- /**
- * This is the provider-specific ID that will be used.
- * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models.
- */
- voiceId: Vapi.OpenAiVoiceId;
+ voiceId?: unknown | undefined;
/** This is the model that will be used for text-to-speech. */
model?: Vapi.OpenAiVoiceModel | undefined;
/**
diff --git a/src/api/types/OpenAiVoiceId.ts b/src/api/types/OpenAiVoiceId.ts
deleted file mode 100644
index 9db8b87c..00000000
--- a/src/api/types/OpenAiVoiceId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-import type * as Vapi from "../index.js";
-
-/**
- * This is the provider-specific ID that will be used.
- * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models.
- */
-export type OpenAiVoiceId = Vapi.OpenAiVoiceIdEnum | string;
diff --git a/src/api/types/OpenAiVoiceIdEnum.ts b/src/api/types/OpenAiVoiceIdEnum.ts
deleted file mode 100644
index 528e1f25..00000000
--- a/src/api/types/OpenAiVoiceIdEnum.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-export const OpenAiVoiceIdEnum = {
- Alloy: "alloy",
- Echo: "echo",
- Fable: "fable",
- Onyx: "onyx",
- Nova: "nova",
- Shimmer: "shimmer",
- Marin: "marin",
- Cedar: "cedar",
-} as const;
-export type OpenAiVoiceIdEnum = (typeof OpenAiVoiceIdEnum)[keyof typeof OpenAiVoiceIdEnum];
diff --git a/src/api/types/OrgApiLimitsDto.ts b/src/api/types/OrgApiLimitsDto.ts
new file mode 100644
index 00000000..edd1a5ab
--- /dev/null
+++ b/src/api/types/OrgApiLimitsDto.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface OrgApiLimitsDto {
+ /** Approximate number of API requests counted against the rate limit in the current minute, in the region that served this request. The count lives in a tumbling one-minute window aligned to the UTC clock (unix seconds / 60), so it resets to zero at the top of every minute; there is no reset header — the next boundary is (floor(now / 60) + 1) * 60. */
+ rateLimitUsage: number;
+ /** Maximum number of standard API requests allowed per minute, in the region that served this request. Live call media traffic is limited separately and is not reflected here. */
+ rateLimitMax: number;
+}
diff --git a/src/api/types/OrgConcurrencyLimitsDto.ts b/src/api/types/OrgConcurrencyLimitsDto.ts
new file mode 100644
index 00000000..26e1845f
--- /dev/null
+++ b/src/api/types/OrgConcurrencyLimitsDto.ts
@@ -0,0 +1,10 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface OrgConcurrencyLimitsDto {
+ /** True when the org is at or over its concurrency limit at the time of the read. This is a status read, not an admission decision: no call was evaluated and no slot is reserved. */
+ concurrencyBlocked: boolean;
+ /** Maximum number of concurrent calls the subscription allows, at the time of the read. Computed as the subscription's included plus purchased concurrency, defaulting to the initial allowance when either is unset; call create derives its own figure and can differ for subscriptions with an unset allowance. */
+ concurrencyLimit: number;
+ /** Plain concurrent-call headroom at the time of the read, floored at zero. Unlike the call create response, this does not include or reserve a slot for a new call. */
+ remainingConcurrentCalls: number;
+}
diff --git a/src/api/types/OrgLimitsResponseDto.ts b/src/api/types/OrgLimitsResponseDto.ts
new file mode 100644
index 00000000..bb35ec1b
--- /dev/null
+++ b/src/api/types/OrgLimitsResponseDto.ts
@@ -0,0 +1,10 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Vapi from "../index.js";
+
+export interface OrgLimitsResponseDto {
+ /** Call concurrency limits for the subscription. Unlike the call create response, remainingConcurrentCalls does not reserve a slot for a new call: it is the plain headroom at the time of the read. Covers the concurrency gate only — credits, frozen subscriptions, included minutes, and the billing limit are not reflected here, so call create can still refuse. Omitted when the limits could not be computed, and for an org with no subscription at all (legacy ungated orgs), which has no concurrency ceiling. */
+ subscriptionLimits?: Vapi.OrgConcurrencyLimitsDto | undefined;
+ /** API rate limit usage for the org. Approximate, per region, and scoped to the current minute. Omitted when the limit information is unavailable. */
+ apiLimits?: Vapi.OrgApiLimitsDto | undefined;
+}
diff --git a/src/api/types/RimeAiVoiceId.ts b/src/api/types/RimeAiVoiceId.ts
index 2b81a63b..983e1919 100644
--- a/src/api/types/RimeAiVoiceId.ts
+++ b/src/api/types/RimeAiVoiceId.ts
@@ -7,7 +7,7 @@ import type * as Vapi from "../index.js";
*/
export type RimeAiVoiceId =
/**
- * Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions. */
+ * Popular Rime AI voices across mist, mistv2, mistv3, arcana, and coda models. Any valid Rime AI voice ID is accepted, not just these suggestions. */
| Vapi.RimeAiVoiceIdEnum
/**
* Any valid Rime AI voice ID. See https://docs.rime.ai/docs/voices for the full catalog. */
diff --git a/src/api/types/RimeAiVoiceIdEnum.ts b/src/api/types/RimeAiVoiceIdEnum.ts
index 21ed81f3..b47951e2 100644
--- a/src/api/types/RimeAiVoiceIdEnum.ts
+++ b/src/api/types/RimeAiVoiceIdEnum.ts
@@ -1,6 +1,6 @@
// This file was auto-generated by Fern from our API Definition.
-/** Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions. */
+/** Popular Rime AI voices across mist, mistv2, mistv3, arcana, and coda models. Any valid Rime AI voice ID is accepted, not just these suggestions. */
export const RimeAiVoiceIdEnum = {
Cove: "cove",
Moon: "moon",
@@ -52,5 +52,12 @@ export const RimeAiVoiceIdEnum = {
Masonry: "masonry",
Albion: "albion",
Parapet: "parapet",
+ Clementine: "clementine",
+ Walnut: "walnut",
+ Eyre: "eyre",
+ Bancroft: "bancroft",
+ Hesse: "hesse",
+ Beatty: "beatty",
+ Godfrey: "godfrey",
} as const;
export type RimeAiVoiceIdEnum = (typeof RimeAiVoiceIdEnum)[keyof typeof RimeAiVoiceIdEnum];
diff --git a/src/api/types/RimeAiVoiceModel.ts b/src/api/types/RimeAiVoiceModel.ts
index 12fd07e1..1ffcd792 100644
--- a/src/api/types/RimeAiVoiceModel.ts
+++ b/src/api/types/RimeAiVoiceModel.ts
@@ -3,7 +3,9 @@
/** This is the model that will be used. Defaults to 'arcana' when not specified. */
export const RimeAiVoiceModel = {
Arcana: "arcana",
+ Coda: "coda",
Mistv2: "mistv2",
+ Mistv3: "mistv3",
Mist: "mist",
} as const;
export type RimeAiVoiceModel = (typeof RimeAiVoiceModel)[keyof typeof RimeAiVoiceModel];
diff --git a/src/api/types/ServerMessageEndOfCallReportEndedReason.ts b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts
index 0d5d03c9..77c434be 100644
--- a/src/api/types/ServerMessageEndOfCallReportEndedReason.ts
+++ b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts
@@ -28,6 +28,7 @@ export const ServerMessageEndOfCallReportEndedReason = {
CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent:
"call.start.error-enterprise-feature-not-available-recording-consent",
CallStartAssistantVersionErrorValidation: "call.start.assistant-version-error-validation",
+ CallStartSquadVersionErrorValidation: "call.start.squad-version-error-validation",
AssistantNotValid: "assistant-not-valid",
CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error",
AssistantNotFound: "assistant-not-found",
@@ -792,6 +793,8 @@ export const ServerMessageEndOfCallReportEndedReason = {
"call.in-progress.error-providerfault-outbound-sip-408-request-timeout",
CallInProgressErrorProviderfaultOutboundSip480TemporarilyUnavailable:
"call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable",
+ SipOutboundUnallocatedNumber: "sip-outbound-unallocated-number",
+ SipOutboundCarrierReleasedCall: "sip-outbound-carrier-released-call",
CallRingingHookExecutedSay: "call.ringing.hook-executed-say",
CallRingingHookExecutedTransfer: "call.ringing.hook-executed-transfer",
CallEndingHookExecutedSay: "call.ending.hook-executed-say",
diff --git a/src/api/types/ServerMessageStatusUpdateEndedReason.ts b/src/api/types/ServerMessageStatusUpdateEndedReason.ts
index 109d90e4..acec4a1f 100644
--- a/src/api/types/ServerMessageStatusUpdateEndedReason.ts
+++ b/src/api/types/ServerMessageStatusUpdateEndedReason.ts
@@ -28,6 +28,7 @@ export const ServerMessageStatusUpdateEndedReason = {
CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent:
"call.start.error-enterprise-feature-not-available-recording-consent",
CallStartAssistantVersionErrorValidation: "call.start.assistant-version-error-validation",
+ CallStartSquadVersionErrorValidation: "call.start.squad-version-error-validation",
AssistantNotValid: "assistant-not-valid",
CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error",
AssistantNotFound: "assistant-not-found",
@@ -792,6 +793,8 @@ export const ServerMessageStatusUpdateEndedReason = {
"call.in-progress.error-providerfault-outbound-sip-408-request-timeout",
CallInProgressErrorProviderfaultOutboundSip480TemporarilyUnavailable:
"call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable",
+ SipOutboundUnallocatedNumber: "sip-outbound-unallocated-number",
+ SipOutboundCarrierReleasedCall: "sip-outbound-carrier-released-call",
CallRingingHookExecutedSay: "call.ringing.hook-executed-say",
CallRingingHookExecutedTransfer: "call.ringing.hook-executed-transfer",
CallEndingHookExecutedSay: "call.ending.hook-executed-say",
diff --git a/src/api/types/Squad.ts b/src/api/types/Squad.ts
index 0df83e44..40df77cd 100644
--- a/src/api/types/Squad.ts
+++ b/src/api/types/Squad.ts
@@ -6,6 +6,14 @@ import type * as Vapi from "../index.js";
* A saved squad configuration that coordinates a group of assistants during a conversation. The first member starts the call, and member destinations control transfers between assistants.
*/
export interface Squad {
+ /**
+ * This is the latest version label (e.g. `v3`) of the squad in the version
+ * history. `null` while the org is not yet onboarded to versioning, or for
+ * squads that have not yet been published under it.
+ */
+ latestVersion?: (string | null) | undefined;
+ /** Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot that carries the model (for example `model` or `model.fallbackModels[1]`), the deprecation and retirement dates as `YYYY-MM-DD` in UTC, and the recommended replacement model: the registry's replacement, followed through any further retirements as of the response date, so it names a model that is alive on that day. Ignored if sent back in a create or update request. */
+ modelDeprecations?: Vapi.ModelDeprecationNotice[] | undefined;
/** This is the name of the squad. */
name?: string | undefined;
/**
diff --git a/src/api/types/SquadVersion.ts b/src/api/types/SquadVersion.ts
new file mode 100644
index 00000000..a9dabacd
--- /dev/null
+++ b/src/api/types/SquadVersion.ts
@@ -0,0 +1,50 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Vapi from "../index.js";
+
+export interface SquadVersion {
+ /** Optional human-readable label for this version. Set when the version is published. */
+ versionName?: (string | null) | undefined;
+ /** Optional description for this version. Set when the version is published. */
+ versionDescription?: (string | null) | undefined;
+ /** This is the unique identifier for the version row. */
+ id: string;
+ /** This is the unique identifier for the org that owns this version. */
+ orgId: string;
+ /** This is the unique identifier for the squad this version was snapshotted from. */
+ squadId: string;
+ /**
+ * This is the public monotonic version label, e.g. "v1".
+ * System-owned and incremented per squad; never user-supplied.
+ */
+ version: string;
+ /** This is the SHA-256 hex of the snapshotted content used for no-op detection. */
+ configHash: string;
+ /** This is the prior version label (vN-1). Null on v1 or for branch roots. */
+ parentVersion?: (string | null) | undefined;
+ /** The version this version was restored from. Null when it was not restored. */
+ restoredFromVersion?: (string | null) | undefined;
+ /**
+ * This is the actor that wrote this version. Email when created via JWT; null
+ * when created via API key, and null for a baseline version authored by nobody.
+ */
+ createdBy?: (string | null) | undefined;
+ /** This is the soft-delete timestamp. Null when active. */
+ deletedAt?: (string | null) | undefined;
+ /** This is the ISO 8601 date-time string of when the version was created. */
+ createdAt: string;
+ /** This is the name of the squad. */
+ name?: string | undefined;
+ /**
+ * This is the list of assistants that make up the squad.
+ *
+ * The call will start with the first assistant in the list.
+ */
+ members: Vapi.SquadMemberDto[];
+ /**
+ * This can be used to override all the assistants' settings and provide values for their template variables.
+ *
+ * Both `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.
+ */
+ membersOverrides?: Vapi.AssistantOverrides | undefined;
+}
diff --git a/src/api/types/SquadVersionPaginatedMetadata.ts b/src/api/types/SquadVersionPaginatedMetadata.ts
new file mode 100644
index 00000000..a4a7e3db
--- /dev/null
+++ b/src/api/types/SquadVersionPaginatedMetadata.ts
@@ -0,0 +1,7 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface SquadVersionPaginatedMetadata {
+ nextCursor?: (string | null) | undefined;
+ hasNextPage: boolean;
+ limit: number;
+}
diff --git a/src/api/types/SquadVersionPaginatedResponse.ts b/src/api/types/SquadVersionPaginatedResponse.ts
new file mode 100644
index 00000000..5bfc2209
--- /dev/null
+++ b/src/api/types/SquadVersionPaginatedResponse.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Vapi from "../index.js";
+
+export interface SquadVersionPaginatedResponse {
+ results: Vapi.SquadVersion[];
+ metadata: Vapi.SquadVersionPaginatedMetadata;
+}
diff --git a/src/api/types/StructuredOutput.ts b/src/api/types/StructuredOutput.ts
index 70465476..0b29d45e 100644
--- a/src/api/types/StructuredOutput.ts
+++ b/src/api/types/StructuredOutput.ts
@@ -16,6 +16,15 @@ export interface StructuredOutput {
/**
* This is the regex pattern to match against the transcript.
*
+ * Simulation evaluations use a canonical transcript built from recorded messages:
+ * User: and AI: dialogue, AI: tool_calls: JSON name/arguments records, and
+ * AI: tool_call_results: JSON results. System messages are excluded. These
+ * fixed labels apply even when custom artifact transcript labels are configured.
+ * Tool payloads participate in first-match and all-match extraction in event order.
+ * An empty message array falls back to the supplied transcript verbatim.
+ * Production-call extraction and call preview use their existing transcripts,
+ * so previewing the same output on a simulation's call can return a different result.
+ *
* Only used when type is 'regex'. Supports both raw patterns (e.g. '\d+') and
* regex literal format (e.g. '/\d+/gi'). Uses RE2 syntax for safety.
*
diff --git a/src/api/types/Subscription.ts b/src/api/types/Subscription.ts
index 20cc34fd..11a7daa2 100644
--- a/src/api/types/Subscription.ts
+++ b/src/api/types/Subscription.ts
@@ -116,4 +116,9 @@ export interface Subscription {
rbacEnabled?: boolean | undefined;
/** This is the platform fee for the subscription. */
platformFee?: number | undefined;
+ /**
+ * This is how payment is collected for the subscription: charged to the card
+ * on file, or invoiced.
+ */
+ billingCollectionMethod?: (Vapi.SubscriptionBillingCollectionMethod | null) | undefined;
}
diff --git a/src/api/types/SubscriptionBillingCollectionMethod.ts b/src/api/types/SubscriptionBillingCollectionMethod.ts
new file mode 100644
index 00000000..4de12f87
--- /dev/null
+++ b/src/api/types/SubscriptionBillingCollectionMethod.ts
@@ -0,0 +1,12 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * This is how payment is collected for the subscription: charged to the card
+ * on file, or invoiced.
+ */
+export const SubscriptionBillingCollectionMethod = {
+ ChargeAutomatically: "charge_automatically",
+ SendInvoice: "send_invoice",
+} as const;
+export type SubscriptionBillingCollectionMethod =
+ (typeof SubscriptionBillingCollectionMethod)[keyof typeof SubscriptionBillingCollectionMethod];
diff --git a/src/api/types/ToolPinnedConflictResponseDto.ts b/src/api/types/ToolPinnedConflictResponseDto.ts
index 03018545..4bc6b003 100644
--- a/src/api/types/ToolPinnedConflictResponseDto.ts
+++ b/src/api/types/ToolPinnedConflictResponseDto.ts
@@ -1,9 +1,6 @@
// This file was auto-generated by Fern from our API Definition.
-import type * as Vapi from "../index.js";
-
export interface ToolPinnedConflictResponseDto {
- error: Vapi.ToolPinnedConflictResponseDtoError;
/** Human-readable reason the parent-tool delete was rejected. */
message: string;
}
diff --git a/src/api/types/ToolPinnedConflictResponseDtoError.ts b/src/api/types/ToolPinnedConflictResponseDtoError.ts
deleted file mode 100644
index bc8430f9..00000000
--- a/src/api/types/ToolPinnedConflictResponseDtoError.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-export const ToolPinnedConflictResponseDtoError = {
- ToolPinned: "tool_pinned",
-} as const;
-export type ToolPinnedConflictResponseDtoError =
- (typeof ToolPinnedConflictResponseDtoError)[keyof typeof ToolPinnedConflictResponseDtoError];
diff --git a/src/api/types/ToolWriteConflictResponseDto.ts b/src/api/types/ToolWriteConflictResponseDto.ts
new file mode 100644
index 00000000..1209ec6c
--- /dev/null
+++ b/src/api/types/ToolWriteConflictResponseDto.ts
@@ -0,0 +1,9 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as Vapi from "../index.js";
+
+export interface ToolWriteConflictResponseDto {
+ error: Vapi.ToolWriteConflictResponseDtoError;
+ /** Human-readable reason the tool write was rejected. */
+ message: string;
+}
diff --git a/src/api/types/ToolWriteConflictResponseDtoError.ts b/src/api/types/ToolWriteConflictResponseDtoError.ts
new file mode 100644
index 00000000..ce845d78
--- /dev/null
+++ b/src/api/types/ToolWriteConflictResponseDtoError.ts
@@ -0,0 +1,7 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export const ToolWriteConflictResponseDtoError = {
+ ToolWriteConflict: "tool_write_conflict",
+} as const;
+export type ToolWriteConflictResponseDtoError =
+ (typeof ToolWriteConflictResponseDtoError)[keyof typeof ToolWriteConflictResponseDtoError];
diff --git a/src/api/types/UpdateUserRoleDtoRoleZero.ts b/src/api/types/UpdateUserRoleDtoRoleZero.ts
index d92a69f4..e0fb3f90 100644
--- a/src/api/types/UpdateUserRoleDtoRoleZero.ts
+++ b/src/api/types/UpdateUserRoleDtoRoleZero.ts
@@ -4,5 +4,6 @@ export const UpdateUserRoleDtoRoleZero = {
Admin: "admin",
Editor: "editor",
Viewer: "viewer",
+ HipaaSpecial: "hipaa-special",
} as const;
export type UpdateUserRoleDtoRoleZero = (typeof UpdateUserRoleDtoRoleZero)[keyof typeof UpdateUserRoleDtoRoleZero];
diff --git a/src/api/types/VapiWebsocketTransport.ts b/src/api/types/VapiWebsocketTransport.ts
index 0f53f5ca..1c3ac292 100644
--- a/src/api/types/VapiWebsocketTransport.ts
+++ b/src/api/types/VapiWebsocketTransport.ts
@@ -5,6 +5,12 @@ import type * as Vapi from "../index.js";
export interface VapiWebsocketTransport {
/** This is the conversation type of the call (ie, voice or chat). */
conversationType?: Vapi.VapiWebsocketTransportConversationType | undefined;
- /** This is the audio format of the call. Defaults to 16KHz raw pcm_s16le */
+ /**
+ * This is the audio format of the call. Defaults to 16KHz raw pcm_s16le.
+ *
+ * For GPT-Live calls using Vapi's custom WebSocket transport, explicitly set
+ * `{ format: pcm_s16le, sampleRate: 24000 }`. This requirement is specific
+ * to Vapi's WebSocket transport and does not apply to phone or web calls.
+ */
audioFormat?: Vapi.AudioFormat | undefined;
}
diff --git a/src/api/types/VersionPinReferenceSourceType.ts b/src/api/types/VersionPinReferenceSourceType.ts
index da317824..32c8a9d1 100644
--- a/src/api/types/VersionPinReferenceSourceType.ts
+++ b/src/api/types/VersionPinReferenceSourceType.ts
@@ -4,6 +4,7 @@
export const VersionPinReferenceSourceType = {
AssistantVersion: "assistant_version",
Squad: "squad",
+ SquadVersion: "squad_version",
ToolVersion: "tool_version",
} as const;
export type VersionPinReferenceSourceType =
diff --git a/src/api/types/index.ts b/src/api/types/index.ts
index 4c95df43..8ba21315 100644
--- a/src/api/types/index.ts
+++ b/src/api/types/index.ts
@@ -18,6 +18,7 @@ export * from "./AnthropicBedrockCredentialAuthenticationPlan.js";
export * from "./AnthropicBedrockCredentialProvider.js";
export * from "./AnthropicBedrockCredentialRegion.js";
export * from "./AnthropicBedrockModel.js";
+export * from "./AnthropicBedrockModelFallbackModelsItem.js";
export * from "./AnthropicBedrockModelModel.js";
export * from "./AnthropicBedrockModelToolsItem.js";
export * from "./AnthropicCredential.js";
@@ -125,6 +126,7 @@ export * from "./AssistantVoicemailDetection.js";
export * from "./AssistantVoicemailDetectionZero.js";
export * from "./AudioFormat.js";
export * from "./AudioFormatContainer.js";
+export * from "./AudioFormatFormat.js";
export * from "./AutoReloadPlan.js";
export * from "./AwsiamCredentialsAuthenticationPlan.js";
export * from "./AwsStsAssumeRoleUser.js";
@@ -287,6 +289,8 @@ export * from "./ChatPaginatedResponse.js";
export * from "./ChunkPlan.js";
export * from "./ClientInboundMessage.js";
export * from "./ClientInboundMessageAddMessage.js";
+export * from "./ClientInboundMessageAppendContext.js";
+export * from "./ClientInboundMessageAppendContextKind.js";
export * from "./ClientInboundMessageControl.js";
export * from "./ClientInboundMessageControlControl.js";
export * from "./ClientInboundMessageEndCall.js";
@@ -394,6 +398,7 @@ export * from "./ComputerToolWithToolCallName.js";
export * from "./ComputerToolWithToolCallSubType.js";
export * from "./Condition.js";
export * from "./ConditionOperator.js";
+export * from "./ConflictErrorBody.js";
export * from "./ContextEngineeringPlanAll.js";
export * from "./ContextEngineeringPlanLastNMessages.js";
export * from "./ContextEngineeringPlanNone.js";
@@ -845,8 +850,6 @@ export * from "./FallbackOpenAiTranscriber.js";
export * from "./FallbackOpenAiTranscriberLanguage.js";
export * from "./FallbackOpenAiTranscriberModel.js";
export * from "./FallbackOpenAiVoice.js";
-export * from "./FallbackOpenAiVoiceId.js";
-export * from "./FallbackOpenAiVoiceIdEnum.js";
export * from "./FallbackOpenAiVoiceModel.js";
export * from "./FallbackPlan.js";
export * from "./FallbackPlanVoicesItem.js";
@@ -898,6 +901,7 @@ export * from "./FallbackXaiVoiceLanguage.js";
export * from "./FallbackXaiVoiceVoiceId.js";
export * from "./File_.js";
export * from "./FileObject.js";
+export * from "./FilePaginatedResponse.js";
export * from "./FileStatus.js";
export * from "./FilterDateTypeColumnOnCallTable.js";
export * from "./FilterDateTypeColumnOnCallTableColumn.js";
@@ -1193,6 +1197,7 @@ export * from "./MinMessagesCondition.js";
export * from "./MistralCredential.js";
export * from "./MistralCredentialProvider.js";
export * from "./ModelCost.js";
+export * from "./ModelDeprecationNotice.js";
export * from "./Monitor.js";
export * from "./MonitorPlan.js";
export * from "./MonitorResult.js";
@@ -1222,14 +1227,19 @@ export * from "./OpenAiModelFallbackModelsItem.js";
export * from "./OpenAiModelModel.js";
export * from "./OpenAiModelPromptCacheRetention.js";
export * from "./OpenAiModelReasoningEffort.js";
+export * from "./OpenAiModelServiceTier.js";
export * from "./OpenAiModelToolStrictCompatibilityMode.js";
export * from "./OpenAiModelToolsItem.js";
+export * from "./OpenAiReasoner.js";
+export * from "./OpenAiReasonerModel.js";
+export * from "./OpenAiReasonerProvider.js";
+export * from "./OpenAiReasonerReasoningEffort.js";
+export * from "./OpenAiSpeaker.js";
+export * from "./OpenAiSpeakerPersonalityPacksItem.js";
export * from "./OpenAiTranscriber.js";
export * from "./OpenAiTranscriberLanguage.js";
export * from "./OpenAiTranscriberModel.js";
export * from "./OpenAiVoice.js";
-export * from "./OpenAiVoiceId.js";
-export * from "./OpenAiVoiceIdEnum.js";
export * from "./OpenAiVoiceModel.js";
export * from "./OpenAiVoicemailDetectionPlan.js";
export * from "./OpenAiVoicemailDetectionPlanProvider.js";
@@ -1242,7 +1252,10 @@ export * from "./OpenRouterCredentialProvider.js";
export * from "./OpenRouterModel.js";
export * from "./OpenRouterModelToolsItem.js";
export * from "./Org.js";
+export * from "./OrgApiLimitsDto.js";
export * from "./OrgChannel.js";
+export * from "./OrgConcurrencyLimitsDto.js";
+export * from "./OrgLimitsResponseDto.js";
export * from "./OutputTool.js";
export * from "./OutputToolMessagesItem.js";
export * from "./OutputToolType.js";
@@ -1602,6 +1615,9 @@ export * from "./SqlInjectionSecurityFilterType.js";
export * from "./Squad.js";
export * from "./SquadMemberDto.js";
export * from "./SquadMemberDtoAssistantDestinationsItem.js";
+export * from "./SquadVersion.js";
+export * from "./SquadVersionPaginatedMetadata.js";
+export * from "./SquadVersionPaginatedResponse.js";
export * from "./SsrfSecurityFilter.js";
export * from "./SsrfSecurityFilterType.js";
export * from "./StartSpeakingPlan.js";
@@ -1628,6 +1644,7 @@ export * from "./StructuredOutputRunResult.js";
export * from "./StructuredOutputRunResultResult.js";
export * from "./StructuredOutputType.js";
export * from "./Subscription.js";
+export * from "./SubscriptionBillingCollectionMethod.js";
export * from "./SubscriptionLimits.js";
export * from "./SubscriptionMinutesIncludedResetFrequency.js";
export * from "./SubscriptionStatus.js";
@@ -1743,7 +1760,6 @@ export * from "./ToolNodeTool.js";
export * from "./ToolParameter.js";
export * from "./ToolParameterValue.js";
export * from "./ToolPinnedConflictResponseDto.js";
-export * from "./ToolPinnedConflictResponseDtoError.js";
export * from "./ToolRef.js";
export * from "./ToolRejectionPlan.js";
export * from "./ToolRejectionPlanConditionsItem.js";
@@ -1752,6 +1768,8 @@ export * from "./ToolTemplateSetup.js";
export * from "./ToolVersion.js";
export * from "./ToolVersionPaginatedMetadata.js";
export * from "./ToolVersionPaginatedResponse.js";
+export * from "./ToolWriteConflictResponseDto.js";
+export * from "./ToolWriteConflictResponseDtoError.js";
export * from "./TranscriberCost.js";
export * from "./TranscriptionEndpointingPlan.js";
export * from "./TranscriptPlan.js";
diff --git a/src/version.ts b/src/version.ts
index 85cbd4ff..02d1eb13 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1 +1 @@
-export const SDK_VERSION = "2.0.1";
+export const SDK_VERSION = "0.0.0-fern-placeholder";
diff --git a/tests/wire/assistants.test.ts b/tests/wire/assistants.test.ts
index 644f50a4..2c92ec75 100644
--- a/tests/wire/assistants.test.ts
+++ b/tests/wire/assistants.test.ts
@@ -23,6 +23,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -246,6 +247,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
@@ -472,6 +483,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -771,6 +783,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
@@ -1054,6 +1076,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -1263,6 +1286,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
@@ -1518,6 +1551,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -1827,6 +1861,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
@@ -2181,6 +2225,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -2390,6 +2435,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
@@ -2640,6 +2695,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -2949,6 +3005,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
@@ -3277,6 +3343,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -3486,6 +3553,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
@@ -3736,6 +3813,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -4045,6 +4123,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
@@ -4388,6 +4476,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -4597,6 +4686,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
@@ -4854,6 +4953,7 @@ describe("AssistantsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -5163,6 +5263,16 @@ describe("AssistantsClient", () => {
},
],
latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
voicemailMessage: "voicemailMessage",
endCallMessage: "endCallMessage",
diff --git a/tests/wire/calls.test.ts b/tests/wire/calls.test.ts
index 1581268c..73e139d5 100644
--- a/tests/wire/calls.test.ts
+++ b/tests/wire/calls.test.ts
@@ -10,7 +10,7 @@ describe("CallsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
- const rawResponseBody = [ { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "model" : "gpt-5.6-sol" } , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "number" : "number" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } } ];
+ const rawResponseBody = [ { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "model" : "gpt-5.6-sol" } , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "number" : "number" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } } ];
server
.mockEndpoint()
@@ -53,14 +53,13 @@ describe("CallsClient", () => {
description: "description"
},
assistantVersion: "assistantVersion",
+ squadVersion: "squadVersion",
transport: {
provider: "vapi.websocket",
conversationType: "voice",
audioFormat: {
sampleRate: 1.1,
- format: {
- "key": "value"
- }
+ format: "pcm_s16le"
}
},
id: "id",
@@ -3256,7 +3255,7 @@ describe("CallsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
const rawRequestBody = { };
- const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } };
+ const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } };
server
.mockEndpoint()
@@ -3326,14 +3325,13 @@ describe("CallsClient", () => {
description: "description"
},
assistantVersion: "assistantVersion",
+ squadVersion: "squadVersion",
transport: {
provider: "vapi.websocket",
conversationType: "voice",
audioFormat: {
sampleRate: 1.1,
- format: {
- "key": "value"
- },
+ format: "pcm_s16le",
container: "raw"
}
},
@@ -3532,6 +3530,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -3911,6 +3910,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -5317,6 +5317,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -5836,6 +5837,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -6935,7 +6937,7 @@ describe("CallsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
- const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } };
+ const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } };
server
.mockEndpoint()
@@ -7006,14 +7008,13 @@ describe("CallsClient", () => {
description: "description"
},
assistantVersion: "assistantVersion",
+ squadVersion: "squadVersion",
transport: {
provider: "vapi.websocket",
conversationType: "voice",
audioFormat: {
sampleRate: 1.1,
- format: {
- "key": "value"
- },
+ format: "pcm_s16le",
container: "raw"
}
},
@@ -7212,6 +7213,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -7591,6 +7593,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -8997,6 +9000,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -9516,6 +9520,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -10577,7 +10582,7 @@ describe("CallsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
const rawRequestBody = { };
- const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } };
+ const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } };
server
.mockEndpoint()
@@ -10649,14 +10654,13 @@ describe("CallsClient", () => {
description: "description"
},
assistantVersion: "assistantVersion",
+ squadVersion: "squadVersion",
transport: {
provider: "vapi.websocket",
conversationType: "voice",
audioFormat: {
sampleRate: 1.1,
- format: {
- "key": "value"
- },
+ format: "pcm_s16le",
container: "raw"
}
},
@@ -10855,6 +10859,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -11234,6 +11239,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -12640,6 +12646,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -13159,6 +13166,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -14241,7 +14249,7 @@ describe("CallsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
const rawRequestBody = { };
- const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } };
+ const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } };
server
.mockEndpoint()
@@ -14313,14 +14321,13 @@ describe("CallsClient", () => {
description: "description"
},
assistantVersion: "assistantVersion",
+ squadVersion: "squadVersion",
transport: {
provider: "vapi.websocket",
conversationType: "voice",
audioFormat: {
sampleRate: 1.1,
- format: {
- "key": "value"
- },
+ format: "pcm_s16le",
container: "raw"
}
},
@@ -14519,6 +14526,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -14898,6 +14906,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -16304,6 +16313,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -16823,6 +16833,7 @@ describe("CallsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
diff --git a/tests/wire/campaigns.test.ts b/tests/wire/campaigns.test.ts
index 843caa51..d59e72e0 100644
--- a/tests/wire/campaigns.test.ts
+++ b/tests/wire/campaigns.test.ts
@@ -2088,7 +2088,7 @@ describe("CampaignsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
const rawRequestBody = { "name" : "Q2 Sales Campaign" };
- const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
+ const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
server
.mockEndpoint()
@@ -3470,6 +3470,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -3888,6 +3889,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -5091,7 +5093,7 @@ describe("CampaignsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
const rawRequestBody = { "name" : "Q2 Sales Campaign" };
- const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
+ const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
server
.mockEndpoint()
@@ -6473,6 +6475,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -6891,6 +6894,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -7347,7 +7351,7 @@ describe("CampaignsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
- const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "contactCounters" : { "pending" : 1.1 , "dispatched" : 1.1 , "completed" : 1.1 , "failed" : 1.1 , "skipped" : 1.1 , "predialFailed" : 1.1 } , "callMetrics" : { "dialed" : 1.1 , "connected" : 1.1 } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" };
+ const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "contactCounters" : { "pending" : 1.1 , "dispatched" : 1.1 , "completed" : 1.1 , "failed" : 1.1 , "skipped" : 1.1 , "predialFailed" : 1.1 } , "callMetrics" : { "dialed" : 1.1 , "connected" : 1.1 } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" };
server
.mockEndpoint()
@@ -7385,6 +7389,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -7803,6 +7808,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -8263,7 +8269,7 @@ describe("CampaignsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
- const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
+ const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
server
.mockEndpoint()
@@ -9644,6 +9650,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -10062,6 +10069,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -10518,7 +10526,7 @@ describe("CampaignsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
const rawRequestBody = { };
- const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
+ const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
server
.mockEndpoint()
@@ -11901,6 +11909,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -12319,6 +12328,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -12775,7 +12785,7 @@ describe("CampaignsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
- const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
+ const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
server
.mockEndpoint()
@@ -14156,6 +14166,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -14574,6 +14585,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -15030,7 +15042,7 @@ describe("CampaignsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
- const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
+ const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
server
.mockEndpoint()
@@ -16411,6 +16423,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -16829,6 +16842,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -17285,7 +17299,7 @@ describe("CampaignsClient", () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl });
const rawRequestBody = { };
- const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
+ const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "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 , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 };
server
.mockEndpoint()
@@ -18668,6 +18682,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -19086,6 +19101,7 @@ describe("CampaignsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
diff --git a/tests/wire/chats.test.ts b/tests/wire/chats.test.ts
index d1b0dda9..04eaa8f1 100644
--- a/tests/wire/chats.test.ts
+++ b/tests/wire/chats.test.ts
@@ -4678,6 +4678,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -5116,6 +5117,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -6818,6 +6820,8 @@ describe("ChatsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: { key: "value" },
promptTokens: 1.1,
completionTokens: 1.1,
@@ -6856,6 +6860,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -7426,6 +7431,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -9612,6 +9618,8 @@ describe("ChatsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: {
key: "value",
},
@@ -9645,6 +9653,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -10083,6 +10092,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -11785,6 +11795,8 @@ describe("ChatsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: { key: "value" },
promptTokens: 1.1,
completionTokens: 1.1,
@@ -11816,6 +11828,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -12386,6 +12399,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -14572,6 +14586,8 @@ describe("ChatsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: {
key: "value",
},
@@ -14605,6 +14621,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -15043,6 +15060,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -16745,6 +16763,8 @@ describe("ChatsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: { key: "value" },
promptTokens: 1.1,
completionTokens: 1.1,
@@ -16776,6 +16796,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -17346,6 +17367,7 @@ describe("ChatsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -19532,6 +19554,8 @@ describe("ChatsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: {
key: "value",
},
diff --git a/tests/wire/eval.test.ts b/tests/wire/eval.test.ts
index e7d1b471..7ed203be 100644
--- a/tests/wire/eval.test.ts
+++ b/tests/wire/eval.test.ts
@@ -1,10 +1,11 @@
// This file was auto-generated by Fern from our API Definition.
+import * as Vapi from "../../src/api/index";
import { VapiClient } from "../../src/Client";
import { mockServerPool } from "../mock-server/MockServerPool";
describe("EvalClient", () => {
- test("EvalController_getPaginated", async () => {
+ test("EvalController_getPaginated (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
@@ -85,7 +86,20 @@ describe("EvalClient", () => {
});
});
- test("EvalController_create", async () => {
+ test("EvalController_getPaginated (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+
+ const rawResponseBody = { key: "value" };
+
+ server.mockEndpoint().get("/eval").respondWith().statusCode(403).jsonBody(rawResponseBody).build();
+
+ await expect(async () => {
+ return await client.eval.evalControllerGetPaginated();
+ }).rejects.toThrow(Vapi.ForbiddenError);
+ });
+
+ test("EvalController_create (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
const rawRequestBody = { messages: [{ role: "assistant" }], type: "chat.mockConversation" };
@@ -148,7 +162,40 @@ describe("EvalClient", () => {
});
});
- test("EvalController_get", async () => {
+ test("EvalController_create (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+ const rawRequestBody = {
+ messages: [{ role: "assistant" }, { role: "assistant" }],
+ type: "chat.mockConversation",
+ };
+ const rawResponseBody = { key: "value" };
+
+ server
+ .mockEndpoint()
+ .post("/eval")
+ .jsonBody(rawRequestBody)
+ .respondWith()
+ .statusCode(403)
+ .jsonBody(rawResponseBody)
+ .build();
+
+ await expect(async () => {
+ return await client.eval.evalControllerCreate({
+ messages: [
+ {
+ role: "assistant",
+ },
+ {
+ role: "assistant",
+ },
+ ],
+ type: "chat.mockConversation",
+ });
+ }).rejects.toThrow(Vapi.ForbiddenError);
+ });
+
+ test("EvalController_get (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
@@ -199,7 +246,22 @@ describe("EvalClient", () => {
});
});
- test("EvalController_remove", async () => {
+ test("EvalController_get (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+
+ const rawResponseBody = { key: "value" };
+
+ server.mockEndpoint().get("/eval/id").respondWith().statusCode(403).jsonBody(rawResponseBody).build();
+
+ await expect(async () => {
+ return await client.eval.evalControllerGet({
+ id: "id",
+ });
+ }).rejects.toThrow(Vapi.ForbiddenError);
+ });
+
+ test("EvalController_remove (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
@@ -250,7 +312,22 @@ describe("EvalClient", () => {
});
});
- test("EvalController_update", async () => {
+ test("EvalController_remove (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+
+ const rawResponseBody = { key: "value" };
+
+ server.mockEndpoint().delete("/eval/id").respondWith().statusCode(403).jsonBody(rawResponseBody).build();
+
+ await expect(async () => {
+ return await client.eval.evalControllerRemove({
+ id: "id",
+ });
+ }).rejects.toThrow(Vapi.ForbiddenError);
+ });
+
+ test("EvalController_update (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
const rawRequestBody = {};
@@ -308,7 +385,29 @@ describe("EvalClient", () => {
});
});
- test("EvalController_getRun", async () => {
+ test("EvalController_update (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+ const rawRequestBody = {};
+ const rawResponseBody = { key: "value" };
+
+ server
+ .mockEndpoint()
+ .patch("/eval/id")
+ .jsonBody(rawRequestBody)
+ .respondWith()
+ .statusCode(403)
+ .jsonBody(rawResponseBody)
+ .build();
+
+ await expect(async () => {
+ return await client.eval.evalControllerUpdate({
+ id: "id",
+ });
+ }).rejects.toThrow(Vapi.ForbiddenError);
+ });
+
+ test("EvalController_getRun (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
@@ -2261,7 +2360,22 @@ describe("EvalClient", () => {
});
});
- test("EvalController_removeRun", async () => {
+ test("EvalController_getRun (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+
+ const rawResponseBody = { key: "value" };
+
+ server.mockEndpoint().get("/eval/run/id").respondWith().statusCode(403).jsonBody(rawResponseBody).build();
+
+ await expect(async () => {
+ return await client.eval.evalControllerGetRun({
+ id: "id",
+ });
+ }).rejects.toThrow(Vapi.ForbiddenError);
+ });
+
+ test("EvalController_removeRun (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
@@ -4214,7 +4328,22 @@ describe("EvalClient", () => {
});
});
- test("EvalController_getRunsPaginated", async () => {
+ test("EvalController_removeRun (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+
+ const rawResponseBody = { key: "value" };
+
+ server.mockEndpoint().delete("/eval/run/id").respondWith().statusCode(403).jsonBody(rawResponseBody).build();
+
+ await expect(async () => {
+ return await client.eval.evalControllerRemoveRun({
+ id: "id",
+ });
+ }).rejects.toThrow(Vapi.ForbiddenError);
+ });
+
+ test("EvalController_getRunsPaginated (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
@@ -6143,7 +6272,20 @@ describe("EvalClient", () => {
});
});
- test("EvalController_run", async () => {
+ test("EvalController_getRunsPaginated (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+
+ const rawResponseBody = { key: "value" };
+
+ server.mockEndpoint().get("/eval/run").respondWith().statusCode(403).jsonBody(rawResponseBody).build();
+
+ await expect(async () => {
+ return await client.eval.evalControllerGetRunsPaginated();
+ }).rejects.toThrow(Vapi.ForbiddenError);
+ });
+
+ test("EvalController_run (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
const rawRequestBody = { target: { type: "assistant" }, type: "eval" };
@@ -6168,4 +6310,29 @@ describe("EvalClient", () => {
key: "value",
});
});
+
+ test("EvalController_run (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+ const rawRequestBody = { target: { type: "assistant" }, type: "eval" };
+ const rawResponseBody = { key: "value" };
+
+ server
+ .mockEndpoint()
+ .post("/eval/run")
+ .jsonBody(rawRequestBody)
+ .respondWith()
+ .statusCode(403)
+ .jsonBody(rawResponseBody)
+ .build();
+
+ await expect(async () => {
+ return await client.eval.evalControllerRun({
+ target: {
+ type: "assistant",
+ },
+ type: "eval",
+ });
+ }).rejects.toThrow(Vapi.ForbiddenError);
+ });
});
diff --git a/tests/wire/files.test.ts b/tests/wire/files.test.ts
index 782d0545..b64d2a7e 100644
--- a/tests/wire/files.test.ts
+++ b/tests/wire/files.test.ts
@@ -33,9 +33,7 @@ describe("FilesClient", () => {
server.mockEndpoint().get("/file").respondWith().statusCode(200).jsonBody(rawResponseBody).build();
- const response = await client.files.list({
- purpose: "purpose",
- });
+ const response = await client.files.list();
expect(response).toEqual([
{
object: "file",
diff --git a/tests/wire/sessions.test.ts b/tests/wire/sessions.test.ts
index 18ef3573..db72bf77 100644
--- a/tests/wire/sessions.test.ts
+++ b/tests/wire/sessions.test.ts
@@ -6590,6 +6590,8 @@ describe("SessionsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: { key: "value" },
promptTokens: 1.1,
completionTokens: 1.1,
@@ -6615,6 +6617,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -7053,6 +7056,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -9698,6 +9702,8 @@ describe("SessionsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: {
key: "value",
},
@@ -9725,6 +9731,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -10295,6 +10302,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -13712,6 +13720,8 @@ describe("SessionsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: { key: "value" },
promptTokens: 1.1,
completionTokens: 1.1,
@@ -13737,6 +13747,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -14175,6 +14186,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -16815,6 +16827,8 @@ describe("SessionsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: {
key: "value",
},
@@ -16842,6 +16856,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -17412,6 +17427,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -20829,6 +20845,8 @@ describe("SessionsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: { key: "value" },
promptTokens: 1.1,
completionTokens: 1.1,
@@ -20854,6 +20872,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -21292,6 +21311,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -23932,6 +23952,8 @@ describe("SessionsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: {
key: "value",
},
@@ -23959,6 +23981,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -24529,6 +24552,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -27946,6 +27970,8 @@ describe("SessionsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: { key: "value" },
promptTokens: 1.1,
completionTokens: 1.1,
@@ -27971,6 +27997,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -28409,6 +28436,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -31056,6 +31084,8 @@ describe("SessionsClient", () => {
costs: [
{
type: "model",
+ seconds: 1.1,
+ usageComplete: true,
model: {
key: "value",
},
@@ -31083,6 +31113,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -31653,6 +31684,7 @@ describe("SessionsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
diff --git a/tests/wire/simulationPersonalities.test.ts b/tests/wire/simulationPersonalities.test.ts
index d7ea7589..6275cb7b 100644
--- a/tests/wire/simulationPersonalities.test.ts
+++ b/tests/wire/simulationPersonalities.test.ts
@@ -948,6 +948,7 @@ describe("SimulationPersonalitiesClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -1408,6 +1409,7 @@ describe("SimulationPersonalitiesClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -1992,6 +1994,7 @@ describe("SimulationPersonalitiesClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -2450,6 +2453,7 @@ describe("SimulationPersonalitiesClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -3034,6 +3038,7 @@ describe("SimulationPersonalitiesClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -3492,6 +3497,7 @@ describe("SimulationPersonalitiesClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -4097,6 +4103,7 @@ describe("SimulationPersonalitiesClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -4556,6 +4563,7 @@ describe("SimulationPersonalitiesClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
diff --git a/tests/wire/simulationScenarios.test.ts b/tests/wire/simulationScenarios.test.ts
index de69505d..1771809e 100644
--- a/tests/wire/simulationScenarios.test.ts
+++ b/tests/wire/simulationScenarios.test.ts
@@ -1190,6 +1190,7 @@ describe("SimulationScenariosClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -1753,6 +1754,7 @@ describe("SimulationScenariosClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -2439,6 +2441,7 @@ describe("SimulationScenariosClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -2994,6 +2997,7 @@ describe("SimulationScenariosClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -3680,6 +3684,7 @@ describe("SimulationScenariosClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -4235,6 +4240,7 @@ describe("SimulationScenariosClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -4942,6 +4948,7 @@ describe("SimulationScenariosClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -5498,6 +5505,7 @@ describe("SimulationScenariosClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
diff --git a/tests/wire/squads.test.ts b/tests/wire/squads.test.ts
index ddcdf3b6..29e42965 100644
--- a/tests/wire/squads.test.ts
+++ b/tests/wire/squads.test.ts
@@ -10,6 +10,17 @@ describe("SquadsClient", () => {
const rawResponseBody = [
{
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -1251,6 +1262,17 @@ describe("SquadsClient", () => {
const response = await client.squads.list();
expect(response).toEqual([
{
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -2812,6 +2834,17 @@ describe("SquadsClient", () => {
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
const rawRequestBody = { members: [{}] };
const rawResponseBody = {
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -3631,6 +3664,7 @@ describe("SquadsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -4106,6 +4140,17 @@ describe("SquadsClient", () => {
members: [{}],
});
expect(response).toEqual({
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -5129,6 +5174,7 @@ describe("SquadsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -5748,6 +5794,17 @@ describe("SquadsClient", () => {
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
const rawResponseBody = {
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -6567,6 +6624,7 @@ describe("SquadsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -7035,6 +7093,17 @@ describe("SquadsClient", () => {
id: "id",
});
expect(response).toEqual({
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -8058,6 +8127,7 @@ describe("SquadsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -8677,6 +8747,17 @@ describe("SquadsClient", () => {
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
const rawResponseBody = {
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -9496,6 +9577,7 @@ describe("SquadsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -9964,6 +10046,17 @@ describe("SquadsClient", () => {
id: "id",
});
expect(response).toEqual({
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -10987,6 +11080,7 @@ describe("SquadsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -11606,6 +11700,17 @@ describe("SquadsClient", () => {
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
const rawRequestBody = { members: [{}] };
const rawResponseBody = {
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -12425,6 +12530,7 @@ describe("SquadsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
@@ -12901,6 +13007,17 @@ describe("SquadsClient", () => {
members: [{}],
});
expect(response).toEqual({
+ latestVersion: "latestVersion",
+ modelDeprecations: [
+ {
+ slot: "model.fallbackModels[1]",
+ provider: "openai",
+ model: "gpt-4-1106-preview",
+ deprecationDate: "2025-09-26",
+ retirementDate: "2026-03-26",
+ replacementModel: "gpt-5",
+ },
+ ],
name: "name",
members: [
{
@@ -13924,6 +14041,7 @@ describe("SquadsClient", () => {
mode: "max_accuracy",
prompt: "prompt",
agentContext: "agentContext",
+ agentContextAutoUpdateEnabled: true,
languageCodes: ["en"],
speechModel: "universal-streaming-english",
realtimeUrl: "realtimeUrl",
diff --git a/tests/wire/tools.test.ts b/tests/wire/tools.test.ts
index 21413eeb..618fa968 100644
--- a/tests/wire/tools.test.ts
+++ b/tests/wire/tools.test.ts
@@ -755,7 +755,7 @@ describe("ToolsClient", () => {
}).rejects.toThrow(Vapi.ConflictError);
});
- test("update", async () => {
+ test("update (1)", async () => {
const server = mockServerPool.createServer();
const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
const rawRequestBody = { type: "apiRequest" };
@@ -955,4 +955,29 @@ describe("ToolsClient", () => {
},
});
});
+
+ test("update (2)", async () => {
+ const server = mockServerPool.createServer();
+ const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl });
+ const rawRequestBody = { type: "apiRequest" };
+ const rawResponseBody = { key: "value" };
+
+ server
+ .mockEndpoint()
+ .patch("/tool/id")
+ .jsonBody(rawRequestBody)
+ .respondWith()
+ .statusCode(409)
+ .jsonBody(rawResponseBody)
+ .build();
+
+ await expect(async () => {
+ return await client.tools.update({
+ id: "id",
+ body: {
+ type: "apiRequest",
+ },
+ });
+ }).rejects.toThrow(Vapi.ConflictError);
+ });
});
From e07533d3947927a70c0f2a65e2db429ca6517154 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Sat, 26 Sep 2026 01:35:25 +0000
Subject: [PATCH 2/3] [fern-autoversion] feat!: remove exported types and enum
values across multiple APIs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Several exported TypeScript types and enum values have been removed,
which will break existing callers that reference them. Additionally,
new capabilities have been added including a new AssemblyAI speech
model, Deepgram Flux voice model support, new optional fields on
transcriber and voice types, improved error handling with typed
ForbiddenError/ConflictError throws, and a new `search` parameter
for eval run pagination.
Key changes:
- Remove `FallbackOpenAiVoiceId`, `FallbackOpenAiVoiceIdEnum`, `OpenAiVoiceId`, `OpenAiVoiceIdEnum`, and `ToolPinnedConflictResponseDtoError` exported types
- Remove `Duration` and `Cost` enum values from `EvalControllerGetRunsPaginatedRequestSortBy` and `GetEvalRunPaginatedDtoSortBy`
- Remove required `error` field from `ToolPinnedConflictResponseDto` and make `ListFilesRequest.purpose` optional
- Add `universal-3-6-pro` speech model to AssemblyAI, `flux` model to Deepgram, and new `agentContextAutoUpdateEnabled`, `speed`, and `expressivity` fields
- Add typed `ForbiddenError` (403) and `ConflictError` (409) throws across eval and tools clients
🌿 Generated with Fern
---
.fern/metadata.json | 2 +-
changelog.md | 3 +++
package.json | 2 +-
src/BaseClient.ts | 4 ++--
src/version.ts | 2 +-
5 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/.fern/metadata.json b/.fern/metadata.json
index 0ebde6ef..c5c71611 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -16,5 +16,5 @@
"invokedBy": "ci",
"requestedVersion": "AUTO",
"ciProvider": "unknown",
- "sdkVersion": "0.0.0-fern-placeholder"
+ "sdkVersion": "3.0.0"
}
diff --git a/changelog.md b/changelog.md
index e0a673b4..d562c9f4 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,6 @@
+## [3.0.0] - 2026-09-26
+Removing exported types `FallbackOpenAiVoiceId`, `FallbackOpenAiVoiceIdEnum`, `OpenAiVoiceId`, `OpenAiVoiceIdEnum`, `ToolPinnedConflictResponseDtoError`, removing the required `error` field from `ToolPinnedConflictResponseDto`, and removing enum values `Duration` and `Cost` from `EvalControllerGetRunsPaginatedRequestSortBy` and `GetEvalRunPaginatedDtoSortBy` are all breaking changes for existing callers.
+
## [2.0.1] - 2026-08-26
## 2.0.0 - 2026-06-24
diff --git a/package.json b/package.json
index fa9425b9..db548edb 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@vapi-ai/server-sdk",
- "version": "0.0.0-fern-placeholder",
+ "version": "3.0.0",
"private": false,
"repository": {
"type": "git",
diff --git a/src/BaseClient.ts b/src/BaseClient.ts
index 0cbc606c..c6b5e276 100644
--- a/src/BaseClient.ts
+++ b/src/BaseClient.ts
@@ -52,8 +52,8 @@ export function normalizeClientOptions
Date: Sat, 26 Sep 2026 01:35:25 +0000
Subject: [PATCH 3/3] [fern-replay] advance lockfile
---
.fern/replay.lock | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.fern/replay.lock b/.fern/replay.lock
index 3a8062c8..976592eb 100644
--- a/.fern/replay.lock
+++ b/.fern/replay.lock
@@ -18,5 +18,11 @@ generations:
cli_version: unknown
generator_versions:
fernapi/fern-typescript-sdk: 3.63.0
-current_generation: 5037338ca89fe36163c30364fd68c07e99299a5b
+ - commit_sha: 84817363afe25a500a6dd13cf365a5c24720f6ee
+ tree_hash: 8962782e8f52f4b1afcf7b42b8d65c8630e58da5
+ timestamp: 2026-09-26T01:35:01.678Z
+ cli_version: unknown
+ generator_versions:
+ fernapi/fern-typescript-sdk: 3.63.0
+current_generation: 84817363afe25a500a6dd13cf365a5c24720f6ee
patches: []