diff --git a/.fern/metadata.json b/.fern/metadata.json index eed869ca..abea5f51 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.106.1", + "cliVersion": "5.114.1", "generatorName": "fernapi/fern-typescript-sdk", "generatorVersion": "3.63.0", "generatorConfig": { @@ -11,7 +11,7 @@ "omitUndefined": true, "enableInlineTypes": false }, - "originGitCommit": "e72840cf798dcb878d7b0136e90d6159afa7e261", + "originGitCommit": "88b766822b005b2c1356c4b9a9c285b1f2e8082b", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", diff --git a/.fern/replay.lock b/.fern/replay.lock index df9c9887..397c1e4b 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -12,5 +12,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-typescript-sdk: 3.63.0 -current_generation: 1735ab7a694dde2421a5b241d3e2456555036319 + - commit_sha: 92047a8b769dc260c0da76eda16965ea37a7f652 + tree_hash: 61b329f02b7d8bf2a33abaa0fcd9cae6e769df13 + timestamp: 2026-09-04T19:34:56.895Z + cli_version: unknown + generator_versions: + fernapi/fern-typescript-sdk: 3.63.0 +current_generation: 92047a8b769dc260c0da76eda16965ea37a7f652 patches: [] diff --git a/reference.md b/reference.md index 477b49bb..62fb2411 100644 --- a/reference.md +++ b/reference.md @@ -122,6 +122,57 @@ await client.assistants.create({}); + + + + +
client.assistants.assistantControllerValidateBackgroundSoundUrl({ ...params }) -> Vapi.BackgroundSoundUrlValidationResult +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.assistants.assistantControllerValidateBackgroundSoundUrl({ + url: "https://example.com/my-sound.mp3" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Vapi.ValidateBackgroundSoundUrlDto` + +
+
+ +
+
+ +**requestOptions:** `AssistantsClient.RequestOptions` + +
+
+
+
+ +
@@ -5688,6 +5739,57 @@ await client.simulationSuites.simulationSuiteControllerCreate({ + + + + +
client.simulationSuites.simulationSuiteControllerDuplicate({ ...params }) -> Vapi.SimulationSuite +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.simulationSuites.simulationSuiteControllerDuplicate({ + id: "id" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Vapi.SimulationSuiteControllerDuplicateRequest` + +
+
+ +
+
+ +**requestOptions:** `SimulationSuitesClient.RequestOptions` + +
+
+
+
+ +
diff --git a/src/api/resources/assistants/client/Client.ts b/src/api/resources/assistants/client/Client.ts index 0abe3fa8..dad30c85 100644 --- a/src/api/resources/assistants/client/Client.ts +++ b/src/api/resources/assistants/client/Client.ts @@ -161,6 +161,76 @@ export class AssistantsClient { return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/assistant"); } + /** + * @param {Vapi.ValidateBackgroundSoundUrlDto} request + * @param {AssistantsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.assistants.assistantControllerValidateBackgroundSoundUrl({ + * url: "https://example.com/my-sound.mp3" + * }) + */ + public assistantControllerValidateBackgroundSoundUrl( + request: Vapi.ValidateBackgroundSoundUrlDto, + requestOptions?: AssistantsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise( + this.__assistantControllerValidateBackgroundSoundUrl(request, requestOptions), + ); + } + + private async __assistantControllerValidateBackgroundSoundUrl( + request: Vapi.ValidateBackgroundSoundUrlDto, + requestOptions?: AssistantsClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.VapiEnvironment.Default, + "assistant/background-sound/validate", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: requestOptions?.queryParams, + requestType: "json", + body: request, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: _response.body as Vapi.BackgroundSoundUrlValidationResult, + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.VapiError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/assistant/background-sound/validate", + ); + } + /** * Returns the assistant identified by its ID. * diff --git a/src/api/resources/assistants/client/requests/ValidateBackgroundSoundUrlDto.ts b/src/api/resources/assistants/client/requests/ValidateBackgroundSoundUrlDto.ts new file mode 100644 index 00000000..b49f0207 --- /dev/null +++ b/src/api/resources/assistants/client/requests/ValidateBackgroundSoundUrlDto.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * url: "https://example.com/my-sound.mp3" + * } + */ +export interface ValidateBackgroundSoundUrlDto { + /** This is the background sound URL to validate. The server performs a ranged request and checks that the URL serves a live media file. */ + url: string; +} diff --git a/src/api/resources/assistants/client/requests/index.ts b/src/api/resources/assistants/client/requests/index.ts index 17898b95..b095d9f4 100644 --- a/src/api/resources/assistants/client/requests/index.ts +++ b/src/api/resources/assistants/client/requests/index.ts @@ -2,3 +2,4 @@ export type { DeleteAssistantsRequest } from "./DeleteAssistantsRequest.js"; export type { GetAssistantsRequest } from "./GetAssistantsRequest.js"; export type { ListAssistantsRequest } from "./ListAssistantsRequest.js"; export type { UpdateAssistantDto } from "./UpdateAssistantDto.js"; +export type { ValidateBackgroundSoundUrlDto } from "./ValidateBackgroundSoundUrlDto.js"; diff --git a/src/api/resources/simulationSuites/client/Client.ts b/src/api/resources/simulationSuites/client/Client.ts index a67c4d16..704be7e0 100644 --- a/src/api/resources/simulationSuites/client/Client.ts +++ b/src/api/resources/simulationSuites/client/Client.ts @@ -7,7 +7,7 @@ import * as core from "../../../../core/index.js"; import * as environments from "../../../../environments.js"; import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js"; import * as errors from "../../../../errors/index.js"; -import type * as Vapi from "../../../index.js"; +import * as Vapi from "../../../index.js"; export declare namespace SimulationSuitesClient { export type Options = BaseClientOptions; @@ -172,6 +172,79 @@ export class SimulationSuitesClient { return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/eval/simulation/suite"); } + /** + * @param {Vapi.SimulationSuiteControllerDuplicateRequest} request + * @param {SimulationSuitesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Vapi.NotFoundError} + * @throws {@link Vapi.ConflictError} + * + * @example + * await client.simulationSuites.simulationSuiteControllerDuplicate({ + * id: "id" + * }) + */ + public simulationSuiteControllerDuplicate( + request: Vapi.SimulationSuiteControllerDuplicateRequest, + requestOptions?: SimulationSuitesClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__simulationSuiteControllerDuplicate(request, requestOptions)); + } + + private async __simulationSuiteControllerDuplicate( + request: Vapi.SimulationSuiteControllerDuplicateRequest, + requestOptions?: SimulationSuitesClient.RequestOptions, + ): Promise> { + const { id } = request; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.VapiEnvironment.Default, + `eval/simulation/suite/${core.url.encodePathParam(id)}/duplicate`, + ), + method: "POST", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { data: _response.body as Vapi.SimulationSuite, rawResponse: _response.rawResponse }; + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 404: + throw new Vapi.NotFoundError(_response.error.body as unknown, _response.rawResponse); + 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, + "POST", + "/eval/simulation/suite/{id}/duplicate", + ); + } + /** * Returns the specified simulation suite. * diff --git a/src/api/resources/simulationSuites/client/requests/SimulationSuiteControllerDuplicateRequest.ts b/src/api/resources/simulationSuites/client/requests/SimulationSuiteControllerDuplicateRequest.ts new file mode 100644 index 00000000..0b1c0ef3 --- /dev/null +++ b/src/api/resources/simulationSuites/client/requests/SimulationSuiteControllerDuplicateRequest.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * id: "id" + * } + */ +export interface SimulationSuiteControllerDuplicateRequest { + /** The unique identifier for the resource. */ + id: string; +} diff --git a/src/api/resources/simulationSuites/client/requests/index.ts b/src/api/resources/simulationSuites/client/requests/index.ts index 005b3f61..395f0b11 100644 --- a/src/api/resources/simulationSuites/client/requests/index.ts +++ b/src/api/resources/simulationSuites/client/requests/index.ts @@ -1,4 +1,5 @@ export type { CreateSimulationSuiteDto } from "./CreateSimulationSuiteDto.js"; +export type { SimulationSuiteControllerDuplicateRequest } from "./SimulationSuiteControllerDuplicateRequest.js"; export type { SimulationSuiteControllerFindAllRequest } from "./SimulationSuiteControllerFindAllRequest.js"; export type { SimulationSuiteControllerFindOneRequest } from "./SimulationSuiteControllerFindOneRequest.js"; export type { SimulationSuiteControllerRemoveRequest } from "./SimulationSuiteControllerRemoveRequest.js"; diff --git a/src/api/types/BackgroundSoundUrlValidationResult.ts b/src/api/types/BackgroundSoundUrlValidationResult.ts new file mode 100644 index 00000000..5d7efaa2 --- /dev/null +++ b/src/api/types/BackgroundSoundUrlValidationResult.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +export interface BackgroundSoundUrlValidationResult { + /** Whether the URL currently serves a live media file. When false, calls configured with this URL silently play no background sound. */ + valid: boolean; + /** Why validation failed. Only present when valid is false. */ + reason?: Vapi.BackgroundSoundUrlValidationResultReason | undefined; + /** The HTTP status the URL returned, when a response was received. */ + status?: number | undefined; + /** The content-type the URL returned, when a response was received. */ + contentType?: string | undefined; +} diff --git a/src/api/types/BackgroundSoundUrlValidationResultReason.ts b/src/api/types/BackgroundSoundUrlValidationResultReason.ts new file mode 100644 index 00000000..5f942d5a --- /dev/null +++ b/src/api/types/BackgroundSoundUrlValidationResultReason.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Why validation failed. Only present when valid is false. */ +export const BackgroundSoundUrlValidationResultReason = { + InvalidUrl: "invalid-url", + BlockedAddress: "blocked-address", + Unreachable: "unreachable", + Timeout: "timeout", + TooManyRedirects: "too-many-redirects", + HttpError: "http-error", + NotAudio: "not-audio", +} as const; +export type BackgroundSoundUrlValidationResultReason = + (typeof BackgroundSoundUrlValidationResultReason)[keyof typeof BackgroundSoundUrlValidationResultReason]; diff --git a/src/api/types/CallEndedReason.ts b/src/api/types/CallEndedReason.ts index 16d9e75e..49234e59 100644 --- a/src/api/types/CallEndedReason.ts +++ b/src/api/types/CallEndedReason.ts @@ -203,6 +203,10 @@ export const CallEndedReason = { CallInProgressErrorProviderfaultBasetenLlmFailed: "call.in-progress.error-providerfault-baseten-llm-failed", CallInProgressErrorVapifaultChatPipelineFailedToStart: "call.in-progress.error-vapifault-chat-pipeline-failed-to-start", + CallInProgressErrorConfigfaultModelUnsupportedInSquad: + "call.in-progress.error-configfault-model-unsupported-in-squad", + CallInProgressErrorConfigfaultTransportUnsupportedForModel: + "call.in-progress.error-configfault-transport-unsupported-for-model", PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", PipelineErrorOpenai401IncorrectApiKey: "pipeline-error-openai-401-incorrect-api-key", diff --git a/src/api/types/Campaign.ts b/src/api/types/Campaign.ts index 7df3efb1..ae46726b 100644 --- a/src/api/types/Campaign.ts +++ b/src/api/types/Campaign.ts @@ -26,7 +26,7 @@ export interface Campaign { schedulePlan?: Vapi.SchedulePlan | undefined; /** These are the customers that will be called in the campaign. Required if dialPlan is not provided. Maximum of 10000 customers per campaign. */ customers?: Vapi.CreateCustomerDto[] | undefined; - /** This is the maximum number of concurrent calls that will be made for the campaign. Defaults to 10. */ + /** This is the maximum number of concurrent calls that will be made for the campaign. Defaults to 10. Maximum of 500, and may not exceed your organization's concurrency limit. */ maxConcurrency?: number | undefined; /** These are the overrides for the assistant's settings and template variables for the campaign. Use this when the campaign targets an `assistantId`. */ assistantOverrides?: Vapi.AssistantOverrides | undefined; diff --git a/src/api/types/CampaignSummary.ts b/src/api/types/CampaignSummary.ts index e4290b69..dac17214 100644 --- a/src/api/types/CampaignSummary.ts +++ b/src/api/types/CampaignSummary.ts @@ -17,7 +17,7 @@ export interface CampaignSummary { phoneNumberId?: string | undefined; /** This is the schedule plan for the campaign. Calls will start at startedAt and continue until your organization’s concurrency limit is reached. Any remaining calls will be retried for up to one hour as capacity becomes available. After that hour or after latestAt, whichever comes first, any calls that couldn’t be placed won’t be retried. */ schedulePlan?: Vapi.SchedulePlan | undefined; - /** This is the maximum number of concurrent calls that will be made for the campaign. Defaults to 10. */ + /** This is the maximum number of concurrent calls that will be made for the campaign. Defaults to 10. Maximum of 500, and may not exceed your organization's concurrency limit. */ maxConcurrency?: number | undefined; /** These are the overrides for the assistant's settings and template variables for the campaign. Use this when the campaign targets an `assistantId`. */ assistantOverrides?: Vapi.AssistantOverrides | undefined; diff --git a/src/api/types/CreateCampaignDto.ts b/src/api/types/CreateCampaignDto.ts index 4be52f9b..d7c23dc0 100644 --- a/src/api/types/CreateCampaignDto.ts +++ b/src/api/types/CreateCampaignDto.ts @@ -22,7 +22,7 @@ export interface CreateCampaignDto { schedulePlan?: Vapi.SchedulePlan | undefined; /** These are the customers that will be called in the campaign. Required if dialPlan is not provided. Maximum of 10000 customers per campaign. */ customers?: Vapi.CreateCustomerDto[] | undefined; - /** This is the maximum number of concurrent calls that will be made for the campaign. Defaults to 10. */ + /** This is the maximum number of concurrent calls that will be made for the campaign. Defaults to 10. Maximum of 500, and may not exceed your organization's concurrency limit. */ maxConcurrency?: number | undefined; /** These are the overrides for the assistant's settings and template variables for the campaign. Use this when the campaign targets an `assistantId`. */ assistantOverrides?: Vapi.AssistantOverrides | undefined; diff --git a/src/api/types/FallbackOpenAiVoice.ts b/src/api/types/FallbackOpenAiVoice.ts index c826f01d..9fd598d5 100644 --- a/src/api/types/FallbackOpenAiVoice.ts +++ b/src/api/types/FallbackOpenAiVoice.ts @@ -10,7 +10,7 @@ export interface FallbackOpenAiVoice { 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 models. + * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models. */ voiceId: Vapi.FallbackOpenAiVoiceId; /** This is the model that will be used for text-to-speech. */ diff --git a/src/api/types/FallbackOpenAiVoiceId.ts b/src/api/types/FallbackOpenAiVoiceId.ts index a324e236..d9ef3151 100644 --- a/src/api/types/FallbackOpenAiVoiceId.ts +++ b/src/api/types/FallbackOpenAiVoiceId.ts @@ -4,6 +4,6 @@ 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 models. + * 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/OpenAiVoice.ts b/src/api/types/OpenAiVoice.ts index 0dfd1422..f593e657 100644 --- a/src/api/types/OpenAiVoice.ts +++ b/src/api/types/OpenAiVoice.ts @@ -10,7 +10,7 @@ export interface OpenAiVoice { 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 models. + * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models. */ voiceId: Vapi.OpenAiVoiceId; /** This is the model that will be used for text-to-speech. */ diff --git a/src/api/types/OpenAiVoiceId.ts b/src/api/types/OpenAiVoiceId.ts index b567f89b..9db8b87c 100644 --- a/src/api/types/OpenAiVoiceId.ts +++ b/src/api/types/OpenAiVoiceId.ts @@ -4,6 +4,6 @@ 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 models. + * 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/ServerMessageEndOfCallReportEndedReason.ts b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts index d7637ae9..0d5d03c9 100644 --- a/src/api/types/ServerMessageEndOfCallReportEndedReason.ts +++ b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts @@ -203,6 +203,10 @@ export const ServerMessageEndOfCallReportEndedReason = { CallInProgressErrorProviderfaultBasetenLlmFailed: "call.in-progress.error-providerfault-baseten-llm-failed", CallInProgressErrorVapifaultChatPipelineFailedToStart: "call.in-progress.error-vapifault-chat-pipeline-failed-to-start", + CallInProgressErrorConfigfaultModelUnsupportedInSquad: + "call.in-progress.error-configfault-model-unsupported-in-squad", + CallInProgressErrorConfigfaultTransportUnsupportedForModel: + "call.in-progress.error-configfault-transport-unsupported-for-model", PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", PipelineErrorOpenai401IncorrectApiKey: "pipeline-error-openai-401-incorrect-api-key", diff --git a/src/api/types/ServerMessageStatusUpdateEndedReason.ts b/src/api/types/ServerMessageStatusUpdateEndedReason.ts index 48c473b3..109d90e4 100644 --- a/src/api/types/ServerMessageStatusUpdateEndedReason.ts +++ b/src/api/types/ServerMessageStatusUpdateEndedReason.ts @@ -203,6 +203,10 @@ export const ServerMessageStatusUpdateEndedReason = { CallInProgressErrorProviderfaultBasetenLlmFailed: "call.in-progress.error-providerfault-baseten-llm-failed", CallInProgressErrorVapifaultChatPipelineFailedToStart: "call.in-progress.error-vapifault-chat-pipeline-failed-to-start", + CallInProgressErrorConfigfaultModelUnsupportedInSquad: + "call.in-progress.error-configfault-model-unsupported-in-squad", + CallInProgressErrorConfigfaultTransportUnsupportedForModel: + "call.in-progress.error-configfault-transport-unsupported-for-model", PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", PipelineErrorOpenai401IncorrectApiKey: "pipeline-error-openai-401-incorrect-api-key", diff --git a/src/api/types/Subscription.ts b/src/api/types/Subscription.ts index 51e6356a..20cc34fd 100644 --- a/src/api/types/Subscription.ts +++ b/src/api/types/Subscription.ts @@ -9,6 +9,12 @@ export interface Subscription { createdAt: string; /** This is the timestamp when the subscription was last updated. */ updatedAt: string; + /** + * This is the display name for the subscription, used to tell subscriptions + * apart in the dashboard. It is unique across all subscriptions and does not + * appear on invoices, which use the company details on the invoice plan. + */ + name?: (string | null) | undefined; /** This is the type / tier of the subscription. */ type: Vapi.SubscriptionType; /** @@ -43,10 +49,6 @@ export interface Subscription { stripeCustomerId?: string | undefined; /** This is the Stripe payment ID. */ stripePaymentMethodId?: string | undefined; - /** If this flag is true, then the user has purchased slack support. */ - slackSupportEnabled?: boolean | undefined; - /** If this subscription has a slack support subscription, the slack channel's ID will be stored here. */ - slackChannelId?: string | undefined; /** * This is the HIPAA enabled flag for the subscription. It determines whether orgs under this * subscription have the option to enable HIPAA compliance. diff --git a/src/api/types/ToolCallResult.ts b/src/api/types/ToolCallResult.ts index 8ad741d0..e22db518 100644 --- a/src/api/types/ToolCallResult.ts +++ b/src/api/types/ToolCallResult.ts @@ -10,7 +10,7 @@ export interface ToolCallResult { * 1. a `request-complete` or `request-failed` message from `tool.messages`, if it exists * 2. a response generated by the model, if not */ - message?: Vapi.ToolCallResultMessage | undefined; + message?: Vapi.ToolCallResultSpokenMessage | undefined; /** This is the name of the function the model called. */ name: string; /** This is the unique identifier for the tool call. */ diff --git a/src/api/types/ToolCallResultMessage.ts b/src/api/types/ToolCallResultMessage.ts index 5ff7927b..b4cd2000 100644 --- a/src/api/types/ToolCallResultMessage.ts +++ b/src/api/types/ToolCallResultMessage.ts @@ -3,22 +3,26 @@ import type * as Vapi from "../index.js"; /** - * This is the message that will be spoken to the user. - * - * If this is not returned, assistant will speak: - * 1. a `request-complete` or `request-failed` message from `tool.messages`, if it exists - * 2. a response generated by the model, if not + * An entry in the call message history that records the result and metadata for a completed tool call. */ -export type ToolCallResultMessage = - | Vapi.ToolCallResultMessage.RequestComplete - | Vapi.ToolCallResultMessage.RequestFailed; - -export namespace ToolCallResultMessage { - export interface RequestComplete extends Vapi.ToolMessageComplete { - type: "request-complete"; - } - - export interface RequestFailed extends Vapi.ToolMessageFailed { - type: "request-failed"; - } +export interface ToolCallResultMessage { + /** The role of the tool call result in the conversation. */ + role: string; + /** The ID of the tool call. */ + toolCallId: string; + /** The name of the tool that returned the result. */ + name: string; + /** The result of the tool call in JSON format. */ + result: string; + /** The timestamp when the message was sent. */ + time: number; + /** The number of seconds from the start of the conversation. */ + secondsFromStart: number; + /** The metadata for the tool call result. */ + metadata?: Record | undefined; + /** + * Warnings raised for this tool call result, e.g. when the response is + * larger than recommended for voice AI context windows. + */ + warnings?: Vapi.ToolCallResultMessageWarning[] | undefined; } diff --git a/src/api/types/ToolCallResultSpokenMessage.ts b/src/api/types/ToolCallResultSpokenMessage.ts new file mode 100644 index 00000000..3ab693e1 --- /dev/null +++ b/src/api/types/ToolCallResultSpokenMessage.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +/** + * This is the message that will be spoken to the user. + * + * If this is not returned, assistant will speak: + * 1. a `request-complete` or `request-failed` message from `tool.messages`, if it exists + * 2. a response generated by the model, if not + */ +export type ToolCallResultSpokenMessage = + | Vapi.ToolCallResultSpokenMessage.RequestComplete + | Vapi.ToolCallResultSpokenMessage.RequestFailed; + +export namespace ToolCallResultSpokenMessage { + export interface RequestComplete extends Vapi.ToolMessageComplete { + type: "request-complete"; + } + + export interface RequestFailed extends Vapi.ToolMessageFailed { + type: "request-failed"; + } +} diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 4309a668..81773b0a 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -147,6 +147,8 @@ export * from "./AzureSpeechTranscriberSegmentationStrategy.js"; export * from "./AzureVoice.js"; export * from "./AzureVoiceId.js"; export * from "./AzureVoiceIdEnum.js"; +export * from "./BackgroundSoundUrlValidationResult.js"; +export * from "./BackgroundSoundUrlValidationResultReason.js"; export * from "./BackgroundSpeechDenoisingPlan.js"; export * from "./BackoffPlan.js"; export * from "./BarInsight.js"; @@ -1715,6 +1717,7 @@ export * from "./ToolCallResult.js"; export * from "./ToolCallResultMessage.js"; export * from "./ToolCallResultMessageWarning.js"; export * from "./ToolCallResultMessageWarningType.js"; +export * from "./ToolCallResultSpokenMessage.js"; export * from "./ToolDraft.js"; export * from "./ToolDraftConflictResponseDto.js"; export * from "./ToolDraftMessagesItem.js"; diff --git a/tests/wire/assistants.test.ts b/tests/wire/assistants.test.ts index bc8a7ea5..644f50a4 100644 --- a/tests/wire/assistants.test.ts +++ b/tests/wire/assistants.test.ts @@ -195,7 +195,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -690,7 +690,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -1211,7 +1211,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false, recordingChannels: "mono" }], observabilityPlan: { @@ -1736,7 +1736,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -2138,6 +2138,32 @@ describe("AssistantsClient", () => { }); }); + test("AssistantController_validateBackgroundSoundUrl", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = { url: "https://example.com/my-sound.mp3" }; + const rawResponseBody = { valid: true, reason: "invalid-url", status: 1.1, contentType: "contentType" }; + + server + .mockEndpoint() + .post("/assistant/background-sound/validate") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.assistants.assistantControllerValidateBackgroundSoundUrl({ + url: "https://example.com/my-sound.mp3", + }); + expect(response).toEqual({ + valid: true, + reason: "invalid-url", + status: 1.1, + contentType: "contentType", + }); + }); + test("get", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -2312,7 +2338,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false, recordingChannels: "mono" }], observabilityPlan: { @@ -2832,7 +2858,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -3408,7 +3434,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false, recordingChannels: "mono" }], observabilityPlan: { @@ -3928,7 +3954,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -4519,7 +4545,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false, recordingChannels: "mono" }], observabilityPlan: { @@ -5046,7 +5072,7 @@ describe("AssistantsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { diff --git a/tests/wire/calls.test.ts b/tests/wire/calls.test.ts index 4efce57d..1581268c 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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" } } ]; server .mockEndpoint() @@ -329,7 +329,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -640,7 +640,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -995,7 +995,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -1291,7 +1291,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -1624,7 +1624,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -1960,7 +1960,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -2338,7 +2338,7 @@ describe("CallsClient", () => { provider: "langfuse", tags: ["tags"] }, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", hooks: [{ on: "call.ending", "do": [{ @@ -2691,7 +2691,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -3023,7 +3023,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -3256,7 +3256,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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" } }; server .mockEndpoint() @@ -3670,7 +3670,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -4049,7 +4049,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -4443,7 +4443,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -4739,7 +4739,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -5075,7 +5075,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -5455,7 +5455,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -5896,7 +5896,7 @@ describe("CallsClient", () => { "key": "value" } }, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", hooks: [{ on: "call.ending", "do": [{ @@ -6299,7 +6299,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -6649,7 +6649,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -6935,7 +6935,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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" } }; server .mockEndpoint() @@ -7350,7 +7350,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -7729,7 +7729,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -8123,7 +8123,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -8419,7 +8419,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -8755,7 +8755,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -9135,7 +9135,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -9576,7 +9576,7 @@ describe("CallsClient", () => { "key": "value" } }, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", hooks: [{ on: "call.ending", "do": [{ @@ -9979,7 +9979,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -10329,7 +10329,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -10577,7 +10577,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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" } }; server .mockEndpoint() @@ -10993,7 +10993,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -11372,7 +11372,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -11766,7 +11766,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -12062,7 +12062,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -12398,7 +12398,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -12778,7 +12778,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -13219,7 +13219,7 @@ describe("CallsClient", () => { "key": "value" } }, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", hooks: [{ on: "call.ending", "do": [{ @@ -13622,7 +13622,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -13972,7 +13972,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -14241,7 +14241,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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" } }; server .mockEndpoint() @@ -14657,7 +14657,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -15036,7 +15036,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -15430,7 +15430,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -15726,7 +15726,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -16062,7 +16062,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -16442,7 +16442,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -16883,7 +16883,7 @@ describe("CallsClient", () => { "key": "value" } }, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", hooks: [{ on: "call.ending", "do": [{ @@ -17286,7 +17286,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -17636,7 +17636,7 @@ describe("CallsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", diff --git a/tests/wire/campaigns.test.ts b/tests/wire/campaigns.test.ts index da17e602..843caa51 100644 --- a/tests/wire/campaigns.test.ts +++ b/tests/wire/campaigns.test.ts @@ -9,7 +9,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); - const rawResponseBody = { "results" : [ { "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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" } , "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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" } ] } } } } ] , "maxConcurrency" : 1.1 , "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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" } ] } } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "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 } ] , "metadata" : { "itemsPerPage" : 1.1 , "totalItems" : 1.1 , "currentPage" : 1.1 , "totalPages" : 1.1 , "hasNextPage" : true , "nextCursor" : "nextCursor" , "sortOrder" : "ASC" , "itemsBeyondRetention" : true , "createdAtLe" : "2024-01-15T09:30:00Z" , "createdAtGe" : "2024-01-15T09:30:00Z" } }; + const rawResponseBody = { "results" : [ { "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" } , "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" } ] } } } } ] , "maxConcurrency" : 1.1 , "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" } ] } } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "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 } ] , "metadata" : { "itemsPerPage" : 1.1 , "totalItems" : 1.1 , "currentPage" : 1.1 , "totalPages" : 1.1 , "hasNextPage" : true , "nextCursor" : "nextCursor" , "sortOrder" : "ASC" , "itemsBeyondRetention" : true , "createdAtLe" : "2024-01-15T09:30:00Z" , "createdAtGe" : "2024-01-15T09:30:00Z" } }; server .mockEndpoint() @@ -151,7 +151,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -483,7 +483,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -821,7 +821,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -1153,7 +1153,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -1487,7 +1487,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -1819,7 +1819,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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 }; server .mockEndpoint() @@ -2232,7 +2232,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -2564,7 +2564,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -2905,7 +2905,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -3237,7 +3237,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -3608,7 +3608,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -4026,7 +4026,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -4344,7 +4344,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); - const rawResponseBody = { "results" : [ { "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" } , "maxConcurrency" : 1.1 , "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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" } ] } } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "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" } ] , "metadata" : { "itemsPerPage" : 1.1 , "totalItems" : 1.1 , "currentPage" : 1.1 , "totalPages" : 1.1 , "hasNextPage" : true , "nextCursor" : "nextCursor" , "sortOrder" : "ASC" , "itemsBeyondRetention" : true , "createdAtLe" : "2024-01-15T09:30:00Z" , "createdAtGe" : "2024-01-15T09:30:00Z" } }; + const rawResponseBody = { "results" : [ { "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" } , "maxConcurrency" : 1.1 , "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" } ] } } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "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" } ] , "metadata" : { "itemsPerPage" : 1.1 , "totalItems" : 1.1 , "currentPage" : 1.1 , "totalPages" : 1.1 , "hasNextPage" : true , "nextCursor" : "nextCursor" , "sortOrder" : "ASC" , "itemsBeyondRetention" : true , "createdAtLe" : "2024-01-15T09:30:00Z" , "createdAtGe" : "2024-01-15T09:30:00Z" } }; server .mockEndpoint() @@ -4486,7 +4486,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -4818,7 +4818,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -5091,7 +5091,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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 }; server .mockEndpoint() @@ -5235,7 +5235,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -5567,7 +5567,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -5908,7 +5908,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -6240,7 +6240,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -6611,7 +6611,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -7029,7 +7029,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -7347,7 +7347,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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" }; server .mockEndpoint() @@ -7523,7 +7523,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -7941,7 +7941,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -8263,7 +8263,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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 }; server .mockEndpoint() @@ -8406,7 +8406,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -8738,7 +8738,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -9079,7 +9079,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -9411,7 +9411,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -9782,7 +9782,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -10200,7 +10200,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -10518,7 +10518,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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 }; server .mockEndpoint() @@ -10663,7 +10663,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -10995,7 +10995,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -11336,7 +11336,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -11668,7 +11668,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -12039,7 +12039,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -12457,7 +12457,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -12775,7 +12775,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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 }; server .mockEndpoint() @@ -12918,7 +12918,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -13250,7 +13250,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -13591,7 +13591,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -13923,7 +13923,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -14294,7 +14294,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -14712,7 +14712,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -15030,7 +15030,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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 }; server .mockEndpoint() @@ -15173,7 +15173,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -15505,7 +15505,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -15846,7 +15846,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -16178,7 +16178,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -16549,7 +16549,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -16967,7 +16967,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -17285,7 +17285,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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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://www.soundjay.com/ambient/sounds/people-in-lounge-1.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" , "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 }; server .mockEndpoint() @@ -17430,7 +17430,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -17762,7 +17762,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -18103,7 +18103,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -18435,7 +18435,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -18806,7 +18806,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", @@ -19224,7 +19224,7 @@ describe("CampaignsClient", () => { 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://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", diff --git a/tests/wire/chats.test.ts b/tests/wire/chats.test.ts index a4304c78..d1b0dda9 100644 --- a/tests/wire/chats.test.ts +++ b/tests/wire/chats.test.ts @@ -174,7 +174,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -558,7 +558,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -977,7 +977,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -1364,7 +1364,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -1783,7 +1783,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -2271,7 +2271,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -2746,7 +2746,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -3278,7 +3278,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -3753,7 +3753,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -4277,7 +4277,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -4850,7 +4850,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -5288,7 +5288,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -5740,7 +5740,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -6124,7 +6124,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -6543,7 +6543,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -7074,7 +7074,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -7644,7 +7644,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -8239,7 +8239,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -8714,7 +8714,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -9241,7 +9241,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -9817,7 +9817,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -10255,7 +10255,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -10707,7 +10707,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -11091,7 +11091,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -11510,7 +11510,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -12034,7 +12034,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -12604,7 +12604,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -13199,7 +13199,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -13674,7 +13674,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -14201,7 +14201,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -14777,7 +14777,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -15215,7 +15215,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -15667,7 +15667,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -16051,7 +16051,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -16470,7 +16470,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -16994,7 +16994,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -17564,7 +17564,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -18159,7 +18159,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -18634,7 +18634,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -19161,7 +19161,7 @@ describe("ChatsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { diff --git a/tests/wire/eval.test.ts b/tests/wire/eval.test.ts index aecc11b0..e7d1b471 100644 --- a/tests/wire/eval.test.ts +++ b/tests/wire/eval.test.ts @@ -494,7 +494,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -888,7 +888,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -1397,7 +1397,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -1887,7 +1887,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -2447,7 +2447,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -2841,7 +2841,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -3350,7 +3350,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -3840,7 +3840,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -4399,7 +4399,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -4783,7 +4783,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -5295,7 +5295,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -5770,7 +5770,7 @@ describe("EvalClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { diff --git a/tests/wire/sessions.test.ts b/tests/wire/sessions.test.ts index ab089744..18ef3573 100644 --- a/tests/wire/sessions.test.ts +++ b/tests/wire/sessions.test.ts @@ -185,7 +185,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -569,7 +569,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -988,7 +988,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -1375,7 +1375,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -1794,7 +1794,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -2211,7 +2211,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -2625,7 +2625,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -3140,7 +3140,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -3615,7 +3615,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -4147,7 +4147,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -4622,7 +4622,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -5146,7 +5146,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -5678,7 +5678,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -6200,7 +6200,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -6787,7 +6787,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -7225,7 +7225,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -7677,7 +7677,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -8061,7 +8061,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -8480,7 +8480,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -8910,7 +8910,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -9335,7 +9335,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -9943,7 +9943,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -10513,7 +10513,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -11108,7 +11108,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -11583,7 +11583,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -12110,7 +12110,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -12662,7 +12662,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -13202,7 +13202,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -13909,7 +13909,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -14347,7 +14347,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -14799,7 +14799,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -15183,7 +15183,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -15602,7 +15602,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -16032,7 +16032,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -16457,7 +16457,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -17060,7 +17060,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -17630,7 +17630,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -18225,7 +18225,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -18700,7 +18700,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -19227,7 +19227,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -19779,7 +19779,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -20319,7 +20319,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -21026,7 +21026,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -21464,7 +21464,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -21916,7 +21916,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -22300,7 +22300,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -22719,7 +22719,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -23149,7 +23149,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -23574,7 +23574,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -24177,7 +24177,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -24747,7 +24747,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -25342,7 +25342,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -25817,7 +25817,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -26344,7 +26344,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -26896,7 +26896,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -27436,7 +27436,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -28143,7 +28143,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -28581,7 +28581,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -29033,7 +29033,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -29417,7 +29417,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -29836,7 +29836,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -30266,7 +30266,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -30691,7 +30691,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -31301,7 +31301,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -31871,7 +31871,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -32466,7 +32466,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -32941,7 +32941,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -33468,7 +33468,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -34020,7 +34020,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -34560,7 +34560,7 @@ describe("SessionsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { diff --git a/tests/wire/simulationPersonalities.test.ts b/tests/wire/simulationPersonalities.test.ts index 9f5f7ec8..be546c6b 100644 --- a/tests/wire/simulationPersonalities.test.ts +++ b/tests/wire/simulationPersonalities.test.ts @@ -180,7 +180,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -627,7 +627,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -1119,7 +1119,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -1625,7 +1625,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -2163,7 +2163,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -2667,7 +2667,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -3205,7 +3205,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -3709,7 +3709,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -4247,7 +4247,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -4752,7 +4752,7 @@ describe("SimulationPersonalitiesClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { diff --git a/tests/wire/simulationRuns.test.ts b/tests/wire/simulationRuns.test.ts index 6eef6f47..a1e90c8d 100644 --- a/tests/wire/simulationRuns.test.ts +++ b/tests/wire/simulationRuns.test.ts @@ -241,7 +241,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -658,7 +658,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -1048,7 +1048,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -1570,7 +1570,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -2095,7 +2095,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -2576,7 +2576,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -3102,7 +3102,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -3520,7 +3520,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -3914,7 +3914,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -4456,7 +4456,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -4982,7 +4982,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -5467,7 +5467,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -6042,7 +6042,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -6460,7 +6460,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -6854,7 +6854,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -7385,7 +7385,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -7911,7 +7911,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -8396,7 +8396,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -8933,7 +8933,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -9351,7 +9351,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -9745,7 +9745,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -10276,7 +10276,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -10802,7 +10802,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -11287,7 +11287,7 @@ describe("SimulationRunsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { diff --git a/tests/wire/simulationScenarios.test.ts b/tests/wire/simulationScenarios.test.ts index 08b8ded0..ab8f3254 100644 --- a/tests/wire/simulationScenarios.test.ts +++ b/tests/wire/simulationScenarios.test.ts @@ -223,7 +223,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -765,7 +765,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -1361,7 +1361,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -1970,7 +1970,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -2610,7 +2610,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -3211,7 +3211,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -3851,7 +3851,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -4452,7 +4452,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -5092,7 +5092,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -5694,7 +5694,7 @@ describe("SimulationScenariosClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { diff --git a/tests/wire/simulationSuites.test.ts b/tests/wire/simulationSuites.test.ts index 291ea1d4..3485c93f 100644 --- a/tests/wire/simulationSuites.test.ts +++ b/tests/wire/simulationSuites.test.ts @@ -1,5 +1,6 @@ // 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"; @@ -98,6 +99,93 @@ describe("SimulationSuitesClient", () => { }); }); + test("SimulationSuiteController_duplicate (1)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { + id: "id", + orgId: "orgId", + createdAt: "2024-01-15T09:30:00Z", + updatedAt: "2024-01-15T09:30:00Z", + name: "Checkout Flow Tests", + slackWebhookUrl: "slackWebhookUrl", + path: "path", + simulationIds: ["simulationIds"], + targetAssignments: [{ targetType: "assistant", targetId: "targetId" }], + }; + + server + .mockEndpoint() + .post("/eval/simulation/suite/id/duplicate") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.simulationSuites.simulationSuiteControllerDuplicate({ + id: "id", + }); + expect(response).toEqual({ + id: "id", + orgId: "orgId", + createdAt: "2024-01-15T09:30:00Z", + updatedAt: "2024-01-15T09:30:00Z", + name: "Checkout Flow Tests", + slackWebhookUrl: "slackWebhookUrl", + path: "path", + simulationIds: ["simulationIds"], + targetAssignments: [ + { + targetType: "assistant", + targetId: "targetId", + }, + ], + }); + }); + + test("SimulationSuiteController_duplicate (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .post("/eval/simulation/suite/id/duplicate") + .respondWith() + .statusCode(404) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.simulationSuites.simulationSuiteControllerDuplicate({ + id: "id", + }); + }).rejects.toThrow(Vapi.NotFoundError); + }); + + test("SimulationSuiteController_duplicate (3)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .post("/eval/simulation/suite/id/duplicate") + .respondWith() + .statusCode(409) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.simulationSuites.simulationSuiteControllerDuplicate({ + id: "id", + }); + }).rejects.toThrow(Vapi.ConflictError); + }); + test("SimulationSuiteController_findOne", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); diff --git a/tests/wire/squads.test.ts b/tests/wire/squads.test.ts index 13f5a68a..ddcdf3b6 100644 --- a/tests/wire/squads.test.ts +++ b/tests/wire/squads.test.ts @@ -176,7 +176,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -560,7 +560,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -979,7 +979,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { provider: "langfuse", tags: ["tags"] }, @@ -1455,7 +1455,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -1930,7 +1930,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -2457,7 +2457,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -2980,7 +2980,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -3364,7 +3364,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -3803,7 +3803,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -4312,7 +4312,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -4787,7 +4787,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -5347,7 +5347,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -5916,7 +5916,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -6300,7 +6300,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -6739,7 +6739,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -7241,7 +7241,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -7716,7 +7716,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -8276,7 +8276,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -8845,7 +8845,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -9229,7 +9229,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -9668,7 +9668,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -10170,7 +10170,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -10645,7 +10645,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -11205,7 +11205,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -11774,7 +11774,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -12158,7 +12158,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], credentials: [{ provider: "11labs", apiKey: "apiKey" }], @@ -12597,7 +12597,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [{ provider: "twilio", timeout: 60, record: false }], observabilityPlan: { @@ -13107,7 +13107,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -13582,7 +13582,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ { @@ -14142,7 +14142,7 @@ describe("SquadsClient", () => { "assistant.started", ], maxDurationSeconds: 600, - backgroundSound: "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3", + backgroundSound: "https://example.com/my-sound.mp3", modelOutputInMessagesEnabled: false, transportConfigurations: [ {